in reply to Re: Knowing when a socket connection is dead
in thread Knowing when a socket connection is dead

If you want to be completely sure, you need to do a little more checking. At the least, you should check if $! is EINTR. In that case, you got no data because the system call was interrupted.
  • Comment on Re^2: Knowing when a socket connection is dead