use strict; use warnings; my @file; my @stichworte; open(FILE1, $ARGV[0])|| die "could not open file"; while () { push @stichworte, $1 if /^(\w+),/; } close FILE1; # Regex zusammenbasteln my $verodert = join '|', @stichworte; open(FILE2, $ARGV[1])|| die "could not open file"; while () { # aus Dateien aus @ARGV s~($verodert)~$1~gi; push @file, $_; print @file; } close FILE2;