![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Faster Flat Fileby wmono (Friar) |
on Feb 03, 2002 at 04:15 UTC ( #143015=note: print w/replies, xml ) | Need Help?? |
Slurping an entire file into an array requires serious memory, if the file is of any decent size. Try this construct instead:
That'll at least keep your memory consumption down. If you were going into swap before, it might even make things run faster. Good luck!
In Section
Seekers of Perl Wisdom
|
|