This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for EBCDIC now working
[perl5.git] / pod / perldelta.pod
index d4f3ce2..b0eb966 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.21.9
+perldelta - what is new for perl v5.21.10
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.21.8 release and the 5.21.9
+This document describes differences between the 5.21.9 release and the 5.21.10
 release.
 
-If you are upgrading from an earlier release such as 5.21.7, first read
-L<perl5218delta>, which describes differences between 5.21.7 and 5.21.8.
+If you are upgrading from an earlier release such as 5.21.8, first read
+L<perl5219delta>, which describes differences between 5.21.8 and 5.21.9.
 
 =head1 Notice
 
@@ -45,6 +45,16 @@ XXX For a release on a stable branch, this section aspires to be:
 
 [ List each incompatible change as a =head2 entry ]
 
+=head2 C<(?[...])> operators now follow standard Perl precedence
+
+This experimental feature allows set operations in regular expression
+patterns.  Prior to this, the intersection operator had the same
+precedence as the other binary operators.  Now it has higher precedence.
+This could lead to different outcomes than existing code expects (though
+the documentation has always noted that this change might happen,
+recommending fully parenthesizing the expressions).  See
+L<perlrecharclass/Extended Bracketed Character Classes>.
+
 =head1 Deprecations
 
 XXX Any deprecated features, syntax, modules etc. should be listed here.
@@ -89,7 +99,12 @@ There may well be none in a stable release.
 
 =item *
 
-XXX
+The functions
+C<utf8::native_to_unicode()> and
+C<utf8::unicode_to_native()> (see L<utf8>)
+are now optimized out on ASCII platforms.
+There is now not even a minimal performance hit in writing code portable
+between ASCII and EBCDIC platforms.
 
 =back
 
@@ -119,27 +134,135 @@ XXX
 
 =item *
 
-L<B> has been upgraded from version 1.55 to 1.56.
+L<B> has been upgraded from version 1.56 to 1.57.
 
 =item *
 
-L<Encode> has been upgraded from version 2.67 to 2.68.
+L<B::Deparse> has been upgraded from version 1.33 to 1.34.
+
+Deparse C<$#_> as that instead of as C<$#{_}>.  [perl #123947]
+
+=item *
 
-Building in C++ mode on Windows now works.
+L<Carp> has been upgraded from version 1.35 to 1.36.
 
 =item *
 
-L<bigint>, L<bignum>, L<bigrat> have been upgraded to version 0.39.
+L<CPAN> has been upgraded from version 2.05 to 2.10.
+
+=over 4
+
+=item *
+
+Add support for C<Cwd::getdcwd()> and introduce workaround for a misbehaviour
+seen on Strawberry Perl 5.20.1.
+
+=item *
+
+Fix C<chdir()> after building dependencies bug.
+
+=item *
+
+Introduce experimental support for plugins/hooks.
+
+=item *
 
