in reply to Is there a way to halt the program until an enter is pressed?
For the purpose of debugging, or to pause a long report so it can be read in fragments? If you want to pause for debugging use Perl's built in debugger (see perldebug). If on the other hand you wish a pause for UI purposes the following may help:
print "Read this then press enter"; <>; print "Thanks for that.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to halt the program until an enter is pressed?
by Anonymous Monk on Mar 12, 2011 at 09:44 UTC | |
by GrandFather (Saint) on Mar 12, 2011 at 09:58 UTC | |
by Eliya (Vicar) on Mar 12, 2011 at 09:59 UTC | |
by Anonymous Monk on Mar 14, 2011 at 00:38 UTC | |
by GrandFather (Saint) on Mar 14, 2011 at 00:43 UTC | |
by Anonymous Monk on Mar 14, 2011 at 00:47 UTC | |
|