in reply to Re: $threads->join() only returns one argument??? BUG?
in thread $threads->join() only returns one argument??? BUG?
It returns two. Some keywords: perl thread return values join multiple last arrayuse Thread; $thr = new Thread \&sub1; @ReturnData = $thr->join; print "Thread returned @ReturnData"; sub sub1 { return "Fifty-six", "foo", 2; }
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 |