We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd3789 commit 806ebcbCopy full SHA for 806ebcb
S07-lists.pod
@@ -58,6 +58,7 @@ treated as a single argument to the C<for> loop, thus the name of the rule.
58
for [1, 2, 3] { } # Array of 3 things (put in Scalars); 3 iterations
59
for @a, @b { } # List of 2 things; 2 iterations
60
for (@a,) { } # List of 1 thing; 1 iteration
61
+ for (@a) { } # List of @a.elems things; @a.elems iterations
62
for @a { } # List of @a.elems things; @a.elems iterations
63
64
The first two are equivalent because parentheses do not actually construct a
0 commit comments