Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by zOrK (Initiate)
on Jun 11, 2008 at 19:47 UTC ( #691541=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I process one GET while I send another one? - Answer contributed by zOrK

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
Chatterbox?
[Corion]: Weird - this "Install our backdoor SDK" spam is persistent. And I get the feeling it's not even automated, as it seems to be a re-forward of each mail, maybe even manually. Ah well, a quick rule in Thunderbird will move them to Spam automatically now :D
[Corion]: (the "backdoor SDK" is for distributing my software with an included backdoor, not for backdooring my own machine)
[marto]: ask for a trial
[marto]: then trick them into running your app
[marto]: once you have access, remove your email address from their system :P
[shmem]: why just that email address? why filtering?
[Corion]: shmem: I use email for contact, so I'd still like to receive emails from other people. Hence, I filter my email.
[Corion]: marto: Sneaky :) But I think I don't want to even give them the impression that anybody reads their mail :)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2018-05-25 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?