Any idea on how this can be accomplished in perl? I can't make use of <STDIN>, as this will pause the loop. The loop needs to keep n running, as this is a service type of application. Thanks!while(1) { ... do some stuff if(keypressed) { $key = key_user_pressed; print "The user pressed $key\n"; } }
In reply to How to code Pascal's keypressed function in Perl by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |