Created
February 19, 2013 10:47
-
-
Save mattn/4984828 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
use strict; | |
use warnings; | |
use utf8; | |
use Perl6::Say; | |
use Try::Lite; | |
package 俺の例外; | |
use parent 'Exception::Tiny'; | |
package main; | |
try { | |
俺の例外->throw(); | |
} @{ | |
'俺の例外' => sub { | |
say "---> $@"; | |
}, | |
'*' => sub { | |
say "--->> $@"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment