Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: $threads->join() only returns one argument??? BUG?

by Anonymous Monk
on Feb 25, 2010 at 19:29 UTC ( [id://825372]=note: print w/replies, xml ) Need Help??


in reply to Re: $threads->join() only returns one argument??? BUG?
in thread $threads->join() only returns one argument??? BUG?

Thanks, I was just running into this issue myself. Even several of the code snippets out there for threads do not take this into account. This one is used in several places
use Thread; $thr = new Thread \&sub1; @ReturnData = $thr->join; print "Thread returned @ReturnData"; sub sub1 { return "Fifty-six", "foo", 2; }
It returns two. Some keywords: perl thread return values join multiple last array

20100226 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re^3: $threads->join() only returns one argument??? BUG?
by Anonymous Monk on Feb 17, 2012 at 16:49 UTC
    Just what I needed. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://825372]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-12-08 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (52 votes). Check out past polls.