We don't bite newbies here... much | |
PerlMonks |
Re: How to read in large filesby Corion (Patriarch) |
on Jan 28, 2016 at 15:35 UTC ( [id://1153884]=note: print w/replies, xml ) | Need Help?? |
You're reading the complete file into memory before doing anything. If your program logic allows for this, it's easy to rewrite it by processing the file line-by-line. Change:
to
In Section
Seekers of Perl Wisdom
|
|