XP is just a number | |
PerlMonks |
Re: Internally, how do for() and while() differ?by AppleFritter (Vicar) |
on Oct 27, 2015 at 00:04 UTC ( [id://1146043]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|