BrowserUk makes a good point, that reinforces my original advice to find the platform and perl version numbers that allow the script to work, and use that. He and I both use threads, but have very different coding styles( he is admittedly slicker, while my style is very clunky and straight-forward ), and that probably explains why we have different luck with different versions.
You probably should not get stuck in relying on a Perl version to run your script, and should upgrade to the latest Perl version 5.10.0 and get the latest version of threads and threads::shared, then write your script to work with that.
My clunky straight-forward style has very little trouble between version levels, because I use few tricks and take alot of precautions. I would be willing to bet your code uses techniques that pushes the safety limits of perl/threads, and probably can be written in a more clunky manner. :-) But IIRC from your cross-posting, my first fix would be to dump Net::SSH::Expect and go with Net::SSH2 ( which works well with threads).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.