for my $i (1..$#array) { print "$i: $array[$i]\n"; }