in reply to Sleep until keypress

As simple as it sounds, on windows, I'm simply using a system("PAUSE"); command. Perhaps to simple, but for what your looking for, it should do the trick.

Replies are listed 'Best First'.
Re^2: Sleep until keypress
by tachyon-II (Chaplain) on Apr 23, 2008 at 12:16 UTC

    That works OK on Win32 if you have the right keyboard. Less offers more functionality (based on the keypress) than more. If you only use windows you probably don't understand that why less is more!

      If vendion has some more 'advanced' requirements, ReadKey is certainly the way to go, but based on his question, it was not obvious at first sight. The idea behind my reply was that, sometime, installing and using CPAN modules like ReadKey just to pause a script until the user is ready to proceed to the rest of the script, is useless. Sometime the simplest solution is the best.

        That would work if I am writing it on Windows, but I am using Linux and a simple pause does not work. I ended up using ReadKey and it works exactly how I wanted it, again thanks for the help.