in reply to Re: remove part of string (DNA)
in thread remove part of string (DNA)

I think it should be
my $search_for = '('.join( '|', @processed).')';
i.e. add round brackets around the pattern group, right?