Skip to content

Commit 806ebcb

Browse files
committed
Add another example that seemed to be missing
1 parent 3cd3789 commit 806ebcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

S07-lists.pod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ treated as a single argument to the C<for> loop, thus the name of the rule.
5858
for [1, 2, 3] { } # Array of 3 things (put in Scalars); 3 iterations
5959
for @a, @b { } # List of 2 things; 2 iterations
6060
for (@a,) { } # List of 1 thing; 1 iteration
61+
for (@a) { } # List of @a.elems things; @a.elems iterations
6162
for @a { } # List of @a.elems things; @a.elems iterations
6263

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

0 commit comments

Comments
 (0)