Is there a special list for ParallelUI?

If not, here is my question:

I am using the following code:

<cut>
foreach $current (keys %URL){
    $req = HTTP::Request->new('GET', $URL{$current});
    $pua->register ($req, \&handle_answer);
}
</cut>

However this runs handle_answer sub as soon as any data comes back, and i
would like it to run as soon as all the data arrives... Is this possible?

Also, is it possible to pass in another variable to handle_answer?

Like:

<cut>
foreach $current (keys %URL){
    $req = HTTP::Request->new('GET', $URL{$current});
    $pua->register ($req, \&handle_answer($current));
}
</cut>

but by default the sub called by register already returns some things, such
as content, response, code, etc... how would i read an additional variable?

Thank you very much for the help!



Roy Nasser ([EMAIL PROTECTED])
Diretor T�cnico
http://Vem.ca/
+55-11-3347-3011
+55-11-9953-8853 (Cel.)
+55-11-211-0889 (Fax.)



Reply via email to