in reply to
Internally, how do for() and while() differ?
No; the
for
loop will slurp all of
$fh
into memory and then iterate over that, whereas
while
will only read one line at a time.
Comment on
Re: Internally, how do for() and while() differ?
In Section
Seekers of Perl Wisdom