in reply to Trouble passing an array reference to my threads
What you need to do is to RETURN a value from your "sub pinger". This value can be collected when the thread is join()ed.
Use the returned value (Which can be an array ref, in fact, you can return $task) to update the array.
FWIW, I find the code style you used frightening, but am resisting the urge to comment on that. Should you choose to approach that subject, please request comment. I'm sure monks would be more than happy to share coding tips.
"XML is like violence: if it doesn't solve your problem, use more."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trouble passing an array reference to my threads
by zwon (Abbot) on Nov 23, 2011 at 12:51 UTC | |
by NetWallah (Canon) on Nov 23, 2011 at 23:41 UTC | |
by zwon (Abbot) on Nov 24, 2011 at 16:11 UTC | |
|
Re^2: Trouble passing an array reference to my threads
by dh (Novice) on Nov 23, 2011 at 13:27 UTC |