This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update perlhist
[perl5.git] / pod / perldelta.pod
index e8a0fc2..0846821 100644 (file)
@@ -2,66 +2,41 @@
 
 =head1 NAME
 
-perldelta - what is new for perl v5.25.3
+perldelta - what is new for perl v5.25.4
 
 =head1 DESCRIPTION
 
-This document describes differences between the 5.25.2 release and the 5.25.3
+This document describes differences between the 5.25.3 release and the 5.25.4
 release.
 
-If you are upgrading from an earlier release such as 5.25.1, first read
-L<perl5252delta>, which describes differences between 5.25.1 and 5.25.2.
+If you are upgrading from an earlier release such as 5.25.2, first read
+L<perl5253delta>, which describes differences between 5.25.2 and 5.25.3.
 
-=head1 Core Enhancements
+=head1 Performance Enhancements
 
-=head2 Unicode 9.0 is now supported
-
-A list of changes is at L<http://www.unicode.org/versions/Unicode9.0.0/>.
-Modules that are shipped with core Perl but not maintained by p5p do not
-necessarily support Unicode 9.0.  L<Unicode::Normalize> does work on 9.0.
-
-=head2 Use of C<\p{I<script>}> uses the improved Script_Extensions property
-
-Unicode 6.0 introduced an improved form of the Script (C<sc>) property, and
-called it Script_Extensions (C<scx>).  As of now, Perl uses this improved
-version when a property is specified as just C<\p{I<script>}>.  The meaning of
-compound forms, like C<\p{sc=I<script>}> are unchanged.  This should make
-programs be more accurate when determining if a character is used in a given
-script, but there is a slight chance of breakage for programs that very
-specifically needed the old behavior.  See L<perlunicode/Scripts>.
+=over 4
 
-=head2 Declaring a reference to a variable
+=item *
 
-As an experimental feature, Perl now allows the referencing operator to come
-after L<C<my()>|perlfunc/my>, L<C<state()>|perlfunc/state>,
-L<C<our()>|perlfunc/mour>, or L<C<local()>|perlfunc/local>.  This syntax must
-be enabled with C<use feature 'declared_refs'>.  It is experimental, and will
-warn by default unless C<no warnings 'experimental::refaliasing'> is in effect.
-It is intended mainly for use in assignments to references.  For example:
+The rather slow implementation for the experimental subroutine signatures
+feature has been made much faster; it is now comparable in speed with the
+old-style C<my ($a, $b, @c) = @_>.
 
-    use experimental 'refaliasing', 'declared_refs';
-    my \$a = \$b;
+=back
 
-See L<perlref/Assigning to References> for slightly more detail.
+=head1 Documentation
 
-=head1 Incompatible Changes
+=head2 Changes to Existing Documentation
 
-=head2 C<${^ENCODING}> has been removed
+=head3 L<perlcall>
 
-Consequently, the L<encoding> pragma's default mode is no longer supported.  If
-you still need to write your source code in encodings other than UTF-8, use a
-source filter such as L<Filter::Encoding> on CPAN or L<encoding>'s C<Filter>
-option.
+=over 4
 
-=head2 C<scalar(%hash)> return signature changed
+=item *
 
-The value returned for C<scalar(%hash)> will no longer show information about
-the buckets allocated in the hash.  It will simply return the count of used
-keys.  It is thus equivalent to C<0+keys(%hash)>.
+Removed redundant C<dSP> from an example.
 
-A form of backwards compatibility is provided via C<Hash::Util::bucket_ratio()>
-which provides the same behavior as C<scalar(%hash)> provided prior to Perl
-5.25.
+=back
 
 =head1 Modules and Pragmata
 
@@ -71,166 +46,200 @@ which provides the same behavior as C<scalar(%hash)> provided prior to Perl
 
 =item *
 
-L<Module::CoreList> has been upgraded from version 5.20160620 to 5.20160720.
+L<Archive::Tar> has been upgraded from version 2.08 to 2.10.
 
 =item *
 
