in reply to
Re: Matches but not substituting
in thread
Matches but not substituting
Maybe
$Text =~ s/\Q$Find\E/$Link/g;
Comment on
Re^2: Matches but not substituting
Download
Code
Replies are listed 'Best First'.
Re^3: Matches but not substituting
by
toolic
(Bishop)
on Jun 03, 2011 at 15:10 UTC
\Q and \E are not needed here because the only characters in the regular expression part of
s///
are
LOC0123456789
, and none of those is a metacharacter.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom