in reply to Re^2: how to sleep-awake on perl script?
in thread how to sleep-awake on perl script?
checkEvent is an example.
You can have your interrupt code or procedure to capture keystroke instead.
Follow these links
http://www.perlmonks.org/?node_id=534650
http://systhread.net/texts/200009pi.php
Vishy
In Section
Seekers of Perl Wisdom