Re: How do you share an object(Telnet Sesion) between threads?

2015-09-30 Thread James Lynes
Hi Steve: The Monks said basically you can't do that. Not supported by threads::shared. Only references to shared scalers are supported. Possibly a convoluted way to manipulate object internals. Several have tried in the past with limited success. It was suggested to refactor as a server process

Re: How do you share an object(Telnet Sesion) between threads?

2015-09-30 Thread Steve Cookson - gmail
Hi James, I'm not sure what you already know, but any OO-style module should be of the form $obj=Foo::Bar->new(); $obj is a pointer that holds the class and the object as the first two variables and you should be able to access anything from it. use Net::Telnet (); $obj = Net::Tel