perldelta - what is new for perl v5.41.13
This document describes differences between the 5.41.12 release and the 5.41.13 release.
If you are upgrading from an earlier release such as 5.41.11, first read perl54112delta, which describes differences between 5.41.11 and 5.41.12.
^^=
operatorPerl 5.40.0 introduced the logical medium-precedence exclusive-or operator ^^
. It was not noticed at the time that the assigning variant ^^=
was also missing. This is now added.
B::Deparse has been upgraded from version 1.83 to 1.85.
builtin has been upgraded from version 0.018 to 0.019.
experimental has been upgraded from version 0.034 to 0.035.
ExtUtils::CBuilder has been upgraded from version 0.280240 to 0.280241.
ExtUtils::MakeMaker has been upgraded from version 7.74 to 7.76.
feature has been upgraded from version 1.95 to 1.96.
Module::CoreList has been upgraded from version 5.20250420 to 5.20250528.
re has been upgraded from version 0.47 to 0.48.
SelfLoader has been upgraded from version 1.27 to 1.28.
strict has been upgraded from version 1.13 to 1.14.
Thread has been upgraded from version 3.05 to 3.06.
Tie::File has been upgraded from version 1.09 to 1.10.
Unicode::UCD has been upgraded from version 0.80 to 0.81.
Supply an explicit base address for cygperl*.dll
that cannot conflict with those generated by --enable-auto-image-base
. [GH #22695][GH #22104]
Exceptions thrown and caught entirely within a defer {}
or finally {}
block no longer stop the outer run-loop.
Code such as the following would stop running the contents of the defer
block once the inner exception in the inner try
/catch
block was caught. This has now been fixed, and runs as expected. ([GH #23064]).
defer {
try { die "It breaks\n"; }
catch ($e) { warn $e }
say "This line would never run";
}
"readline" in perlfunc now clears the error flag if an error occurs when reading and that error is EAGAIN
or EWOULDBLOCK
. This allows old code that depended on readline
to clear all errors to ignore these relatively harmless errors. [GH #22883]
open
automatically creates an anonymous temporary file when passed undef
as a filename:
open(my $fh, "+>", undef) or die ...
This is supposed to work only when the undefined value is the one returned by the undef
function.
In perls before 5.41.3, this caused a problem due to the fact that the same undefined value can be generated by lookups of non-existent hash keys or array elements, which can lead to bugs in user-level code (reported as [GH #22385]).
In 5.41.3, additional checks based on the syntax tree of the call site were added, which fixed this issue for some number of common cases, though not all of them, at the cost of breaking the ability of APIs that wrap open
to expose its anonymous file mode. A notable example of such an API is autodie.
This release reverts to the old problem in preference to the new one for the time being.
Perl 5.41.13 represents approximately 5 weeks of development since Perl 5.41.12 and contains approximately 5,200 lines of changes across 180 files from 20 authors.
Excluding auto-generated files, documentation and release tools, there were approximately 1,200 lines of changes to 92 .pm, .t, .c and .h files.
Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.41.13:
Aristotle Pagaltzis, Chris 'BinGOs' Williams, Dagfinn Ilmari Mannsåker, Dan Book, David Mitchell, Graham Knop, H.Merijn Brand, James E Keenan, Karen Etheridge, Karl Williamson, Leon Timmermans, Lukas Mai, Paul Evans, Paul Johnson, Philippe Bruhat (BooK), Richard Leach, Sisyphus, Thibault Duponchelle, Todd Rinaldo, Tony Cook.
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.
For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
If you find what you think is a bug, you might check the perl bug database at https://github.com/Perl/perl5/issues. There may also be information at https://www.perl.org/, the Perl Home Page.
If you believe you have an unreported bug, please open an issue at https://github.com/Perl/perl5/issues. Be sure to trim your bug down to a tiny but sufficient test case.
If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker, then see "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec for details of how to report the issue.
If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the perlthanks
program:
perlthanks
This will send an email to the Perl 5 Porters list with your show of thanks.
The Changes file for an explanation of how to view exhaustive details on what changed.
The INSTALL file for how to build Perl.
The README file for general stuff.
The Artistic and Copying files for copyright information.