http://www.perlmonks.org?node_id=743718


in reply to Re^3: For vs. Foreach
in thread For vs. Foreach

If you break out foreach $n (1..10) { } as separate from foreach $n (LIST) { }, then you should also break out foreach $item (@an_array) {} as a special kind of foreach as well, since a list copy is not made.

And then you'd also have to break out a slice too. Or any other array lvalue.

I think your false distinction of "counting loop" as separate is just that. False. There are two kinds of loops: for and foreach. They each have subfeatures. That's it. Not three kinds.