for $x ($] .. $#myarray) ## is actually technically better than for $x (0..$#myarray)