By that I mean trying to figure out a way to use the END block to pause, but only in the event of a die or exit and not if the script finishes and terminates normally.
perlmod notes:
Inside an END code block, $? contains the value that the program is going to pass to exit().
- tye
In reply to Re^3: Getting the Behavior of the "file open or die" Pragma but with a Program Pause ($?)
by tye
in thread Getting the Behavior of the "file open or die" Pragma but with a Program Pause
by perldigious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |