rr has asked for the wisdom of the Perl Monks concerning the following question:
While writing a threaded perl program which does parrallel http get's I have a in the subroutine I pass to threads->create line that returns like this:
After creating a few threads, I attempt to join them like this:sub _generic_http_get { ... return ($return_s, $return_h, $body_s, $ti); }
Unfortunately I only ever receive back the last return value (a float containting time taken to execute the get). I can run this subroutine and collect the return arguments exactly the same way without threads and it works.foreach(@threads) { my($status, $header, $body, $time) = $_->join(); ... }
Is there a bug or limitation to the number of arguments a thread can return on join in perl 5.8.0 (Linux)? I rtfm'd and such and found nothing talking of this.
Thanks!
rr
|
|---|