[b][red]This message was edited by the eddie_ph at 2002-7-2 16:55:21[/red][/b][hr]
I'm new to Perl... but I need to use it to analyse some data files. I've figured out a lot of the basics and have no problems reading the lines of data from the files etc.
The problem I'm having is with interpreting the data in one of the files. I need to extract the 1st and 3rd fields of data on the line. I was expecting the data to be comma separated and was all prepared to use...
on each line of data. Unfortunately there is also additional extraneous whitespace on each line of the file. For example, given the line...
[Code]CustomerID123456 ,LicenseID654321, ProductID321,$12.00[/Code]
I need the values 'CustomerID123456' and 'ProductID321'.
Can anyone help me with this. The simplest and easiest solution to read this would be much appreciated because I'm having difficulty.
Basically, the question is how can I get the 4 tokens from the above line?
Thanks in advance for your help.