The LWP::UserAgent documentation tells me of two special parameters to get():
The :content_file parameter is for directly saving the content of the response to a file, the :content_cb parameter is for passing the contents directly to a supplied callback.:content_file => $filename :content_cb => \&callback
You should also take a look at the mirror() and getstore() methods, which might be suitable for your tasks as well.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
In reply to Re: Using Less Memory for LWP/FTP
by Corion
in thread Using Less Memory for LWP/FTP
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |