In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/e54f3f30da93ec0535a2cb34f1b4ec36c13df13c?hp=cf174d21db5388902e4c4a28f90750eb32408e17>

- Log -----------------------------------------------------------------
commit e54f3f30da93ec0535a2cb34f1b4ec36c13df13c
Author: Father Chrysostomos <spr...@cpan.org>
Date:   Tue Sep 21 00:07:21 2010 -0700

    perldelta entries for the last two bug fixes
-----------------------------------------------------------------------

Summary of changes:
 pod/perldelta.pod |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 4b0bf1b..cb83ae8 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -336,7 +336,25 @@ L</Modules and Pragmata>.
 
 =item *
 
-XXX
+A regular expression match in the right-hand side of a substitution
+(C<s///>) that is in the same scope will no longer cause match variables to
+have the wrong values on subsequent iterations. This can happen when an
+array or hash subscript is interpolated in the right-hand side, as in
+C<s|(.)|@a{ print($1), /./ }|g>
+L<[perl #19078]|http://rt.perl.org/rt3//Public/Bug/Display.html?id=19078>.
+
+=item *
+
+Constant-folding used to cause
+
+  $text =~ ( 1 ? /phoo/ : /bear/)
+
+to turn into
+
+  $text =~ /phoo/
+
+at compile time. Now it correctly matches against C<$_>
+L<[perl #20444]|http://rt.perl.org/rt3//Public/Bug/Display.html?id=20444>.
 
 =back
 

--
Perl5 Master Repository

Reply via email to