It return "2" instead of ("Fifty-six", "foo", 2) - looks like thread is executed in scalar context.use threads; $thr = threads->new(\&sub1); @ReturnData = $thr->join; print "Thread returned @ReturnData"; sub sub1 { return("Fifty-six", "foo", 2); }
So, is this a bug in join(), or just broken example?
In reply to threads->join by powerman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |