good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: use sysread to read non-blocking filehandleby Corion (Patriarch) |
on Nov 04, 2014 at 13:57 UTC ( [id://1106037]=note: print w/replies, xml ) | Need Help?? |
You could check whether you closed your session and don't expect any more data. Maybe eof could help there too. Using these two criteria, you should be able to determine whether there was just not anything read, or whether the other end has closed the connection.
In Section
Seekers of Perl Wisdom
|
|