in reply to Re: Trouble passing an array reference to my threads
in thread Trouble passing an array reference to my threads
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!
|
|---|