Simple! That happens because of interpolations. Try assigning as follows
my $replace= '"ree$1VINOTH"';
You can also do that in regular expression like
my $find="REE (.*) vinoth"; my $replace= 'ree$1VINOTH'; my $var = "REE is alias of vinoth"; $var =~ s/REE (.*) vinoth/'"'.$replace.'"'/ee;
The great pleasure in my life is doing what people say you cannot do.
In reply to Re: find and replace
by lakshmananindia
in thread find and replace
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |