in reply to Reading multiple lines?
Says it clearly. No having to think of multiple screwiness.my @buffer; { push @buffer, scalar <IN>; redo unless eof(IN) or @buffer >= 10; ## process @buffer @buffer = (); redo unless eof(IN); }
-- Randal L. Schwartz, Perl hacker
|
---|