my $joined_targets = join "|", map { quotemeta } @target_words; [download]
In reply to Re^2: Perl regex question by repellent in thread Perl regex question by anlamarama