Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 exploiting the Monastery: (4)
As of 2014-09-21 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls