Read up on select() and have a look at IO::Select. In particular, have a look at the IO::Select's can_read() method. It will do what you want. You just have to specify a timeout.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Timeouts when reading from socket Filehandles?
by sauoq
in thread Timeouts when reading from socket Filehandles?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |