perldelta for CORE:: and TARG
authorFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 05:20:41 +0000 (22:20 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 22 May 2012 05:26:51 +0000 (22:26 -0700)
pod/perldelta.pod

index 7c1b749..1b9db6d 100644 (file)
@@ -371,6 +371,15 @@ regular expression engine, as with C<$1> [perl #112184].
 C<undef> on a control character glob (C<undef *^H>) 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<print &CORE::uc("a"), &CORE::uc("b")> used to print "BB".  The same thing
+would happen with an lvalue subroutine returning the return value of C<uc>.
+Now the value is copied in such cases.
+
 =back
 
 =head1 Known Problems