http://www.perlmonks.org?node_id=11113970


in reply to Re^4: Substitution with regex and memory consumption
in thread Substitution with regex and memory consumption

As always the devil is in the detail. Consider for example:
{ $s = ".....X....."; $s =~ s/X/Y/; $x = eval q{ "[ $`$& $' ]" }; }
You can't rely on PL_sawampersand.

Dave.