LOOP: for (0 .. $#array) { if ($array[$_] eq $searched) { print "$searched found at $_ \n"; last LOOP; } }