Created
May 30, 2011 05:45
-
-
Save JEEN/998499 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
use Try::Tiny; | |
print yell(); | |
sub shout { | |
die "AAA"; | |
} | |
sub yell { | |
my ($cat) = @_; | |
try { | |
shout(); | |
} catch { | |
warn "WTF?"; | |
return 0; | |
}; | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment