can also be written asmy @lines; while (<>) { push @lines, $_; next if $. % 3; ... @lines = (); } die if @lines;
while (!eof()) { my @lines; defined( $lines[@lines] = <> ) or die for 1..3; ... }
In reply to Re^2: input record separator
by ikegami
in thread input record separator
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |