Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Getting the Behavior of the "file open or die" Pragma but with a Program Pause ($?)

by tye (Sage)
on Oct 10, 2016 at 23:48 UTC ( #1173685=note: print w/replies, xml ) Need Help??


in reply to Re^2: Getting the Behavior of the "file open or die" Pragma but with a Program Pause (-Mouse)
in thread Getting the Behavior of the "file open or die" Pragma but with a Program Pause

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        

  • Comment on Re^3: Getting the Behavior of the "file open or die" Pragma but with a Program Pause ($?)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1173685]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2020-10-26 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (253 votes). Check out past polls.

    Notices?