in reply to Reading from Multiple Ports
I wrote a tutorial on this a while back.
The key is select() (or IO::Select) and unbuffered IO.
Note that nonblocking sockets are a bit of a red herring -
you almost never need to use them in practice.
Andrew.
In Section
Seekers of Perl Wisdom