* Dirk Koopman ([EMAIL PROTECTED]) [080911 10:25]:
> Any tutorial on the use of select() should really mandate the use of
> O_NONBLOCK so that one can capture the EAGAIN/EWOULDBLOCK/EINPROGRESS
> error(s) and then ignore them. If your sysread returns UNDEF, then check
> for these errors in $! and just carry on, otherwise signal EOF in the
> normal way.
IO::Multiplex (by coincedence also discussed for other reasons on
perl5-porters today) is a nice example implementation for this problem.
--
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
[EMAIL PROTECTED] [EMAIL PROTECTED]
http://Mark.Overmeer.net http://solutions.overmeer.net