I suspect that the code is reading the entire fileYour suspicion is correct. The following line reads the whole file into an array of lines:
my @file = <dlthis>;
Remove the line and change the following for-loop into a while-loop:
while ($line = <dlthis>) {
It will process the file line by line (untested).
In reply to Re: Out of memory
by choroba
in thread Out of memory
by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |