in reply to Re^3: My favorite looping mechanism in Perl is:
in thread My favorite looping mechanism in Perl is:

oh, you mean like

for my $i ( grep { not $_ % ROWSIZE } 0 .. $#array )

Replies are listed 'Best First'.
Re^5: My favorite looping mechanism in Perl is:
by sauoq (Abbot) on Jun 25, 2012 at 21:29 UTC

    That would do ROWSIZE mods and ROWSIZE comparisons plus some other junk in place of a single addition.

    -sauoq
    "My two cents aren't worth a dime.";
Re^5: My favorite looping mechanism in Perl is:
by Anonymous Monk on Jun 25, 2012 at 13:54 UTC

    Yes. using foreach you have to do something terribly contorted and crazily inefficient. Like that.

    Thank you for so adeptly illustrating my point.