Permalink
Browse files

Fix incorrect specification of implicit $_ in blocks.

git-svn-id: http://svn.pugscode.org/pugs/docs/Perl6/Spec@27784 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 7cca99e commit 5b091404c13fe16a9fd87745a96859c7bc366029 pmichaud committed Jul 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 S04-control.pod
View
@@ -44,7 +44,7 @@ without placeholder arguments that uses C<$_>
(either explicitly or implicitly) is treated as though C<$_> were a
formal parameter:
- $func = { .print if $_ }; # Same as: $func = -> $_ { .print if $_ };
+ $func = { .print if $_ }; # Same as: $func = <-> $_ { .print if $_ };
$func("printme");
In any case, all formal parameters are the equivalent of C<my> variables

0 comments on commit 5b09140

Please sign in to comment.