Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #100 from prammer/one-arg-clarify
Add another example that seemed to be missing
  • Loading branch information
jnthn committed Sep 28, 2015
2 parents 3cd3789 + 806ebcb commit cc54811
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S07-lists.pod
Expand Up @@ -58,6 +58,7 @@ treated as a single argument to the C<for> loop, thus the name of the rule.
for [1, 2, 3] { } # Array of 3 things (put in Scalars); 3 iterations
for @a, @b { } # List of 2 things; 2 iterations
for (@a,) { } # List of 1 thing; 1 iteration
for (@a) { } # List of @a.elems things; @a.elems iterations
for @a { } # List of @a.elems things; @a.elems iterations

The first two are equivalent because parentheses do not actually construct a
Expand Down

0 comments on commit cc54811

Please sign in to comment.