Massyn has asked for the wisdom of the Perl Monks concerning the following question:
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"; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to code Pascal's keypressed function in Perl
by valdez (Monsignor) on Aug 03, 2002 at 17:04 UTC | |
by Anonymous Monk on May 19, 2009 at 15:36 UTC | |
Re: How to code Pascal's keypressed function in Perl
by jlongino (Parson) on Aug 03, 2002 at 17:33 UTC | |
Re: How to code Pascal's keypressed function in Perl
by YuckFoo (Abbot) on Aug 03, 2002 at 21:50 UTC | |
by Jenda (Abbot) on Aug 04, 2002 at 23:08 UTC |