With IO::Handle loaded you can just do:

    STDIN->blocking(0)

to get the same effect the code that Gaal posted.

Look into event loops (AnyEvent, for example) for a more structred
approach to single process, nonblocking multiplexed IO.
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to