Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

by Anonymous Monk
on Sep 22, 2000 at 06:38 UTC ( #33600=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > What is a good "Press any key to continue" code? - Answer 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

Log In?

What's my password?
Create A New User
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-02-28 15:23 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (403 votes). Check out past polls.