|Perl Monk, Perl Meditation|
Re^3: Need help with Perl multi threadingby BrowserUk (Pope)
|on Jan 25, 2012 at 21:20 UTC||Need Help??|
Sorry to be rude, but you really don't seem to have a clue what you are doing.
This is a completely redundant use of threading:
You create a thread and push its handle onto @threads. You then immediately shift that handle off of the array and join it.
The reason your code is crashing is because you are creating an instance of Net::SSH::Expect in one thread, and trying to use it in another.
Why? Why not create the object in the thread where you are going to use it?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.