in reply to Re^3: How do you share an object(Telnet Session) between threads? (blessed glob)
in thread How do you share an object(Telnet Session) between threads?
In that case you need to look at the several things in the glob (a scalar, a hash, an array, a file handle, maybe a few other more exotic things but unlikely) and see which are being used by the object. Share each of those and then, in each thread, build a new glob and put the shared things into it (and then bless the result).
I've tried this in the past -- for IO::Socket objects amongst others -- and despite many attempts over several years; never succeeded in getting it to work.
Maybe it would be easier with a telnet object, or maybe not; but either way, as there is no possibility of a remote telnet server allowing multiple concurrent transactions via a single session, there is simply no point in pursuing it.
Far better -- simpler, more reliable, safer -- to either:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do you share an object(Telnet Session) between threads? (possible?)
by tye (Sage) on Sep 29, 2015 at 21:17 UTC | |
by BrowserUk (Patriarch) on Sep 29, 2015 at 23:17 UTC | |
by tye (Sage) on Sep 30, 2015 at 00:20 UTC |