-
-
Save ugexe/47c6369bead8707a1aa158be78939bd2 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
# Doesn't short-circuit, so always dies | |
my $foo = try { die "xxx" } | |
|| try { 1 } | |
|| die "le end"; | |
# Short-circuits, assign $foo the value of 1 | |
my $foo = try { die "xxx" }\ | |
|| try { 1 }\ | |
|| die "le end"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment