Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and so on. Now as I add N sites, the programs slows down linearly with N. What I'd really like to do is launch requests for sites A..N in parallel.use LWP::Simple; $contentsA = get "$urlA"; $contentsB = get "$urlB";
fork seems the wrong way to do this -- should I drop LWP and open a pipe with lynx, like
open (CONTENTSA, "|lynx -d $urlA"); or is there some other (non-threaded) way of launching several LWP requests in parallel?
-clay
Edit kudra, 2001-09-19 Added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting html from more than one site simultaneously?
by merlyn (Sage) on Sep 18, 2001 at 19:23 UTC | |
|
Re: Getting html from more than one site simultaneously? (boo)
by boo_radley (Parson) on Sep 18, 2001 at 19:29 UTC | |
|
Re: Getting html from more than one site simultaneously?
by perrin (Chancellor) on Sep 18, 2001 at 19:47 UTC | |
|
Re: Getting html from more than one site simultaneously?
by Zaxo (Archbishop) on Sep 19, 2001 at 05:27 UTC |