while (<$fh>) { my @split = split(/,/, $_); if($split[$b] < $Ergebnis) #überprüft nach minimum { $Ergebnis=$split[$b]; } else{next}; }