Created
August 24, 2016 20:50
-
-
Save awwaiid/7acc14380c3a0a45e8fda5b42933b55a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 catch-control { | |
CONTROL { | |
die "Caught a CONTROL ({.gist})"; | |
} | |
die "forced exception"; | |
} | |
for 1 { | |
catch-control; | |
CATCH { | |
say "EXCEPTION: {$_.gist}"; | |
last; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment