Re: Why is "for" much slower than "while"?
Jan 15, 2010 at 13:12 UTC
in reply to
Why is "for" much slower than "while"?
reads in the entire file, building a list of lines and then iterates over that list.
reads the file one line at a time.
Update: Links fixed. Thanks
Seekers of Perl Wisdom