in reply to Out of memory
How big is Data2014.txt?
I doubt that the out of memory problem is due to slurping that file into an array instead of looping over it line-by-line.
I suspect that the out of memory issue is related to the retrieval of the url/file. Instead of copying the content into one or more vars, I'd output it directly to the file.
EDIT:
The LWP::Simple module has a getstore() function that will simplify that process.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Out of memory
by wrkrbeee (Scribe) on Jan 15, 2015 at 15:28 UTC | |
by Corion (Patriarch) on Jan 15, 2015 at 15:44 UTC | |
by wrkrbeee (Scribe) on Jan 15, 2015 at 15:48 UTC |