in reply to Re^2: Quick easy question: What does $i mean?
in thread Quick easy question: What does $i mean?

cause we like the perl-ish way better :) But i think the point is that in perl, the array (assuming that's the context) indices themselves aren't needed. For example,
for (my $i = 0; $i < $#array + 1; ++$i){ print $array[$i] . "\n"; }
Is "better" written:
foreach my $s ( @array ){ print "$s\n"; } # OR one of many other ways like: print $_."\n" for @array;
Of course, if the output needs the array index in it, that changes things...