|
|
| No such thing as a small change | |
| PerlMonks |
Re^3: Socket Handle not sending data ?by ikegami (Pope) |
| on Jul 09, 2009 at 15:28 UTC ( #778604=note: print w/ replies, xml ) | Need Help?? |
|
For starters, please use <c>...</c> instead of <pre>...</pre>. It looks like your object got stringified
Tracing back I see you read a string from a file and expect it to magically become a socket handle. That's not gonna happen. In fact, the handle gets closed at the end of PortConn as the last reference to it ($rethandle) goes out of scope. The idea is fundamentally flawed. A handle is a token that represents a resource the OS has handed your process. The token is useless to any other process. If you want to store something, you need to store the connection details so you can re-establish the connection.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||