The ugly part of Alertable IO is that you will always read (at least) one byte that you can't easily stuff back. I haven't found (by just reading the documentation, not by trying it out) a way that gives you just "you can read n bytes from this filehandle now" or "read as many bytes as are available without blocking" outside of PeekNamedPipe().
In reply to Re^4: [Win32] IO::Select's can_read method
by Corion
in thread [Win32] IO::Select's can_read method
by syphilis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |