my @indexe = grep{ $array[$_] eq $check } 0..$#array; print "$check ist an der $_. Position des Arrays\n" foreach @indexe;