Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-06-23 23:28 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (555 votes). Check out past polls.