http://qs321.pair.com?node_id=1106043


in reply to Re^3: use sysread to read non-blocking filehandle
in thread use sysread to read non-blocking filehandle

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".