vinoth.ree has asked for the wisdom of the Perl Monks concerning the following question:
use Data::Dumper; my $find="REE (.*) vinoth"; my $replace= "ree $1 VINOTH"; my $var = "REE is alias of vinoth"; $var =~ s/$find/$replace/ee; print Dumper $var;
In the above code I expect "REE is alias of vinoth" replace to "ree is alias of VINOTH" but I did not get What I expect, I was getting output as $VAR1 = ''; What is happening here ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find and replace
by lakshmananindia (Chaplain) on Apr 11, 2009 at 08:13 UTC | |
by Anonymous Monk on Apr 11, 2009 at 08:21 UTC | |
|
Re: find and replace
by AnomalousMonk (Archbishop) on Apr 11, 2009 at 09:07 UTC |