while ( my $line1 = <$fh> ) { my $line2 = <$fh>; # etc }
You'll need to check for eof on the second read though.
In reply to Re: Reading two lines per loop iteration
by FunkyMonk
in thread Reading two lines per loop iteration
by fishnflute
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |