in reply to Re: Cant use array with numbers??
in thread Cant use array with numbers??

We have been encouraging the following syntax:

for my $i (0..$#Array) { ... }

It's just as efficient, and much more readable.

Replies are listed 'Best First'.
Re^3: Cant use array with numbers??
by bruceb3 (Pilgrim) on Sep 18, 2007 at 20:33 UTC
    That is fair enough. I wasn't trying to recommend a better way, only answer the question asked.