for my $i ( 0 .. $#{$v} ) { my $vv = $v->[$i]; #... }