in reply to Re: LWP::Parallel in other way
in thread LWP::Parallel in other way

Thanks for answer Chalamun :)

I don't know which part of my code I should change, to work it like I expect, I don't know why it is not working now, so if you can, please help, and write correct snippet of code. Thanks.

Replies are listed 'Best First'.
Re^3: LWP::Parallel in other way
by PodMaster (Abbot) on Nov 01, 2004 at 15:21 UTC
    Oh come on, you're not even trying. Which part of the code is responsible downloading (HTTP request)?

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Hello PodMastah,

      I just found the weak place in my script,
      $entries = $pua->wait();
      should be in the same loop, where I register agent! Thanks for pointing me. Now everything works fine, I guess:)
      heloo again

      I was wrong in previous reply. If I put $pua->wait(); there, it is same as LWP::Simple (no paralel). I try to tweak it, but no success (creating another loop, with $pua->agent("$agents[$counter_2]"); $pua->wait();.
      You changed my code, so it works now? If not, just try. I have no idea, why it is not working at me, really. Please help.
        You changed my code, so it works now? If not, just try. I have no idea, why it is not working at me, really. Please help.
        All right. wait is not responsible for actualy making the request. How do I know?

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.