Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed typos
  • Loading branch information
zoffixznet committed Mar 31, 2015
1 parent b31bdbf commit ab48f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Language/5to6.pod
Expand Up @@ -398,8 +398,8 @@ Note that in both Perl 5 and Perl 6, the surrounding braces or parens can
often be omitted, though the omission can reduce readability.
In Perl 5, the arrow operator, C«->» , is used for single access to a
composite's reference, or to call a sub through it's reference. In Perl 6,
we now use the dot operator C<.> for those task.
composite's reference or to call a sub through its reference. In Perl 6,
we now use the dot operator C<.> for those tasks.
# Perl 5
say $arrayref->[7];
Expand Down Expand Up @@ -711,7 +711,7 @@ read-write is needed.
for @cars -> $car {...} # Perl 6; read-only
for @cars <-> $car {...} # Perl 6; read-write
If no the default topic C<$_> is being used, but needs to be read-write,
If the default topic C<$_> is being used, but needs to be read-write,
then just use C«<->» and explicitly specify C«$_».
for (@cars) {...} # Perl 5; default topic
Expand Down

0 comments on commit ab48f45

Please sign in to comment.