No, it should read:
for my $idx ( 0..$#$mysql ) { [download]
In reply to Re^3: Style and Preference on Loops by jwkrahn in thread Style and Preference on Loops by Anonymous Monk