diff options
author | ven <vendethiel@hotmail.fr> | 2015-11-17 20:30:20 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2015-11-17 20:30:20 +0100 |
commit | 9e4274f7c79d89e0069637f867f860a702a72e51 (patch) | |
tree | 13ba3023d8c24af6e7e1ba4efd501dbdeace45bf | |
parent | 43a5bde58e916f2643b9512785d20da4d6bc4d9e (diff) | |
parent | e538185c0a3fbbfef7017744a44e1a98a7e50565 (diff) |
Merge pull request #2028 from zoffixznet/catch-var
Perl6: $! is not available inside the CATCH{} (Possibly)
-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 3eec19f3..9f55718c 100644 --- a/perl6.html.markdown +++ b/perl6.html.markdown @@ -736,7 +736,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 |