-L<XSLoader> has been upgraded from version 0.21 to 0.22, fixing a security hole
-in which binary files could be loaded from a path outside of
-L<C<@INC>|perlvar/@INC>.
+L<arybase> has been upgraded from version 0.11 to 0.12.
 
 =item *
 
-L<encoding> has been upgraded from version 2.17 to 2.17_01.
+L<B> has been upgraded from version 1.62 to 1.63.
+
+=item *
 
-This module's default mode is no longer supported as of Perl 5.25.3.  It now
-dies when imported, unless the C<Filter> option is being used.
+L<B::Concise> has been upgraded from version 0.996 to 0.998.
 
 =item *
 
-L<encoding::warnings> has been upgraded from version 0.12 to 0.13.
+L<B::Deparse> has been upgraded from version 1.37 to 1.38.
 
-This module is no longer supported as of Perl 5.25.3.  It emits a warning to
-that effect and then does nothing.
+=item *
 
-=back
+L<base> has been upgraded from version 2.23 to 2.24.
 
-=head1 Documentation
+=item *
 
-=head2 Changes to Existing Documentation
+L<bignum> has been upgraded from version 0.43 to 0.43_01.
 
-=head3 L<perldata> and L<perltie>
+=item *
 
-=over 4
+L<Carp> has been upgraded from version 1.41 to 1.42.
 
 =item *
 
-Updated documentation of C<scalar(%hash)>.  See L</scalar(%hash) return
-signature changed> above.
+L<Config::Perl::V> has been upgraded from version 0.26 to 0.27.
 
-=back
+=item *
 
-=head3 L<perlexperiment> and L<perlref>
+L<CPAN> has been upgraded from version 2.14 to 2.14_01.
 
-=over 4
+=item *
+
+L<CPAN::Meta> has been upgraded from version 2.150005 to 2.150010.
 
 =item *
 
-Documented new feature: See L</Declaring a reference to a variable> above.
+L<Digest> has been upgraded from version 1.17 to 1.17_01.
 
-=back
+=item *
 
-=head3 L<perlfunc>
+L<Digest::SHA> has been upgraded from version 5.95 to 5.96.
 
-=over 4
+=item *
+
+L<Encode> has been upgraded from version 2.84 to 2.86.
 
 =item *
 
