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

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2016-09-26 02:38 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (475 votes). Check out past polls.