Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Answer: How can I get just one character from STDIN?

by teleron (Novice)
on Apr 27, 2001 at 07:52 UTC ( #75985=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > How can I get just one character from STDIN? - Answer contributed by teleron

Use Term::ReadKey. Set Readmode 'cbreak'. I use it if I am in a loop and need to get out by pressing a key.

  • Comment on Answer: How can I get just one character from STDIN?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2016-12-05 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (82 votes). Check out past polls.