my @konfig = ; foreach $zeile (@konfig) { if ( $zeile =~ $string1 ){ print $zeile; } }