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!