in reply to
What’s the difference between iterating over a file with foreach or while in Perl?
readline in scalar context (while) returns one line, but in list context (foreach) returns all lines
Comment on
Re: What’s the difference between iterating over a file with foreach or while in Perl?
In Section
Seekers of Perl Wisdom