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

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.

Replies are listed 'Best First'.
Re^5: LWP::Parallel in other way
by PodMaster (Abbot) on Nov 02, 2004 at 13:43 UTC
    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.

      hello PodMaster !!!

      thanks for reply, I read 5 times your post, but I don't know what I should change in my script. I'm scripting in perl around 6 months, so I am not so good in debugging. Also I thought about that, it is not possible what I want in LWP::Parallel, maybe better is use more processes, but I 'm not sure. I thought LWP:P will be easier to use (I used it without no problems with the same UA). So, if you please could write me, what I should change in my code. Thanks.

      --
      Brano
        I read 5 times your post, but I don't know what I should change in my script
        Add something like $request->init_header('User-Agent' => $agent) in the appropriate spot (like where you create request objects).

        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.