Created
October 26, 2015 13:53
-
-
Save gfldex/57c6deea4b5244f69d09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub f(){ | |
ENTER { note '1) f has been entered' } | |
LEAVE { note '2) f has been left' } | |
say '3) here be dragons'; | |
die '4) that happend to be deadly'; | |
} | |
f(); | |
say '5) am I alive?'; | |
CATCH { | |
when X::AdHoc { note q{6) no, I'm dead}; exit 1 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment