in reply to STDIN and timeout or auto answer

Have a look at prompt and timeout in tests from last month. (The short answer: use alarm.)

Replies are listed 'Best First'.
Re^2: STDIN and timeout or auto answer
by pc88mxer (Vicar) on Feb 22, 2008 at 22:30 UTC
    Does Term::ReadKey work on Active State Perl? I know it works under Cygwin perl. If alarm and select are out, the only solution might be Term::ReadKey and busy waiting (i.e. have a loop which constantly checks the time and Term::ReadKey.)
Re^2: STDIN and timeout or auto answer
by ikegami (Patriarch) on Feb 22, 2008 at 22:00 UTC
    alarm doesn't work on Windows, at least not here. Neither does select with non-socket handles, so that's out too.