in reply to find and replace
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: find and replace
by Anonymous Monk on Apr 11, 2009 at 08:21 UTC |