Hopefully this is not your entire code, but if this is, what do you expect $client to be in your eval block for the first time? You have never created the connection, how can you read from or write to it ;-?
Update:
By the way, your program has syntax errors...
In reply to Re: Handling server socket error and reconnect
by pg
in thread Handling server socket error and reconnect
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |