IO::Select - OO interface to the select system call
use IO::Select;
$s = IO::Select->new();
$s->add(\*STDIN);
$s->add($some_handle);
@ready = $s->can_read($timeout);
@ready = IO::Select->new(@handles)->can_read(0);
The IO::Select
package implements an object approach to the system select
function call. It allows the user to see what IO handles, see IO::Handle, are ready for reading, writing or have an exception pending.
The constructor creates a new object and optionally initialises it with a set of handles.