From ceb0881ce613204fa7534768708fdc23eae60962 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Mon, 21 May 2012 22:20:41 -0700 Subject: [PATCH] perldelta for CORE:: and TARG --- pod/perldelta.pod | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 7c1b749..1b9db6d 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -371,6 +371,15 @@ regular expression engine, as with C<$1> [perl #112184]. C on a control character glob (C) no longer emits an erroneous warning about ambiguity [perl #112456]. +=item * + +For efficiency's sake, many operators and built-in functions return the +same scalar each time. Lvalue subroutines and subroutines in the CORE:: +namespace were allowing this implementation detail to leak through. +C used to print "BB". The same thing +would happen with an lvalue subroutine returning the return value of C. +Now the value is copied in such cases. + =back =head1 Known Problems -- 2.7.4