Hi Perl gurus :
I need your help…..I have a tab delimited file that I have to read till I am done reading all the lines. Each line has some values that I need to compare with the previous read line. And depending upon if the value match or do not match I need to insert the data into tables. Etc…..
My problem is that I do not know how in Perl we can read the tab delimited file such that I am able to remember the last read line and compare its data with the currently read line.
My initial thought was to store the data which is read from the first line of file into variables using the split function applied to each read line, but doing this in a loop I do not know how to retain the values read from one line so that when I am reading the next line I can extract the data into a variable and then compare with variables from the last red line with the current read line
Any help is appreciated
Thanks
Rajey
I need your help…..I have a tab delimited file that I have to read till I am done reading all the lines. Each line has some values that I need to compare with the previous read line. And depending upon if the value match or do not match I need to insert the data into tables. Etc…..
My problem is that I do not know how in Perl we can read the tab delimited file such that I am able to remember the last read line and compare its data with the currently read line.
My initial thought was to store the data which is read from the first line of file into variables using the split function applied to each read line, but doing this in a loop I do not know how to retain the values read from one line so that when I am reading the next line I can extract the data into a variable and then compare with variables from the last red line with the current read line
Any help is appreciated
Thanks
Rajey