I'm not exactly sure what you mean by counting loop. Are you saying that
foreach $x (expr1..expr2) { blah }is implemented more like
for ($y=expr1 ; $y<expr2 ; $y++) { $x=$y; blah }internally ?
In reply to Re^2: Unexpected behaviour with constant lists and foreach (and closures?)
by Crackers2
in thread Unexpected behavior of '..' lists
by Crackers2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |