in reply to Re: Catch loss of communication
in thread Catch loss of communication

Could you be more detailed? I guess these method has to be used before writting or reading in the socket. But my problem is that I do not want to wait till the next print to know that I lost the connection with the socket (like with signal).

Replies are listed 'Best First'.
Re^2: Catch loss of communication
by salva (Canon) on May 31, 2005 at 14:35 UTC
    then use select() to wait for something to happen and then check whether you can write, read or it's an error examining its output arguments.

    There are two versions of select available, one from the core (see perlfunc) and the other, maybe easier to use, from IO::Select.