Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Trouble passing an array reference to my threadsby dh (Novice) |
on Nov 23, 2011 at 13:27 UTC ( [id://939656]=note: print w/replies, xml ) | Need Help?? |
I don't want to frighten anyone with my code. This code was pulled out of the full script, so it may be more frightening in fragment than its original. Some of the mess in the code, like not returning from the threads, comes from the fact that this code wasn't threaded until I realized there may be too many hosts to iterate quickly enough. Originally, it just passed from sub to sub for each host in step. I am going to try returning that value from a join tonight to keep the reference inside the thread caller. I would absolutely like to hear your comments on how the style and methodology may be improved. This code will be running for a while, so I want it to run well. Thank you!
In Section
Seekers of Perl Wisdom
|
|