Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Trouble passing an array reference to my threads

by dh (Novice)
on Nov 23, 2011 at 13:27 UTC ( [id://939656]=note: print w/replies, xml ) Need Help??


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!

  • Comment on Re^2: Trouble passing an array reference to my threads

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found