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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I get just one character from STDIN?⭐
by fizbin (Chaplain) on Apr 14, 2003 at 14:50 UTC | |
Re: is ther any way to get only one char from stdin⭐
by AgentM (Curate) on Mar 12, 2001 at 02:56 UTC | |
Re: is ther any way to get only one char from stdin
by crazyinsomniac (Prior) on Mar 12, 2001 at 08:27 UTC | |
Re: How can I get just one character from STDIN?
by teleron (Novice) on Apr 27, 2001 at 07:52 UTC | |
Re: is ther any way to get only one char from stdin
by Caillte (Friar) on Mar 12, 2001 at 06:22 UTC | |
Re: is ther any way to get only one char from stdin
by Caillte (Friar) on Mar 12, 2001 at 14:38 UTC |
Back to
Seekers of Perl Wisdom