mhonarc-users

Perl Question..

1997-01-10 15:15:18
Hey,

First of all apology for posting a Perl related question.. I have
set of text files which looks something like 

Customer ID : 2389-76
Date of Delivary : Nov 10, 1996
Product Number : <1827BN56-5>
Product Spec : etc.. etc..
Number of Items : 20


Which I want to convert or create a Parser/filter where the final
output should be like this..

<Record>
  <CustomerID>2389-76</CustomerID>
  <DeliveryDate>Nov 10, 1996</DeliveryDate>
  <ProductNo><1827BN56-5></ProductNo>
  <ProductSpec>blah</ProductSpec>
  <NumberOfItems>20</NumberOfItems>
</Record>

I have thousands of above mentioned raw text files and I would 
like to convert them the following.. Does anyone know of 
such parser or smiller type of things..

Thanks

Zaheed

<Prev in Thread] Current Thread [Next in Thread>