Hi,
what dragonchild said is correct... What variable are you substituting on?
if Metacharacter found inside the variable use 'quotemeta' or '\Q' and '\E'
or$line='Sampel Text <a href="somefilename(x)withanumberedhash.htm#666"> +'; $somethingelse='ok'; $var = '<a href="somefilename(x)withanumberedhash.htm#666">'; $var=quotemeta($var); $line=~s@$var@$somethingelse@;
$line=~s@\Q$var\E@$somethingelse@;
In reply to Re: substituted text is being interpreted
by gopalr
in thread substituted text is being interpreted
by j.goor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |