use warnings; use strict; while (<>) { my $line1 = $_; my $line2 = <>; # compare 1 and 2 }
In reply to Re: reading 2 lines at a time using perl
by toolic
in thread reading 2 lines at a time using perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |