Gossamer Forum
Home : General : Perl Programming :

Extracting data from line and the next

Quote Reply
Extracting data from line and the next
Hi

I am confused about how to go about writing this program in perl.

I have a text file with data in columns 8 and 9. I need to extract the data value from column 8 from the line being read and then extract the data value in column 9 from the next line. This needs to be repeated for all lines in the file. So, i would be taking data from column 8 from lines 1,3,5,7,ect and column 9 from lines 2,4,6,8..... I need to move these data values into an array.

Thanks for all your help

Nxstar
Subject Author Views Date
Thread Extracting data from line and the next nxstar 6502 Feb 9, 2009, 1:55 AM
Thread Re: [nxstar] Extracting data from line and the next
Andy 6350 Feb 9, 2009, 2:30 AM
Thread Re: [Andy] Extracting data from line and the next
neves 6331 Feb 9, 2009, 2:55 AM
Thread Re: [neves] Extracting data from line and the next
Andy 6361 Feb 9, 2009, 2:57 AM
Post Re: [Andy] Extracting data from line and the next
nxstar 6282 Feb 9, 2009, 9:49 AM