in reply to Index in For loop

That's why Perl has two forms of for. The one iterating over an array, as you used (and is usually used under its name foreach), and the C-style for:
for (my $i = 0; $i < @list; $i ++) { print "$i: $list[$i]\n"; }

-- Abigail