-Document in CAVEATS that using strings as numbers won't always invoke
-the big number overloading, and how to invoke it.  [perl #123064]
+Integrate the App::Cpan sources.
 
 =item *
 
-L<PerlIO::scalar> has been upgraded from version 0.21 to 0.22.
+Do not check recursion on optional dependencies.
 
-Attemptting to write at file positions impossible for the platform now
-fail early rather than wrapping at 4GB.
+=item *
+
+Sanity check META.yml to contain a hash.
+L<[cpan #95271]|https://rt.cpan.org/Ticket/Display.html?id=95271>
+
+=back
+
+=item *
+
+L<CPAN::Meta> has been upgraded from version 2.143240 to 2.150001.
+
+=item *
+
+L<Data::Dumper> has been upgraded from version 2.157 to 2.158.
+
+=item *
+
+L<Devel::PPPort> has been upgraded from version 3.28 to 3.31.
+
+=item *
+
+L<DynaLoader> has been upgraded from version 1.31 to 1.32.
+
+=item *
+
+L<Encode> has been upgraded from version 2.70 to 2.72.
+
+=item *
+
+L<encoding> has been upgraded from version 2.13 to 2.14.
+
+=item *
+
+L<Getopt::Long> has been upgraded from version 2.43 to 2.45.
+
+=item *
+
+L<locale> has been upgraded from version 1.05 to 1.06.
+
+=item *
+
+L<Locale::Codes> has been upgraded from version 3.33 to 3.34.
+
+=item *
+
+L<Module::CoreList> has been reverted from version 5.20150220 to 5.20150320.
+
+=item *
+
+L<parent> has been upgraded from version 0.228 to 0.232.
+
+No changes to installed files other than the version bump.
+
+=item *
+
+L<Pod::Functions> has been upgraded from version 1.08 to 1.09.
+
+=item *
+
+L<POSIX> has been upgraded from version 1.51 to 1.52.
+
+=item *
+
+L<re> has been upgraded from version 0.31 to 0.32.
+
+=item *
+
+L<Test::Simple> has been reverted from version 1.301001_098 to 1.001014.
+
+=item *
+
+L<Text::Balanced> has been upgraded from version 2.02 to 2.03.
+
+No changes to installed files other than the version bump.
+
+=item *
+
+L<Text::ParseWords> has been upgraded from version 3.29 to 3.30.
+
+=item *
+
+L<threads> has been upgraded from version 1.96_001 to 2.01.
+
+=item *
+
+L<utf8> has been upgraded from version 1.14 to 1.15.
+
+=item *
+
+L<XS::APItest> has been upgraded from version 0.70 to 0.71.
 
 =back
 
@@ -172,13 +295,40 @@ XXX Changes which significantly change existing files in F<pod/> go here.
 However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
 section.
 
-=head3 L<XXX>
+=head3 L<perldata>
 
 =over 4
 
 =item *
 
-XXX Description of the change here
+Documentation has been added regarding the special floating point values C<Inf>
+and C<NaN>.
+
+=back
+
+=head3 L<perlexperiment>
+
+=over 4
+
+=item *
+
+Removed note about C<\s> matching C<VT> now that it is no longer experimental.
+
+=item *
+
+Added note that C<use re 'strict'> has been introduced experimentally.
+
+=back
+
+=head3 L<perlpolicy>
+
+=over 4
+
+=item *
+
+The documentation of what to expect to see in future maintenance releases has
+been updated.  Essentially the same types of changes will be included as before
+but with fewer changes that don't affect the installation or execution of perl.
 
 =back
 
@@ -202,7 +352,12 @@ and New Warnings
 
 =item *
 
-XXX L<message|perldiag/"message">
+L<Invalid quantifier in {,} in regex; marked by <-- HERE in mE<sol>%sE<sol>|perldiag/"Invalid quantifier in {,} in regex; marked by <-- HERE in m/%s/">
+
+(F) The pattern looks like a {min,max} quantifier, but the min or max could not
+be parsed as a valid number - either it has leading zeroes, or it represents
+too big a number to cope with.  The S<<-- HERE> shows where in the regular
+expression the problem was discovered.  See L<perlre>.
 
 =back
 
@@ -278,7 +433,7 @@ that they represent may be covered elsewhere.
 
 =item *
 
-XXX
+Tests for performance issues have been added in the file F<t/perf/taint.t>.
 
 =back
 
@@ -298,9 +453,17 @@ source tree.
 
 =over 4
 
-=item XXX-some-platform
+=item z/OS running EBCDIC Code Page 1047
 
-XXX
+Core perl now works on this EBCDIC platform.  Early perls also worked,
+but, even though support wasn't officially withdrawn, recent perls would
+not compile and run well.  Perl v5.20 would work, but had many bugs
+which have now been fixed.  Many CPAN modules that ship with Perl still
+fail tests, including Pod::Simple.  However the version of Pod::Simple
+currently on CPAN should work; it was fixed too late to include in
+Perl v5.22.  Work is under way to fix many of the still-broken CPAN
+modules, which likely will be installed on CPAN when completed, so that
+you may not have to wait until v5.24 to get a working version.
 
 =back
 
@@ -325,10 +488,9 @@ L</Modules and Pragmata> section.
 
 =over 4
 
-=item Windows
+=item XXX-some-platform
 
-Perl can now be built in C++ mode on Windows by setting the makefile macro
-C<USE_CPLUSPLUS> to the value "define".
+XXX
 
 =back
 
@@ -344,7 +506,9 @@ well.
 
 =item *
 
-XXX
+Macros have been created to allow XS code to better manipulate the POSIX
+locale category C<LC_NUMERIC>.
+See L<perlapi/Locale-related functions and macros>.
 
 =back
 
@@ -359,7 +523,41 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
 
 =item *
 
-XXX
+Repeated global pattern matches in scalar context on large tainted
+strings were exponentially slow depending on the current match
+position in the string. [perl #123202]
+
+=item *
+
+Various crashes due to the parser getting confused by syntax errors have
+been fixed.  [perl #123801] [perl #123802] [perl #123955] [perl #123995]
+
+=item *
+
+C<split> in the scope of lexical $_ has been fixed not to fail assertions.
+[perl #123763]
+
+=item *
+
+C<my $x : attr> syntax inside various list operators no longer fails
+assertions.  [perl #123817]
+
+=item *
+
+An @ sign in quotes followed by a non-ASCII digit (which is not a valid
+identifier) would cause the parser to crash, instead of simply trying the @
+as literal.  This has been fixed.  [perl #123963]
+
+=item *
+
+C<*bar::=*foo::=*glob_with_hash> has been crashing since 5.14, but no
+longer does.  [perl #123847]
+
+=item *
+
+C<foreach> in scalar context was not pushing an item on to the stack,
+resulting in bugs.  (C<print 4, scalar do { foreach(@x){} } + 1> would
+print 5.)  It has been fixed to return C<undef>.  [perl #124004]
 
 =back
 
@@ -375,7 +573,29 @@ platform specific bugs also go here.
 
 =item *
 
-XXX
+A goal is for Perl to be able to be recompiled to work reasonably well
+on any Unicode version.  In v5.22, though, the earliest such version is
+Unicode 5.1 (current is 7.0).
+
+=item *
+
+EBCDIC platforms
+
+=over 4
+
+=item *
+
+Encode and encoding are mostly broken.
+
+=item *
+
+Many cpan modules that are shipped with core show failing tests
+
+=item *
+
+C<pack>/C<unpack> with C<"U0"> format may not work properly.
+
+=back
 
 =back
 
@@ -399,7 +619,7 @@ here.
 
 XXX Generate this with:
 
-  perl Porting/acknowledgements.pl v5.21.8..HEAD
+  perl Porting/acknowledgements.pl v5.21.9..HEAD
 
 =head1 Reporting Bugs