in reply to Re^2: foreach to for
in thread foreach to for

And, for yet another way to do it, I follow the same pattern of for for indexing and foreach for aliasing, but I build indexing loops as
for my $i (0..$#arr) { do_whatever(); }
instead of doing it C-style (unless I need a more complex index transition than the usual $i++).