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;
In reply to Re: map function use
by JavaFan
in thread map function use
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |