wont work anymoreWhat happens? What error message do you get?
I experimented with reading multiple lines through map, this works for me, but is a bit ugly. Maybe someone else knows a cleaner way?
while(( my @lines = map $_ = <>, 1 .. 4 )[0]) { print @lines; print "\n"; }
In reply to Re: Reading files n lines a time
by choroba
in thread Reading files n lines a time
by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |