in reply to Re: reading lines from a text file
in thread reading lines from a text file
Using $_ worked for me in my application. I replaced variable $nextline with $_, so that the inner "while" works with $_ until the condition and $line will continue from where $_ left ( i.e. file handler). Thanks once again guyz. take care and have funwhile($line=<FH>) { print "$line \n"; while(<FH>) { print "Next line is $_ \n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading lines from a text file
by tilly (Archbishop) on Dec 27, 2008 at 15:20 UTC |