foreach ( 0 .. $#array ) { # $_ is set to each index number, in turn, from first (0) to last ($#array) }