Skip to content

Instantly share code, notes, and snippets.

@gfldex
Created October 26, 2015 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfldex/57c6deea4b5244f69d09 to your computer and use it in GitHub Desktop.
Save gfldex/57c6deea4b5244f69d09 to your computer and use it in GitHub Desktop.
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