http://www.perlmonks.org?node_id=1061607


in reply to Using an array element as a loop iterator

foreach loops alias each element of the array into the loop variable. AFAIK this alias simply doesn't work with array elements. Since there is no alias happening in a c-style loop there is no problem