This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for ab7a3d991f6e4eb554d12bf4f083c352fe40452f
[perl5.git] / pod / perldelta.pod
index f78e915..34aa697 100644 (file)
@@ -5,15 +5,15 @@
 [ this is a template for a new perldelta file.  Any text flagged as XXX needs
 to be processed before release. ]
 
-perldelta - what is new for perl v5.31.1
+perldelta - what is new for perl v5.31.3
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.31.0 release and the 5.31.1
+This document describes differences between the 5.31.2 release and the 5.31.3
 release.
 
-If you are upgrading from an earlier release such as 5.30.0, first read
-L<perl5310delta>, which describes differences between 5.30.0 and 5.31.0.
+If you are upgrading from an earlier release such as 5.31.1, first read
+L<perl5312delta>, which describes differences between 5.31.1 and 5.31.2.
 
 =head1 Notice
 
@@ -45,6 +45,25 @@ XXX For a release on a stable branch, this section aspires to be:
 
 [ List each incompatible change as a =head2 entry ]
 
+=head2 Plain "0" string now treated as a number for range operator
+
+Previously a range C< "0" .. "-1" > would produce a range of numeric
+strings from "0" through "99", this now produces an empty list, just
+as C< 0 .. -1 > does.
+
+This was due to a special case that treated strings starting with "0"
+as strings so ranges like C< "00" .. "03" > produced C< "00", "01",
+"02", "03" >, but didn't specially handle the string C<"0">.
+
+[perl #133695]
+
+=head2 C<\K> now disallowed in look-ahead and look-behind assertions
+
+This was disallowed because it causes unexpected behaviour, and no-one
+could define what the desired behaviour was.
+
+[perl #124256]
+
 =head1 Deprecations
 
 XXX Any deprecated features, syntax, modules etc. should be listed here.
@@ -125,11 +144,48 @@ XXX Remove this section if not applicable.
 
 =item *
 
-L<Storable> has been upgraded from version 3.15 to 3.16.
+L<Devel::PPPort> has been upgraded from version 3.54 to 3.55.
+
+The test files generated on Win32 are now identical to when they are
+generated on POSIX-like systems.
+
+=item *
+
+L<File::Find> has been upgraded from version 1.36 to 1.37.
+
+On Win32, the tests no longer require either a file in the drive root
+directory, or a writable root directory.
+
+=item *
+
+L<Thread> has been upgraded from version 3.04 to 3.05.
+
+=item *
+
+L<Getopt::Long> has been upgraded from version 2.50 to 2.51.
 
-Regular expressions objects weren't properly counted for object id
-purposes on retrieve.  This would corrupt the resulting structure, or
-cause a runtime error in some cases.  [perl #134179]
+=item *
+
+L<Time::HiRes> has been upgraded from version 1.9761 to 1.9762.
+
+Removed obsolete code such as support for pre-5.6 perl and classic
+MacOS.  [perl #134288]
+
+=item *
+
+L<I18N::LangTags> has been upgraded from version 1.07 to 1.08.
+
+Document the C<IGNORE_WIN32_LOCALE> environment variable.
+
+=item *
+
+L<Test::Simple> has been upgraded from version 1.302164 to 1.302166.
+
+=item *
+
+L<XXX> has been upgraded from version A.xx to B.yy.
+
+If there was something important to note about this change, include that here.
 
 =back
 
@@ -139,9 +195,7 @@ cause a runtime error in some cases.  [perl #134179]
 
 =item *
 
-Pod::Parser has been removed from the core distribution.
-It still is available for download from CPAN.  This resolves [perl
-#119439].
+XXX
 
 =back
 
@@ -334,9 +388,10 @@ L</Modules and Pragmata> section.
 
 =over 4
 
-=item XXX-some-platform
+=item Windows
 
-XXX
+F<t/op/magic.t> could fail if environment varables starting with
+C<FOO> already existed.
 
 =back
 
@@ -352,8 +407,19 @@ well.
 
 =item *
 
-L<eval_pv()|perlapi/eval_pv> no longer stringifies the exception when
-C<croak_on_error> is true.  [perl #134175]
+A new parser function L<parse_subsignature()|perlapi/parse_subsignature>
+allows a keyword plugin to parse a subroutine signature while C<use feature
+'signatures'> is in effect.  This allows custom keywords to implement
+semantics similar to regular C<sub> declarations that include signatures.
+[perl #132474]
+
+=item *
+
+Since on some platforms we need to hold a mutex when temporarily
+switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>,
+C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>)
+have been added to make it easier to do this safely and efficiently
+as part of [perl #134172].
 
 =back
 
@@ -368,82 +434,19 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-close() on a pipe now preemptively clears the PerlIO object from the
-IO SV.  This prevents a second attempt to close the already closed
-PerlIO object if a signal handler calls die() or exit() while close()
-is waiting for the child process to complete.  [perl #122112]
-
-=item *
-
-C<< sprintf("%.*a", -10000, $x) >> would cause a buffer overflow due
-to mishandling of the negative precision value.  [perl #134008]
-
-=item *
-
-scalar() on a reference could cause an erroneous assertion failure
-during compilation.  [perl #134045]
-
-=item *
-
-Extraordinarily large (over 2GB) floating point format widths could
-cause an integer overflow in the underlying call to snprintf(),
-resulting in an assertion.  Formatted floating point widths are now
-limited to the range of int, the return value of snprintf().  [perl
-#133913]
-
-=item *
-
-Parsing the following constructs within a sub-parse (such as with
-C<"${code here}"> or C<s/.../code here/e>) has changed to match how
-they're parsed normally:
-
-=over
-
-=item *
-
-C<print $fh ...> no longer produces a syntax error.
-
-=item *
-
-Code like C<s/.../ ${time} /e> now properly produces an "Ambiguous use
-of ${time} resolved to $time at ..." warning when warnings are enabled.
-
-=item *
-
-C<@x {"a"}> (with the space) in a sub-parse now properly produces a
-"better written as" warning when warnings are enabled.
-
-=item *
-
-attributes can now be used in a sub-parse.
-
-=back
-
-[perl #133850]
+C<< $@ = 100; die; >> now correctly propagates the 100 as an exception
+instead of ignoring it.  [perl #134291]
 
 =item *
 
-Incomplete hex and binary literals like C<0x> and C<0b> are now
-treated as if the C<x> or C<b> is part of the next token.  [perl
-#134125]
-
-=item *
-
-A spurious C<)> in a subparse, such as in C<s/.../code here/e> or
-C<"...${code here}">, no longer confuses the parser.
-
-Previously a subparse was bracketed with generated C<(> and C<)>
-tokens, so a spurious C<)> would close the construct without doing the
-normal subparse clean up, confusing the parser and possible causing an
-assertion failure.
-
-Such constructs are now surrounded by artificial tokens that can't be
-included in the source.  [perl #130585]
+C<< 0 0x@ >> no longer asserts in S_no_op().  [perl #134310]
 
 =item *
 
-Reference assignment of a sub, such as C<\&foo = \&bar;>, silently did
-nothing in the C<main::> package.  [perl #134072]
+Exceptions thrown while C<$@> is read-only could result in infinite
+recursion as perl tried to update C<$@>, which throws another
+exception, resulting in a stack overflow.  Perl now replaces C<$@>
+with a copy if it's not a simple writable SV.  [perl #134266]
 
 =back
 
@@ -483,7 +486,7 @@ died, add a short obituary here.
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.31.0..HEAD
+  perl Porting/acknowledgements.pl v5.31.2..HEAD
 
 =head1 Reporting Bugs