Don't ask to ask, just ask | |
PerlMonks |
Re^4: use sysread to read non-blocking filehandleby Corion (Patriarch) |
on Nov 04, 2014 at 14:37 UTC ( [id://1106043]=note: print w/replies, xml ) | Need Help?? |
Maybe you want to learn what "nonblocking" really means? In short, "nonblocking" means that the sysread call will return immediately and tell you how many bytes were read at this time. If your filehandle has nothing to read, it will not block. Blocking means "wait until data is avilable".
In Section
Seekers of Perl Wisdom
|
|