This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Finalise perldelta
[perl5.git] / pod / perldelta.pod
index f3c5220..8113a68 100644 (file)
@@ -1,15 +1,7 @@
-=for todo
-b47a847f62 win32/win32sck.c: dont close() a freed socket os handle
-35e037e846 Commit 1735f6f started to escape all...
-9b4bdfd44e fix chop formats with non PV vars
-
 =encoding utf8
 
 =head1 NAME
 
-[ 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.19.6
 
 =head1 DESCRIPTION
@@ -20,18 +12,8 @@ release.
 If you are upgrading from an earlier release such as 5.19.4, first read
 L<perl5195delta>, which describes differences between 5.19.4 and 5.19.5.
 
-=head1 Notice
-
-XXX Any important notices here
-
 =head1 Core Enhancements
 
-XXX New core language features go here.  Summarize user-visible core language
-enhancements.  Particularly prominent performance optimisations could go
-here, but most should go in the L</Performance Enhancements> section.
-
-[ List each enhancement as a =head2 entry ]
-
 =head2 $a and $b warnings exemption
 
 The special variables $a and $b, used in C<sort>, are now exempt from "used
@@ -39,32 +21,10 @@ once" warnings, even where C<sort> is not used.  This makes it easier for
 CPAN modules to provide functions using $a and $b for similar purposes.
 [perl #120462]
 
-=head1 Security
-
-XXX Any security-related notices go here.  In particular, any security
-vulnerabilities closed should be noted here rather than in the
-L</Selected Bug Fixes> section.
-
-[ List each security issue as a =head2 entry ]
-
-=head1 Incompatible Changes
-
-XXX For a release on a stable branch, this section aspires to be:
-
-    There are no changes intentionally incompatible with 5.XXX.XXX
-    If any exist, they are bugs, and we request that you submit a
-    report.  See L</Reporting Bugs> below.
-
-[ List each incompatible change as a =head2 entry ]
-
 =head1 Deprecations
 
-XXX Any deprecated features, syntax, modules etc. should be listed here.
-
 =head2 Module removals
 
-XXX Remove this section if inapplicable.
-
 The following modules will be removed from the core distribution in a
 future release, and will at that time need to be installed from CPAN.
 Distributions on CPAN which require these modules will need to list them as
@@ -85,15 +45,8 @@ not usually on concerns over their design.
 
 =back
 
-[ List each other deprecation as a =head2 entry ]
-
 =head1 Performance Enhancements
 
-XXX Changes which enhance performance without changing behaviour go here.
-There may well be none in a stable release.
-
-[ List each enhancement as a =item entry ]
-
 =over 4
 
 =item *
@@ -113,29 +66,17 @@ short circuit directly to the end of the statement. [perl #120128]
 
 =head1 Modules and Pragmata
 
-XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
-go here.  If Module::CoreList is updated, generate an initial draft of the
-following sections using F<Porting/corelist-perldelta.pl>, which prints stub
-entries to STDOUT.  Results can be pasted in place of the '=head2' entries
-below.  A paragraph summary for important changes should then be added by hand.
-In an ideal world, dual-life modules would have a F<Changes> file that could be
-cribbed.
-
-[ Within each section, list entries as a =item entry ]
-
-=head2 New Modules and Pragmata
+=head2 Updated Modules and Pragmata
 
 =over 4
 
 =item *
 
-XXX
-
-=back
+L<Archive::Tar> has been upgraded from version 1.92 to 1.96.
 
-=head2 Updated Modules and Pragmata
+=item *
 
-=over 4
+L<AutoLoader> has been upgraded from version 5.73 to 5.74.
 
 =item *
 
@@ -170,169 +111,174 @@ is a subroutine named "glob".
 
 =item *
 
-L<IO::Select> has been upgraded from version 1.21 to 1.22.
+L<B::Debug> has been upgraded from version 1.18 to 1.19.
 
-Removing a closed file handle from an IO::Select object now correctly
-updates its internal state and returns the correct value.  [perl #75156]
+=item *
+
+L<bignum> has been upgraded from version 0.36 to 0.37.
 
 =item *
 
-L<Module::CoreList> has been upgraded from version 3.00 to 3.01.
+L<Compress::Raw::Bzip2> has been upgraded from version 2.062 to 2.063.
 
-The list of Perl versions covered has been updated.
+=item *
+
+L<Compress::Raw::Zlib> has been upgraded from version 2.062 to 2.063.
 
 =item *
 
-L<PerlIO::scalar> has been upgraded from version 0.17 to 0.18.
+L<constant> has been upgraded from version 1.28 to 1.29.
 
-A bug fix in 0.17 caused references to be stringified as soon as a handle
-to it was opened, even if it was opened only for reading.  It also croaked
-on read-only references.  This has been fixed.  [perl #119529]
+=item *
+
+L<DB_File> has been upgraded from version 1.829 to 1.831.
 
 =item *
 
-L<Tie::StdHandle> has been upgraded from version 4.3 to 4.4.
+L<ExtUtils::MakeMaker> has been upgraded from version 6.80 to 6.82.
 
-It no longer prints C<$\> twice.  [perl #120202]
+=item *
 
-It no longer ignores the offset passed to C<syswrite>.
+L<HTTP::Tiny> has been upgraded from version 0.036 to 0.038.
 
-=back
+=item *
 
-=head2 Removed Modules and Pragmata
+L<IO> has been upgraded from version 1.29 to 1.30.
 
-=over 4
+=item *
+
+L<IO::Select> has been upgraded from version 1.21 to 1.22.
+
+Removing a closed file handle from an IO::Select object now correctly
+updates its internal state and returns the correct value.  [perl #75156]
 
 =item *
 
-XXX
+L<Locale::Maketext> has been upgraded from version 1.24 to 1.25.
 
-=back
+An issue with escaped backslashes if the literal is compiled as
+function argument has been resolved.
 
-=head1 Documentation
+=item *
 
-XXX Changes to files in F<pod/> go here.  Consider grouping entries by
-file and be sure to link to the appropriate page, e.g. L<perlfunc>.
+L<IPC::Cmd> has been upgraded from version 0.84_01 to 0.90.
 
-=head2 New Documentation
+=item *
 
-XXX Changes which create B<new> files in F<pod/> go here.
+L<Module::Build> has been upgraded from version 0.4007 to 0.4202.
 
-=head3 L<XXX>
+NOTE: L<Module::Build> is deprecated and may be removed from a future version of Perl.
 
-XXX Description of the purpose of the new file here
+=item *
 
-=head2 Changes to Existing Documentation
+L<Module::CoreList> has been upgraded from version 3.00 to 3.01.
+
+The list of Perl versions covered has been updated.
 
-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.
+=item *
 
-=head3 L<XXX>
+L<Package::Constants> has been upgraded from version 0.02 to 0.04.
 
-=over 4
+NOTE: L<Package::Constants> is deprecated and may be removed from a future version of Perl.
 
 =item *
 
-XXX Description of the change here
+L<PerlIO::scalar> has been upgraded from version 0.17 to 0.18.
 
-=back
+A bug fix in 0.17 caused references to be stringified as soon as a handle
+to it was opened, even if it was opened only for reading.  It also croaked
+on read-only references.  This has been fixed.  [perl #119529]
 
-=head1 Diagnostics
+=item *
 
-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>.
+L<Socket> has been upgraded from version 2.012 to 2.013.
 
-XXX New or changed warnings emitted by the core's C<C> code go here.  Also
-include any changes in L<perldiag> that reconcile it to the C<C> code.
+=item *
 
-=head2 New Diagnostics
+L<Term::Cap> has been upgraded from version 1.13 to 1.15.
 
-XXX Newly added diagnostic messages go under here, separated into New Errors
-and New Warnings
+=item *
 
-=head3 New Errors
+L<Test::Harness> has been upgraded from version 3.29 to 3.30.
 
-=over 4
+=item *
+
+L<Test::Simple> has been upgraded from version 0.99 to 1.001002.
 
 =item *
 
-XXX L<message|perldiag/"message">
+L<Tie::StdHandle> has been upgraded from version 4.3 to 4.4.
 
-=back
+It no longer prints C<$\> twice.  [perl #120202]
+
+It no longer ignores the offset passed to C<syswrite>.
 
-=head3 New Warnings
+=item *
 
-=over 4
+L<threads> has been upgraded from version 1.89 to 1.90.
 
 =item *
 
-XXX L<message|perldiag/"message">
+L<threads::shared> has been upgraded from version 1.44 to 1.45.
+
+=item *
+
+L<Unicode::Collate> has been upgraded from version 0.99 to 1.02.
 
 =back
 
-=head2 Changes to Existing Diagnostics
+=head1 Documentation
 
-XXX Changes (i.e. rewording) of diagnostic messages go here
+=head2 Changes to Existing Documentation
 
 =over 4
 
 =item *
 
-L<%%s[%s] in scalar context better written as $%s[%s]|perldiag/"%%s[%s] in scalar context better written as $%s[%s]">:
-
-This warning now occurs for any C<%array[$index]> or C<%hash{key}> known to
-be in scalar context at compile time.  Previously it was worded "Scalar
-value %%s[%s] better written as $%s[%s]".
+L<perlhacktips> has been updated to include some more examples of C<gdb> usage.
 
-=back
+=item *
 
-=head1 Utility Changes
+L<perlfunc>:
 
-XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here.
-Most of these are built within the directories F<utils> and F<x2p>.
+C<each>, clarify hash "modify while iterating".
 
-[ List utility changes as a =head3 entry for each utility and =item
-entries for each change
-Use L<XXX> with program names to get proper documentation linking. ]
+C<pack>, the documentation for verbatim tables has been clarified.
 
-=head3 L<XXX>
+=item *
 
-=over 4
+L<perlre>, the documentation for C</x> and C<(?# comment)> has been expanded and clarified.
 
 =item *
 
-XXX
+L<perllexwarn>, a note has been added to users of C<FATAL> warnings of the risk of upgrades.
 
 =back
 
-=head1 Configuration and Compilation
-
-XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
-go here.  Any other changes to the Perl build process should be listed here.
-However, any platform-specific changes should be listed in the
-L</Platform Support> section, instead.
+=head1 Diagnostics
 
-[ List changes as a =item entry ].
+=head2 Changes to Existing Diagnostics
 
 =over 4
 
 =item *
 
-XXX
+L<%%s[%s] in scalar context better written as $%s[%s]|perldiag/"%%s[%s] in scalar context better written as $%s[%s]">:
 
-=back
+This warning now occurs for any C<%array[$index]> or C<%hash{key}> known to
+be in scalar context at compile time.  Previously it was worded "Scalar
+value %%s[%s] better written as $%s[%s]".
 
-=head1 Testing
+=item *
+
+L<Switch condition not recognized in regex; marked by <-- HERE in mE<sol>%sE<sol>|perldiag/"Switch condition not recognized in regex; marked by <-- HERE in m/%s/">:
 
-XXX Any significant changes to the testing of a freshly built perl should be
-listed here.  Changes which create B<new> files in F<t/> go here as do any
-large changes to the testing harness (e.g. when parallel testing was added).
-Changes to existing files in F<t/> aren't worth summarizing, although the bugs
-that they represent may be covered elsewhere.
+The description for this diagnostic has been extended to cover all cases where the warning may occur.
+Issues with the positioning of the arrow indicator have also been resolved.
 
-[ List each test improvement as a =item entry ]
+=back
+
+=head1 Testing
 
 =over 4
 
@@ -359,25 +305,8 @@ should build now. The basic problems are the non-standard location for tools.
 
 =back
 
-=head2 Discontinued Platforms
-
-XXX List any platforms that this version of perl no longer compiles on.
-
-=over 4
-
-=item XXX-some-platform
-
-XXX
-
-=back
-
 =head2 Platform-Specific Notes
 
-XXX List any changes for specific platforms.  This could include configuration
-and compilation changes or changes in portability/compatibility.  However,
-changes within modules for platforms should generally be listed in the
-L</Modules and Pragmata> section.
-
 =over 4
 
 =item Windows
@@ -386,6 +315,10 @@ Support for building with Visual C++ 2013 has been added.  There are currently
 two possible test failures (see L<perlwin32/"Testing Perl on Windows">) which
 will hopefully be resolved soon.
 
+Experimental support for building with Intel C++ Compiler has been added. Only
+the nmake makefile (win32/Makefile) can be used. A "nmake test" will not pass
+at this time due to "cpan/CGI/t/url.t".
+
 =item WinCE
 
 Perl can now be built in one shot with no user intervention on WinCE by running
@@ -398,12 +331,6 @@ can also be built using Smart Devices for Visual C++ 2005 or 2008.
 
 =head1 Internal Changes
 
-XXX Changes which affect the interface available to C<XS> code go here.  Other
-significant internal changes for future core maintainers should be noted as
-well.
-
-[ List each change as a =item entry ]
-
 =over 4
 
 =item *
@@ -416,11 +343,6 @@ C89 compilers.  [perl #120314]
 
 =head1 Selected Bug Fixes
 
-XXX Important bug fixes in the core language are summarized here.  Bug fixes in
-files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
-
-[ List each fix as a =item entry ]
-
 =over 4
 
 =item *
@@ -589,15 +511,30 @@ the new subroutine has been installed.
 C<s///>, C<tr///> and C<y///> now work when a wide character is used as the
 delimiter.  [perl #120463]
 
-=back
+=item *
 
-=head1 Known Problems
+On Windows, perl no longer calls CloseHandle() on a socket handle.  This makes
+debugging easier on Windows by removing certain irrelevant bad handle
+exceptions.  It also fixes a race condition that made socket functions randomly
+fail in a Perl process with multiple OS threads, and possible test failures in
+F<dist/IO/t/cachepropagate-tcp.t>.  [perl #120091/118059]
 
-XXX Descriptions of platform agnostic bugs we know we can't fix go here.  Any
-tests that had to be C<TODO>ed for the release would be noted here.  Unfixed
-platform specific bugs also go here.
+=item *
+
+Some cases of unterminated (?...) sequences in regular expressions (e.g.,
+C</(?</>) have been fixed to produce the proper error message instead of
+"panic: memory wrap".  Other cases (e.g., C</(?(/>) have yet to be fixed.
+
+=item *
 
-[ List each fix as a =item entry ]
+Strange vars like ties, overloads, or stringified refs (and in recent
+perls, pure NOK vars) would generally do the wrong thing in formats
+when the var is treated as a string and repeatedly chopped, as in
+^<<<~~ and similar. This has now been resolved.
+
+=back
+
+=head1 Known Problems
 
 =over 4
 
@@ -610,16 +547,33 @@ I<bareword>()> is inconsistent.)  This will likely be changed back.
 
 =back
 
-=head1 Obituary
+=head1 Acknowledgements
 
-XXX If any significant core contributor has died, we've added a short obituary
-here.
+Perl 5.19.6 represents approximately 4 weeks of development since Perl 5.19.5
+and contains approximately 88,000 lines of changes across 630 files from 24
+authors.
 
-=head1 Acknowledgements
+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.19.6:
+
+Anno Siegel, Chris 'BinGOs' Williams, Craig A. Berry, Daniel Dragan, David
+Mitchell, Father Chrysostomos, François Perrad, H.Merijn Brand, James E
+Keenan, Jerry D. Hedden, Karen Etheridge, Karl Williamson, Kevin Falcone, Lukas
+Mai, Marc Simpson, Matthew Horsfall, Peter Martini, Petr Písař, Reini Urban,
+Steve Hay, Tom Hukins, Tony Cook, Victor Efimov, 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.
 
-XXX Generate this with:
+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.19.5..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