$.=0; # wird mit seek nicht auf 0 zurückgesetzt while ($entry = <$txtFH>) { last if $. == $selEntry; }