The standard idiom of processing a file line by line is:
That should cut your memory usage as it doesn't read in the entire file in memory (unless there's just one line in the file...)while (<IN>) { # Processing goes here; the current line is in $_ }
Abigail
In reply to Re: Memory use when reading a text file
by Abigail-II
in thread Memory use when reading a text file
by abingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |