Is there any way to check for a key-press that does not wait? Sort of check it on the fly, or periodicly? TIA, MikerUse HotKey.pm; foreach $i (@things) { &program_running($i); while ($keyboard = readkey) { # This is the gotcha if ($keyboard =~ /b/) { print "you pressed b \n"; } } }
In reply to When is a while not a while? by Miker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |