in reply to Keeping a Count in foreach
foreach $index (0..$#s) { print "$index: $s[$index]\n"; } [download]