in reply to LWP::Parallel in other way

But I have one curious problem - I want change PUA agent for every request. But I don't know how to to that.
It may sound funny, but which part don't you know how to do? What do you think you'd have to do?

PS - Please think about it for a minute, then answer my questions, this is going towards an actual solution.

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.

Replies are listed 'Best First'.
Re^2: LWP::Parallel in other way
by 2ge (Scribe) on Nov 01, 2004 at 15:17 UTC
    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.
      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.