Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello all. I need some help. I'm relatively new to the Perl scene and was wondering if there is a built in funtion similar to the C++ where you return one character (without the need to type ENTER). I believe the C++ version is get. A friend of mine recommended me to use the 'getc' funtion. However when I use 'getc <STDIN>' I am still required to press ENTER, which is what I do not want. Ideally I want to create a script that will test the incoming character "on the fly" without having to wait for "ENTER" before the test.

Replies are listed 'Best First'.
Re: scan keyboard
by larsen (Parson) on Jul 30, 2001 at 23:45 UTC