P is for Practical | |
PerlMonks |
Re^4: Memory usage while tallying instances of lines in a .txt fileby TJCooper (Beadle) |
on Dec 05, 2016 at 18:42 UTC ( [id://1177265]=note: print w/replies, xml ) | Need Help?? |
I'm not sure where I was reading the entire file into memory. Shouldn't these lines of code only handle the first line of the input file (given that they occur outside of the while-loop):
Indeed, your approach does not reduce RAM requirement.
In Section
Seekers of Perl Wisdom
|
|