On Windows Vista, your code doesn't do anything useful.
It does! It demonstrates that alarm works, when the operation, (sleep in this case), doesn't involve IO. Ie. The sleep 10; was interupted by the alarm 5. And that was the only reason I posted it.
For a solution to your problem that works, see Term::ReadKey
In reply to Re^7: $SIG{ALRM} and windows vista?
by BrowserUk
in thread $SIG{ALRM} and windows vista?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |