summaryrefslogtreecommitdiffhomepage
path: root/perl6.html.markdown
diff options
context:
space:
mode:
authorZoffix Znet <cpan@zoffix.com>2015-11-17 13:47:55 -0500
committerZoffix Znet <cpan@zoffix.com>2015-11-17 13:47:55 -0500
commite538185c0a3fbbfef7017744a44e1a98a7e50565 (patch)
tree74d072b87adde7e62cc7c8729841c7e6a31d4f3e /perl6.html.markdown
parentd8a1c0cf6a224d7b6e68f06afd444ba24bd75ede (diff)
$! is not available inside the CATCH{}
Diffstat (limited to 'perl6.html.markdown')
-rw-r--r--perl6.html.markdown2
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