Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
correct s/fruit/fruits/ typo
  • Loading branch information
Carl Masak committed May 9, 2015
1 parent d259b71 commit 7fb834e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Perl6/Perl5/Differences.pod
Expand Up @@ -24,12 +24,12 @@ This list is currently known to be incomplete.
Where you used to say:

my @fruits = ("apple", "pear", "banana");
print $fruit[0], "\n";
print $fruits[0], "\n";

You would now say:

my @fruits = "apple", "pear", "banana";
say @fruit[0];
say @fruits[0];

Or even use the C<< <> >> operator, which replaces C<qw()>:

Expand Down

0 comments on commit 7fb834e

Please sign in to comment.