-Clarified documentation of L<C<seek()>|perlfunc/seek>,
-L<C<tell()>|perlfunc/tell> and L<C<sysseek()>|perlfunc/sysseek>. [perl #128607]
+L<encoding> has been upgraded from version 2.17_01 to 2.18.
 
 =item *
 
-Removed obsolete documentation of L<C<study()>|perlfunc/study>.
+L<Errno> has been upgraded from version 1.25 to 1.26.
 
-=back
+=item *
 
-=head3 L<perlunicode>
+L<ExtUtils::MakeMaker> has been upgraded from version 7.18 to 7.24.
 
-=over 4
+=item *
+
+L<File::Fetch> has been upgraded from version 0.48 to 0.52.
 
 =item *
 
-Documented change to C<\p{I<script>}> to now use the improved Script_Extensions
-property.  See L</Use of \p{script} uses the improved Script_Extensions
-property> above.
+L<File::Spec> has been upgraded from version 3.64 to 3.65.
 
 =item *
 
-Updated the text to correspond with changes in Unicode UTS#18, concerning
-regular expressions, and Perl compatibility with what it says.
+L<Hash::Util> has been upgraded from version 0.20 to 0.21.
 
-=back
+=item *
 
-=head3 L<perlvar>
+L<HTTP::Tiny> has been upgraded from version 0.058 to 0.064.
 
-=over 4
+=item *
+
+L<I18N::LangTags> has been upgraded from version 0.40 to 0.41.
 
 =item *
 
-Removed obsolete documentation of C<${^ENCODING}>.  See L</${^ENCODING} has
-been removed> above.
+L<IO> has been upgraded from version 1.36 to 1.37.
 
-=back
+=item *
 
-=head1 Diagnostics
+L<IO-Compress> has been upgraded from version 2.069 to 2.069_01.
 
-The following additions or changes have been made to diagnostic output,
-including warnings and fatal error messages.  For the complete list of
-diagnostic messages, see L<perldiag>.
+=item *
 
-=head2 New Diagnostics
+L<IO::Socket::IP> has been upgraded from version 0.37 to 0.38.
 
-=head3 New Errors
+=item *
 
-=over 4
+L<IPC::Cmd> has been upgraded from version 0.94 to 0.96.
+
+=item *
+
+L<JSON::PP> has been upgraded from version 2.27400 to 2.27400_01.
 
 =item *
 
-L<The experimental declared_refs feature is not enabled|perldiag/"The experimental declared_refs feature is not enabled">
+L<Locale::Maketext> has been upgraded from version 1.27 to 1.28.
 
-(F) To declare references to variables, as in C<my \%x>, you must first enable
-the feature:
+=item *
 
-    no warnings "experimental::declared_refs";
-    use feature "declared_refs";
+L<Locale::Maketext::Simple> has been upgraded from version 0.21 to 0.21_01.
 
-=back
+=item *
 
-=head3 New Warnings
+L<Memoize> has been upgraded from version 1.03 to 1.03_01.
 
-=over 4
+=item *
+
+L<Module::CoreList> has been upgraded from version 5.20160720 to 5.20160820.
 
 =item *
 
-L<Declaring references is experimental|perldiag/"Declaring references is experimental">
+L<Module::Load::Conditional> has been upgraded from version 0.64 to 0.68.
 
-(S experimental::declared_refs) This warning is emitted if you use a reference
-constructor on the right-hand side of C<my()>, C<state()>, C<our()>, or
-C<local()>.  Simply suppress the warning if you want to use the feature, but
-know that in doing so you are taking the risk of using an experimental feature
-which may change or be removed in a future Perl version:
+=item *
 
-    no warnings "experimental::declared_refs";
-    use feature "declared_refs";
-    $fooref = my \$foo;
+L<Module::Metadata> has been upgraded from version 1.000032 to 1.000033.
 
 =item *
 
-L<C<${^ENCODING}> is no longer supported|perldiag/"${^ENCODING} is no longer supported">
+L<Net::Ping> has been upgraded from version 2.43 to 2.44.
 
-(D deprecated) The special variable C<${^ENCODING}>, formerly used to implement
-the C<encoding> pragma, is no longer supported as of Perl 5.26.0.
+=item *
 
-=back
+L<NEXT> has been upgraded from version 0.65 to 0.67.
 
-=head1 Configuration and Compilation
+=item *
 
-=over 4
+L<Opcode> has been upgraded from version 1.35 to 1.37.
 
 =item *
 
-XXX
+L<Pod::Html> has been upgraded from version 1.22 to 1.2201.
+
+=item *
+
+L<Pod::Perldoc> has been upgraded from version 3.25_02 to 3.27.
+
+=item *
+
+L<POSIX> has been upgraded from version 1.70 to 1.71.
+
+=item *
+
+L<Storable> has been upgraded from version 2.56 to 2.57.
+
+=item *
+
+L<Sys::Syslog> has been upgraded from version 0.34 to 0.34_01.
+
+=item *
+
+L<Test> has been upgraded from version 1.28 to 1.29.
+
+=item *
+
+L<Test::Harness> has been upgraded from version 3.36 to 3.36_01.
+
+=item *
+
+L<Test::Simple> has been upgraded from version 1.302045 to 1.302052.
+
+=item *
+
+L<Tie::Hash::NamedCapture> has been upgraded from version 0.09 to 0.10.
+
+=item *
+
+L<Time::Local> has been upgraded from version 1.2300 to 1.24.
 
 =back
 
-=head1 Testing
+=head1 Configuration and Compilation
 
 =over 4
 
 =item *
 
-XXX
+A probe for C<gai_strerror> was added to F<Configure> that checks if the
+the gai_strerror() routine is available and can be used to
+translate error codes returned by getaddrinfo() into human
+readable strings.
 
 =back
 
@@ -240,9 +249,22 @@ XXX
 
 =over 4
 
-=item XXX-some-platform
+=item Hurd
+
+The hints for Hurd have been improved enabling malloc wrap and reporting the
+GNU libc used (previously it was an empty string when reported).
+
+=back
+
+=head1 Internal Changes
+
+=over 4
+
+=item *
 
-XXX
+Three new ops, C<OP_ARGELEM>, C<OP_ARGDEFELEM> and C<OP_ARGCHECK> have
+been added. These are intended principally to implement the individual
+elements of a subroutine signature, plus any overall checking required.
 
 =back
 
@@ -252,59 +274,135 @@ XXX
 
 =item *
 
-An assertion failure with C<%: = 0> has been fixed. [perl #128238]
+Problems with in-place array sorts: code like C<@a = sort { ... } @a>,
+where the source and destination of the sort are the same plain array, are
+optimised to do less copying around. Two side-effects of this optimisation
+were that the contents of C<@a> as visible to to sort routine were
+partially sorted, and under some circumstances accessing C<@a> during the
+sort could crash the interpreter. Both these issues have been fixed, and
+Sort functions see the original value of C<@a>.
 
 =item *
 
-In Perl 5.18, the parsing of C<"$foo::$bar"> was accidentally changed, such
-that it would be treated as C<$foo."::".$bar>.  The previous behavior, which
-was to parse it as C<$foo:: . $bar>, has been restored. [perl #128478]
+Non-ASCII string delimiters are now reported correctly in error messages
+for unterminated strings.  [perl #128701]
 
 =item *
 
-Since Perl 5.20, line numbers have been off by one when perl is invoked with
-the B<-x> switch.  This has been fixed. [perl #128508]
+C<pack("p", ...)> used to emit its warning ("Attempt to pack pointer to
+temporary value") erroneously in some cases, but has been fixed.
 
 =item *
 
-Vivifying a subroutine stub in a deleted stash (e.g., C<delete $My::{"Foo::"};
-\&My::Foo::foo>) no longer crashes.  It had begun crashing in Perl 5.18.
-[perl #128532]
+C<@DB::args> is now exempt from "used once" warnings.  The warnings only
+occurred under B<-w>, because F<warnings.pm> itself uses C<@DB::args>
+multiple times.
 
 =item *
 
-Some obscure cases of subroutines and file handles being freed at the same time
-could result in crashes, but have been fixed.  The crash was introduced in Perl
-5.22. [perl #128597]
+The use of built-in arrays or hash slices in a double-quoted string no
+longer issues a warning ("Possible unintended interpolation...") if the
+variable has not been mentioned before.  This affected code like
+C<qq|@DB::args|> and C<qq|@SIG{'CHLD', 'HUP'}|>.  (The special variables
+C<@-> and C<@+> were already exempt from the warning.)
 
-=back
+=item *
 
-=head1 Errata From Previous Releases
+C<gethostent> and similar functions now perform a null check internally, to
+avoid crashing with torsocks.  This was a regression from 5.22.  [perl
+#128740]
 
-=over 4
+=item *
+
+C<defined *{'!'}>, C<defined *{'['}>, and C<defined *{'-'}> no longer leak
+memory if the typeglob in question has never been accessed before.
+
+=item *
+
+In 5.25.4 fchown() was changed not to accept negative one as an argument
+because in some platforms that is an error.  However, in some other platforms
+that is an acceptable argument.  This change has been reverted [perl #128967].
+
+=item *
+
+Mentioning the same constant twice in a row (which is a syntax error) no
+longer fails an assertion under debugging builds.  This was a regression
+from 5.20.  [perl #126482]
+
+=item *
+
+Many issues relating to C<printf "%a"> of hexadecimal floating point
+were fixed.  In addition, the "subnormals" (formerly known as "denormals")
+floating point anumbers are now supported both with the plain IEEE 754
+floating point numbers (64-bit or 128-bit) and the x86 80-bit
+"extended precision".  Note that subnormal hexadecimal floating
+point literals will give a warning about "exponent underflow".
+[perl #128843, #128889, #128890, #128893, #128909, #128919]
 
 =item *
 
-Parsing bad POSIX charclasses no longer leaks memory.  This was fixed in Perl
-5.25.2 [perl #128313]
+A regression in 5.24 with C<tr/\N{U+...}/foo/> when the code point was between
+128 and 255 has been fixed. [perl #128734].
 
 =item *
 
-Fixed issues with recursive regexes.  The behavior was fixed in Perl 5.24.0.
-[perl #126182]
+A regression from the previous development release, 5.23.3, where
+compiling a regular expression could crash the interpreter has been
+fixed. [perl #128686].
+
+=item *
+
+Use of a string delimiter whose code point is above 2**31 now works
+correctly on platforms that allow this.  Previously, certain characters,
+due to truncation, would be confused with other delimiter characters
+with special meaning (such as C<?> in C<m?...?>), resulting
+in inconsistent behaviour.  Note that this is non-portable,
+and is based on Perl's extension to UTF-8, and is probably not
+displayable nor enterable by any editor. [perl #128738]
+
+=item *
+
+C<@{x> followed by a newline where C<x> represents a control or non-ASCII
+character no longer produces a garbled syntax error message or a crash.
+[perl #128951]
 
 =back
 
 =head1 Acknowledgements
 
-XXX Generate this with:
+Perl 5.25.4 represents approximately 4 weeks of development since Perl 5.25.3
+and contains approximately 18,000 lines of changes across 820 files from 23
+authors.
+
+Excluding auto-generated files, documentation and release tools, there were
+approximately 9,200 lines of changes to 660 .pm, .t, .c and .h files.
+
+Perl continues to flourish into its third decade thanks to a vibrant community
+of users and developers. The following people are known to have contributed the
+improvements that became Perl 5.25.4:
+
+Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari MannsÃ¥ker, Dan
+Collins, Daniel Dragan, David Mitchell, Father Chrysostomos, H.Merijn Brand,
+James E Keenan, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Lukas Mai,
+Neil Bowers, Nicolas R., Pino Toscano, Rafael Garcia-Suarez, Richard Levitte,
+Shlomi Fish, Smylers, Steve Hay, Tony Cook, Yves Orton.
+
+The list above is almost certainly incomplete as it is automatically generated
+from version control history. In particular, it does not include the names of
+the (very much appreciated) contributors who reported issues to the Perl bug
+tracker.
+
+Many of the changes included in this version originated in the CPAN modules
+included in Perl's core. We're grateful to the entire CPAN community for
+helping Perl to flourish.
 
-  perl Porting/acknowledgements.pl v5.25.2..HEAD
+For a more complete list of all of Perl's historical contributors, please see
+the F<AUTHORS> file in the Perl source distribution.
 
 =head1 Reporting Bugs
 
-If you find what you think is a bug, you might check the perl bug database at
-L<https://rt.perl.org/> .  There may also be information at
+If you find what you think is a bug, you might check the perl bug database
+at L<https://rt.perl.org/> .  There may also be information at
 L<http://www.perl.org/> , the Perl Home Page.
 
 If you believe you have an unreported bug, please run the L<perlbug> program
@@ -314,8 +412,8 @@ will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
 
 If the bug you are reporting has security implications which make it
 inappropriate to send to a publicly archived mailing list, then see
-L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION> for details of how to
-report the issue.
+L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
+for details of how to report the issue.
 
 =head1 SEE ALSO