diff options
author | Zoffix Znet <cpan@zoffix.com> | 2015-11-17 13:47:55 -0500 |
---|---|---|
committer | Zoffix Znet <cpan@zoffix.com> | 2015-11-17 13:47:55 -0500 |
commit | e538185c0a3fbbfef7017744a44e1a98a7e50565 (patch) | |
tree | 74d072b87adde7e62cc7c8729841c7e6a31d4f3e | |
parent | d8a1c0cf6a224d7b6e68f06afd444ba24bd75ede (diff) |
$! is not available inside the CATCH{}
-rw-r--r-- | perl6.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown index 43327edb..fce1dca5 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -738,7 +738,7 @@ try { # You can throw an exception using `die`: die X::AdHoc.new(payload => 'Error !'); -# You can access the last exception with `$!` (usually used in a `CATCH` block) +# You can access the last exception with `$!` (use `$_` in a `CATCH` block) # There are also some subtelties to exceptions. Some Perl 6 subs return a `Failure`, # which is a kind of "unthrown exception". They're not thrown until you tried to look |