It just waits without printing the print statement,I mean it is already expecting a user input without printing the print statement.\
print "Press <Enter> to continue, or 'q' to quit: "; my $input = <STDIN>; exit if $input eq "q\n";
In reply to Re^4: Is there a way to halt the program until an enter is pressed?
by Anonymous Monk
in thread Is there a way to halt the program until an enter is pressed?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |