Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: What is a good "Press any key to continue" code?

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

Q&A > input and output > What is a good "Press any key to continue" code? contributed by Anonymous Monk

use Term::ReadKey:
use Term::ReadKey; ReadMode 4; # Turn off controls keys while (not defined ($key = ReadKey(-1)) { # No key yet } print "Got key $key\n"; ReadMode 0; # Reset tty mode before exiting

Comment on Answer: What is a good "Press any key to continue" code?
Download Code
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 studying the Monastery: (16)
As of 2014-07-28 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls