should stop if the last line is not read as well. (You might need to add defined.)while(( my @lines = map $_ = <>, 1 .. 4 )[-1]) {
In reply to Re^3: Reading files n lines a time
by choroba
in thread Reading files n lines a time
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |