foreach (@liste)  { if ($_==$Wert) {   # irgendwas tun, z.B. $gefunden = 1;   last; #abbruch } }