in reply to
Re^2: reading several lines in a gulp
in thread
reading several lines in a gulp
push
evaluates the second argument in list context, so that would slurp the whole file.
scalar
force the
<$filehandle>
operator (which calls
readline
under the hood) to only read one line.
Perl 6 - second systems done right
Comment on
Re^3: reading several lines in a gulp
Download
Code
In Section
Seekers of Perl Wisdom