http://www.perlmonks.org?node_id=713932


in reply to Double clicking a raw mode Win32::Console app

If you don't need Win32::Console, this one also waits for the pressing of a key:
print "\nFile table.html created (press a key)\n"; $line = <STDIN>;

Replies are listed 'Best First'.
Re^2: Double clicking a raw mode Win32::Console app
by MidLifeXis (Monsignor) on Sep 27, 2008 at 02:29 UTC

    Almost, but not quite. It will wait for a record (delimiter set by $/). Even then, you may have some buffering issues on the console, where the console's record separator is the newline (for that platform).

    See the Term::ReadKey option above.

    Update: Made first paragraph less harsh.

    --MidLifeXis