fetch a manay URL's

N

new

at this time I am using
use LWP::Simple;
and
$tmp = get ('http://example.com');

to get several webpages.
when they are all downloadded I parse the data and display some results

this kinda sucks right now because it waits for on URL to load before
loading the next one is loaded.

can some one point me to a tutorial or something on how to use a call back
function with a timeout option to do this?

any suggestions would be good all I realy want is a way to load all the
URL's at once and know when they are done loading or maybe wait X seconds or
so then move on.

remeber I am really new to perl

Thanks for your help
 
E

Eric Bohlman

any suggestions would be good all I realy want is a way to load all
the URL's at once and know when they are done loading or maybe wait X
seconds or so then move on.

Look into LWP::parallel; it was designed for exactly what you want to do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top