summaryrefslogtreecommitdiffhomepage
path: root/perl6.html.markdown
diff options
context:
space:
mode:
authorC. Bess <cbess@company.com>2015-11-23 13:06:30 -0600
committerC. Bess <cbess@company.com>2015-11-23 13:06:30 -0600
commit8ca7f472eccdb116d597a2a8d888c188d797469e (patch)
tree4d31ab95dc5c435361e10eaa3a18ca9ab8cfd6b1 /perl6.html.markdown
parent99b2c3db3705b5231ca360c9fa69c8319caab69b (diff)
parent2d67c58d7f4ea457e756e0973bba0c25a499957e (diff)
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'perl6.html.markdown')
-rw-r--r--perl6.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl6.html.markdown b/perl6.html.markdown
index 3eec19f3..1829f964 100644
--- a/perl6.html.markdown
+++ b/perl6.html.markdown
@@ -373,7 +373,7 @@ say @array[^10]; # you can pass arrays as subscripts and it'll return
say join(' ', @array[15..*]); #=> 15 16 17 18 19
# which is equivalent to:
say join(' ', @array[-> $n { 15..$n }]);
-# Note: if you try to do either of those with an infinite loop,
+# Note: if you try to do either of those with an infinite array,
# you'll trigger an infinite loop (your program won't finish)
# You can use that in most places you'd expect, even assigning to an array
@@ -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