in reply to map function use
But I guess your biggest problem is that the regexp uses $phrases, while the join creates $string.my $string = join '|', map {quotemeta} @phrases; $sentence =~ s/(\s$string\s)/#$1#/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: map function use
by AnomalousMonk (Archbishop) on Aug 14, 2009 at 05:52 UTC |