in reply to Re^4: IO::Handle read error description?
in thread IO::Handle read error description?

It will return whatever bytes are available.
$ perl -e'$|=1; print "a"; print "b"; sleep 1; print "c"' | \ perl -le'print "[$buf]" while sysread(STDIN, $buf="", 4096);' [ab] [c]