in reply to Re: Re: next line
in thread how do I get perl to skip lines reading a text file?
What happens here is that the first line of <FH> is assigned to $_ and the filehandle will point to the second line. When $nextline is assigned the read from <FH> it gets the second line, and the filehandle will then point to the 3rd line, and so on and so forth.while(<FH>) { my $nextline = <FH>; }
_________
broquaint
|
|---|