"be consistent" | |
PerlMonks |
How can I get just one character from STDIN?by Anonymous Monk |
on Mar 12, 2001 at 02:49 UTC ( [id://63680]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (input and output)
I want to capture a single character like the C function getch(). $ch = <STDIN> and $ch = getc() don't return until the user enters a trailing newline. What method(s) are available for this?
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|