in reply to nonblocking io
For example:
Hope you find this useful.use IO::Select; $s = IO::Select->new(); $s->add(\*STDIN); if ($s->can_read(0)) { # Non-blocking check. # Something to read! } else { # Nothing to read. }
Cheers,
Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: nonblocking io
by smackdab (Pilgrim) on Oct 11, 2001 at 20:08 UTC |