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 ?
In reply to find and replace by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |