in reply to "ee" in Regular Expression: version issue?
means$var =~ s/$lhs/$rhs/ee;
(Except that exceptions aren't caught.)$var =~ s/$lhs/eval $rhs/e;
That means $rhs must contain valid Perl code, yet $1$2$3 is not valid Perl code. "$1$2$3" or $1.$2.$3 would be valid Perl code, so you want
or$rhs = '"$1$2$3"';
$rhs = '$1.$2.$3';
|
---|
In Section
Seekers of Perl Wisdom