This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for 20d5dc239 (fatal in-place sort)
authorFather Chrysostomos <sprout@cpan.org>
Sat, 13 Jul 2013 21:35:49 +0000 (14:35 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 13 Jul 2013 23:44:32 +0000 (16:44 -0700)
pod/perldelta.pod

index 9148eec..b65e4de 100644 (file)
@@ -521,6 +521,13 @@ an internal copy of the scalar instead.
 Undefining an inlinable lexical subroutine (C<my sub foo() { 42 } undef
 &foo>) would result in a crash if warnings were turned on.
 
+=item *
+
+Certain uses of the C<sort> operator are optimised to modify an array in
+place, such as C<@a = sort @a>.  During the sorting, the array is made
+read-only.  If a sort block should happen to die, then the array remained
+read-only even outside the C<sort>.  This has been fixed.
+
 =back
 
 =head1 Known Problems