Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How do I process one GET while I send another one?

by zOrK (Initiate)
on Jun 11, 2008 at 19:47 UTC ( [id://691541]=note: print w/replies, xml ) Need Help??


in reply to How do I process one GET while I send another one?

you could use ParallelUserAgent. or you could try using threads.

an example using threads could be something like:

#!/usr/bin/perl use threads; my @urls = qw(http://www.perlmonks.org http://www.perlguru.org); foreach my $url (@urls) { my $thread = threads->new(\&getter, $url); $thread->detach; } sub getter { # well, here is supposed to be the get stuff #which would fetch a site + or whatever you'd like #to do. #} ## Code untested

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://691541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found