Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.