On 09/11/2006 05:58 PM, Robin Sheat wrote:
On Tuesday 12 September 2006 10:27, Rob Dixon wrote:
[...]
What may help is that LWP allows for a callback to be specified in the get() call, so that the downloaded data can be passed in chunks to a user-written subroutine as it arrives. Use
   $agent->get($url, ':content_cb' => \&callback);
Hmm, that looks promising. But it would require making a significant bit of my code a lot less generic.
[...]

I'm also out of my depth here, but you might be able to subclass IO::Handle to create a class that makes a LWP connection look like a file handle.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to