http://qs321.pair.com?node_id=150273


in reply to Re: Checking links with LWP::UserAgent
in thread Checking links with LWP::UserAgent

OK. Does anyone know how I could go about converting the above code to use LWP::Parallel then? I'm afraid that I will run it and it will fire off and look through the 300+ sites all in parallel at the same time? Is there a way to limit it? -- Wiliam Stephens <wil@stephens.org>
  • Comment on Re: Re: Checking links with LWP::UserAgent

Replies are listed 'Best First'.
Re: Re: Re: Checking links with LWP::UserAgent
by lhoward (Vicar) on Mar 08, 2002 at 17:27 UTC
    The docs have some good examples. You set the option:
    $ua->max_req(5);
    to set how many requests it will handle in parallel.