for my $i (0..$#array) { if ($array[$i]->[1] eq 'name2') { print "Gefunden: $i\n"; last; } } # for