in reply to Timeout on STDIN

Take a look in IO::Select, where you can test with a timeout if you have data to read in an IO Handler.

But note that for Win32 IO::Select won't work for STDIN. ;-/

Graciliano M. P.
"Creativity is the expression of the liberty".