http://www.perlmonks.org?node_id=1037096

AI Cowboy has asked for the wisdom of the Perl Monks concerning the following question:

Greetings fellow monks...

My problem is fairly simple.

Is there a way to fix the issue of loading files into memory with LWP::Simple Getstore(), so that you can load larger files without worrying about crashing the computer and causing the universe to explode?

I looked at LWP-Download but it doesn't have any documentation I can see, I have no idea how to use it. The only other way I can figure out how to fix the issue is reading a file line by line and printing it to a new line on a new file on the local machine, but that would cause issues with encoding, wouldn't it?

As always, all help is appreciated!

EDIT: I have solved the problem with content_file, thanks to everyone for pointing out things I'd missed :)