Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

( #75985=categorized answer: print w/ replies, xml ) Need Help??

Q&A > input and output > How can I get just one character from STDIN? 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2014-07-22 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (126 votes), past polls