Any parallel fetch example code for LWPng?

Chai-Hup Chen (hup@gus.net)
Sat, 19 Sep 1998 11:50:39 -0700 (PDT)


Hi,
  I read http://www.linpro.no/lwp/lwpng-paper/ and LWPng document before,
  but I still don't be able to manipulate it.

  I am using PUA, but I think I would like to try LWPng. Does any kind
  soul could give me either your code or URL where I can find any example?

  Below are written by PUA, I just want to find out how to do the same 
thing by LWPng. 
  Many Thanks.
 

...
use LWP::Parallel::UserAgent;
$ua = LWP::Parallel::UserAgent->new();
$METHOD = "GET";

$ua->register(HTTP::Request->new($METHOD => "http://www.infoseek.com"), 
\&ParseInfoseek );
$ua->register(HTTP::Request->new($METHOD => "http://www.yahoo.com"), 
\&ParseYahoo );
$ua->wait(20);
...

sub ParseInfoseek {
 # do something
}

sub ParseYahoo {
 # do something
}