- or download this
sub readNLines {
my $lines_to_read = shift or die '....';
...
}
while (@lines = readNLines(4)) { do_stuff() }
- or download this
while ( my $record = readRecord( ... ) ) { ... }
- or download this
while ( $line1=<> && $line2=<> && $line3=<>... ) { ... }