use strict; use warnings; #### for ( $i = 0 ; $i <= $#res ; $i++ ) { #### for my $i (0..$#res) { #### for my $thing (@res) { #### else { }