Commit a46f18f779 for perl
commit a46f18f7793eea6b51d95c86c6d403ab57e11e9b
Author: Eric Herman <eric@freesa.org>
Date: Thu Nov 19 12:56:04 2026 +0000
Archive perldelta 5.45.5
diff --git a/MANIFEST b/MANIFEST
index cc3d9e65f4..48d6ed39f9 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -5877,6 +5877,7 @@ pod/perl5451delta.pod Perl changes in version 5.45.1
pod/perl5452delta.pod Perl changes in version 5.45.2
pod/perl5453delta.pod Perl changes in version 5.45.3
pod/perl5454delta.pod Perl changes in version 5.45.4
+pod/perl5455delta.pod Perl changes in version 5.45.5
pod/perl561delta.pod Perl changes in version 5.6.1
pod/perl56delta.pod Perl changes in version 5.6
pod/perl581delta.pod Perl changes in version 5.8.1
diff --git a/Makefile.SH b/Makefile.SH
index 3ad6f350b3..d88dbdb8a5 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -634,7 +634,7 @@ esac
$spitshell >>$Makefile <<'!NO!SUBS!'
-perltoc_pod_prereqs = extra.pods pod/perl5455delta.pod pod/perlapi.pod pod/perlintern.pod pod/perlmodlib.pod pod/perluniprops.pod
+perltoc_pod_prereqs = extra.pods pod/perl5456delta.pod pod/perlapi.pod pod/perlintern.pod pod/perlmodlib.pod pod/perluniprops.pod
generated_pods = pod/perltoc.pod $(perltoc_pod_prereqs)
generated_headers = uudmap.h bitcount.h mg_data.h
@@ -1143,9 +1143,9 @@ pod/perlintern.pod: $(MINIPERL_EXE) autodoc.pl embed.fnc
pod/perlmodlib.pod: $(MINIPERL_EXE) pod/perlmodlib.PL MANIFEST
$(MINIPERL) pod/perlmodlib.PL -q
-pod/perl5455delta.pod: pod/perldelta.pod
- $(RMS) pod/perl5455delta.pod
- $(LNS) perldelta.pod pod/perl5455delta.pod
+pod/perl5456delta.pod: pod/perldelta.pod
+ $(RMS) pod/perl5456delta.pod
+ $(LNS) perldelta.pod pod/perl5456delta.pod
extra.pods: $(MINIPERL_EXE)
-@test ! -f extra.pods || rm -f `cat extra.pods`
diff --git a/pod/.gitignore b/pod/.gitignore
index 98dacff058..6f988eea93 100644
--- a/pod/.gitignore
+++ b/pod/.gitignore
@@ -47,7 +47,7 @@
/roffitall
# generated
-/perl5455delta.pod
+/perl5456delta.pod
/perlapi.pod
/perlintern.pod
/perlmodlib.pod
diff --git a/pod/perl.pod b/pod/perl.pod
index 947cbbc18a..c60603be3e 100644
--- a/pod/perl.pod
+++ b/pod/perl.pod
@@ -182,6 +182,7 @@ aux h2ph h2xs perlbug pl2pm pod2html pod2man splain xsubpp
perlhist Perl history records
perldelta Perl changes since previous version
+ perl5455delta Perl changes in version 5.45.5
perl5454delta Perl changes in version 5.45.4
perl5453delta Perl changes in version 5.45.3
perl5452delta Perl changes in version 5.45.2
diff --git a/pod/perl5455delta.pod b/pod/perl5455delta.pod
new file mode 100644
index 0000000000..77db216fac
--- /dev/null
+++ b/pod/perl5455delta.pod
@@ -0,0 +1,436 @@
+=encoding utf8
+
+=head1 NAME
+
+perl5455delta - what is new for perl v5.45.5
+
+=head1 DESCRIPTION
+
+This document describes differences between the 5.45.4 release and the 5.45.5
+release.
+
+If you are upgrading from an earlier release such as 5.45.3, first read
+L<perl5454delta>, which describes differences between 5.45.3 and 5.45.4.
+
+=head1 Performance Enhancements
+
+=over 4
+
+=item *
+
+Case-insensitive literal alternatives such as C<foo|bar|a_word|_qux> can
+compile into a single trie again. Characters that do not participate in
+Unicode case folding can join neighboring folded literals after the
+optimizer records their fixed substrings.
+[L<GH #19953|https://github.com/Perl/perl5/issues/19953>]
+
+=item *
+
+Non-folded trie matching against native byte strings now consumes a
+character's encoded octets in one iteration. This reduces reader bookkeeping
+when the character requires two UTF-8 or UTF-EBCDIC octets.
+
+=item *
+
+The Aho-Corasick regex scanner uses Boyer-Moore-Horspool shift tables to skip
+positions where no literal alternative can start. It can also skip repeated
+blocks of octets that cannot start an alternative. These filters apply to
+eligible case-sensitive literals, with separate shift tables for Latin-1 and
+UTF-8 targets.
+
+Eligible case-insensitive literal alternatives use a start-octet map that
+includes their possible folds. They do not use the shift tables, because
+folding can change encoded lengths. Locale-dependent folding uses the
+existing scanner.
+
+The scanner also reduces the cost of tracking match positions, especially
+for case-sensitive matching against non-UTF-8 targets, and avoids repeated
+alignment checks while finding a rejected block of octets.
+
+=item *
+
+The C<isa> operator now does a cached lookup of the C<isa> method,
+improving performance when that isa() method happens to be
+C<UNIVERSAL::isa>. [L<GH #24997|https://github.com/Perl/perl5/issues/24997>]
+
+=back
+
+=head1 Modules and Pragmata
+
+=head2 Updated Modules and Pragmata
+
+=over 4
+
+=item *
+
+L<B::Concise> has been upgraded from version 1.012 to 1.013.
+
+=item *
+
+L<DB_File> has been upgraded from version 1.860 to 1.861.
+
+=item *
+
+L<Devel::PPPort> has been upgraded from version 3.75 to 3.76.
+
+=item *
+
+L<Encode> has been upgraded from version 3.24 to 3.25.
+
+=item *
+
+L<encoding> has been upgraded from version 3.00 to 3.01.
+
+=item *
+
+C<libnet> has been upgraded from version 3.15 to 3.16.
+
+=item *
+
+L<Module::CoreList> has been upgraded from version 5.20261022 to 5.20261119.
+
+=item *
+
+L<Test::Simple> has been upgraded from version 1.302225 to 1.302226.
+
+=item *
+
+L<Win32> has been upgraded from version 0.64 to 0.65.
+
+=item *
+
+L<XS::APItest> has been upgraded from version 1.52 to 1.53.
+
+=back
+
+=head1 Configuration and Compilation
+
+=over 4
+
+=item *
+
+GCC and Clang configuration probes now work with C<-Werror> when detecting
+library functions, the size of C<long double>, supported compiler options,
+time headers, memory-mapping and shared-memory return types, and the
+in-memory representation of floating-point zero.
+
+=item *
+
+Fix some build noise and technical undefined behaviour with
+C<-Duselongdouble> builds on ARM64:
+
+=over
+
+=item *
+
+C<Configure> would detect C<double> format strings rather than the
+correct C<long double> format string as the format string for NV when NV
+was C<long double>, resulting in C<-Wformat> warnings.
+
+=item *
+
+F<perl.h> would disable C<USE_LONG_DOUBLE> when C<double> and C<long
+double> were the same size leaving NV as C<long double>. This would
+result in calls to a C library function that expected a C<double>
+pointer being supplied a <long double> pointer, resulting in type
+mismatch warnings.
+
+=back
+
+=back
+
+=head1 Testing
+
+=over 4
+
+=item * t/TEST and t/harness now run generated tests
+
+F<t/TEST> and F<t/harness> are the programs which are the engines underneath
+C<make test> and C<make test_harness>. Up till now the list of test files that
+they run was composed by examination of F<MANIFEST>. However in 2020 the test
+files for the Devel-PPPort library (shipped with core in the
+F<dist/Devel-PPPort> directory) were overhauled such that they were composed
+during that library's own build process from data files found underneath that
+directory. As such they were no longer listed as test files in F<MANIFEST> --
+but F<t/TEST> and F<t/harness> were not updated to account for the possibility
+of generated tests in addition to "MANIFEST-listed" tests. This was not
+noticed until [L<GH #24855|https://github.com/Perl/perl5/issues/24855>].
+
+This has been corrected. Testers will now see F<dist/Devel-PPPort/t/*.t> test
+files being run as part of C<make test> and C<make test_harness>. In
+addition, F<t/porting/test_testlist.t> now verifies that generated tests are
+being run and more thoroughly exercises the various ways in which running the
+test suite can be triggered.
+
+=back
+
+=head1 Platform Support
+
+=head2 Platform-Specific Notes
+
+=over 4
+
+=item * macOS (Darwin)
+
+Given GCC 3.3 20030304 (Apple Computer, Inc. build 1435) from the June 2003 GCC
+update or newer, it should be possible to build current Perl on Mac OS X 10.2
+Jaguar (Darwin 6) once again.
+
+=back
+
+=head1 Internal Changes
+
+=over 4
+
+=item * CODE magic for Magic v2
+
+A new sub-type of magic has been added, designed to be applied to subroutines
+(i.e. SVs having the type C<SVt_PVCV>). This magic sub-type has various
+trigger functions relating to compile-time or runtime management of the
+subroutine to which it is attached.
+
+For more details, see L<perlapi/"struct CodeMagicFunctions">.
+
+=item * save_scalar_flags
+
+Added a new function analogous to C<save_aelem_flags> and C<save_helem_flags>, to have more control over saving scalars.
+
+=back
+
+=head1 Selected Bug Fixes
+
+=over 4
+
+=item *
+
+Resolving a deferred array or hash element no longer frees the element when
+the deferred alias holds the container's last reference. Assigning through a
+deferred array element that can no longer extend its array no longer leaks the
+array. [L<GH #25038|https://github.com/Perl/perl5/issues/25038>]
+
+=item *
+
+Various operations in the parser have now been made deterministic where
+they used to be at the mercy of the C compiler. Parser errors and warnings
+should now be emitted in consistent order in all build contexts. Line
+attribution for the implicit statements in a C<use> no longer depends on
+C compiler argument evaluation order.
+
+=item *
+
+A case-insensitive regex trie no longer accepts a word ending partway through
+an input character's fold. For example, C</s|zoo/iu> no longer matches a
+sharp-s, whose full fold is C<ss>. Later alternatives are tried in order.
+
+=item *
+
+A folded regex trie now updates its minimum and maximum lengths independently.
+An alternative which changes both bounds could previously cause a valid
+match to be missed or an assertion failure during Aho-Corasick scanning.
+
+=item *
+
+Case-insensitive trie prefix extraction no longer splits a multi-character
+fold between regex nodes. For example, a UTF-8 flagged C<ssx|sy> pattern
+under C</iu> now matches C<"\x{df}x">.
+
+=item *
+
+A case-insensitive regular expression with a folded literal start class
+could loop indefinitely when searching at the end of a UTF-8 string.
+This could occur on a subsequent C</g> match after a successful match.
+
+[L<GH #24934|https://github.com/Perl/perl5/issues/24934>]
+
+=item *
+
+L<perlfunc/caller> is better able to identify the correct call site when
+multiple branches of an C<if>/C<elsif>/C<else> chain call the same function.
+
+=item *
+
+L<B::Xref> is able to use line numbers stored within nulled COPs.
+[L<GH #7947|https://github.com/Perl/perl5/issues/7947>]
+
+=item *
+
+Perl 5.44.0 introduced some internal changes that broke uses of C<substr> when
+the string argument it is operating on was itself a special lvalue scalar
+created by another C<substr> call. This would cause debugging assertions or
+invalid C<free()> crashes from code that had a structure such as the following
+examples:
+
+ my $ref = \substr($str, $offset);
+ substr($$ref, 0, 1, "replacement");
+
+Z<>
+
+ substr(substr($str, $offset), 0, 1, "replacement");
+
+This bug has now been fixed.
+[L<GH #24933|https://github.com/Perl/perl5/issues/24933>]
+
+=item * Properly initialize ${^UTF8CACHE} in new threads
+
+Previously the UTF-8 cache wasn't enabled in new threads, leading to
+performance issues.
+
+=item *
+
+The C<isa> operator now calls get magic on its left argument before
+checking if that value is a reference and what it is a reference to.
+[L<GH #24997|https://github.com/Perl/perl5/issues/24997>]
+
+=item *
+
+C<PL_sv_zero>, introduced in 5.28, has a zero numeric value and a "0"
+string value. Its flags did not indicate which value should be treated
+as authoritative when serializing or encoding to an external format.
+This could lead to what was originally a numerical return value being
+output as the string representation instead, which might not have the
+same meaning (e.g. in JSON).
+
+The flags on C<PL_sv_zero> have been modified so that it appears to have
+been created as a number and then later gained a string representation.
+This change is intended to make it easier for serialization modules to
+output C<0> rather than C<"0">, provided that such modules actually do
+differentiate between "created as number" and "created as string".
+
+=item * Various bugfixes to C<foreach> loops
+
+Perl 5.44.0 expanded the ability of C<foreach> loops to make use of
+reference aliasing when using multiple loop iterator variables. Several small
+bugs were found when these are combined, and have been fixed in this release.
+
+=over 4
+
+=item * C<foreach> loop with refaliasing crashes when run a second time
+
+[L<GH #25051|https://github.com/Perl/perl5/issues/25051>]
+
+=item * Multivariable C<foreach> with more than 32 variables confuses which
+ones are refaliases
+
+[L<GH #25055|https://github.com/Perl/perl5/issues/25055>]
+
+=item * C<foreach> with refaliasing fails to run magic
+
+[L<GH #25056|https://github.com/Perl/perl5/issues/25056>]
+
+=back
+
+Perl 5.44.0 also added internal optimisations on multivariable C<foreach>
+loops that call the C<builtin::indexed> function and assign the resulting list
+of index / value pairs into two iterator variables. Two bugs were found when
+these are combined, and have been fixed in this release:
+
+=over 4
+
+=item * C<foreach> with C<indexed> and C<reverse> assigns
+indexes backwards
+
+[L<GH #25052|https://github.com/Perl/perl5/issues/25052>]
+
+=item * C<foreach> with C<indexed> performs aliasing rather than copying
+values
+
+[L<GH #25053|https://github.com/Perl/perl5/issues/25053>]
+
+=back
+
+Finally, a bug was found when both refaliasing and C<builtin::indexed> are
+combined in a multivariable C<foreach> loop, and has now been fixed:
+
+=over 4
+
+=item * C<foreach> with refaliasing and C<indexed> crashes
+
+ foreach my ( $idx, \@arr ) ( indexed @list_of_arefs ) {
+ say "Array number [$idx] contains <@arr>";
+ }
+
+[L<GH #24999|https://github.com/Perl/perl5/issues/24999>]
+
+=back
+
+=back
+
+=head1 Acknowledgements
+
+Perl 5.45.5 represents approximately 4 weeks of development since Perl
+5.45.4 and contains approximately 14,000 lines of changes across 400 files
+from 17 authors.
+
+Excluding auto-generated files, documentation and release tools, there were
+approximately 9,200 lines of changes to 320 .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.45.5:
+
+Chad Granum, Chris 'BinGOs' Williams, Dan Kogai, David Mitchell, Eric
+Herman, Firas Khalil Khana, James E Keenan, Jan Dubois, Karl Williamson,
+Leon Timmermans, Nikolay Shaplov, Paul Evans, Paul Marquess, Philippe
+Bruhat (BooK), Richard Leach, Sevan Janiyan, 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.
+
+The Perl Core Development Fund, managed by the Perl and Raku Foundation,
+financially supports the work of several core developers.
+L<https://perlfoundation.org/perl-core-development-fund.html>
+
+During the development cycle leading up to Perl 5.46, the following
+organizations each contributed the equivalent of one or more months of
+full-time core developer work to the Perl Core Development Fund:
+
+L<DuckDuckGo|https://duckduckgo.com/>.
+
+We would like to thank them here for their support to the continued
+development of Perl.
+
+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 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://github.com/Perl/perl5/issues>. There may also be information at
+L<https://www.perl.org/>, the Perl Home Page.
+
+If you believe you have an unreported bug, please open an issue at
+L<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
+L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
+for details of how to report the issue.
+
+=head1 Give Thanks
+
+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 C<perlthanks> program:
+
+ perlthanks
+
+This will send an email to the Perl 5 Porters list with your show of thanks.
+
+=head1 SEE ALSO
+
+The F<Changes> file for an explanation of how to view exhaustive details on
+what changed.
+
+The F<INSTALL> file for how to build Perl.
+
+The F<README> file for general stuff.
+
+The F<Artistic> and F<Copying> files for copyright information.
+
+=cut
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 0e270d4330..fc12137dd8 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -2,401 +2,411 @@
=head1 NAME
-perldelta - what is new for perl v5.45.5
+[ 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.45.6
=head1 DESCRIPTION
-This document describes differences between the 5.45.4 release and the 5.45.5
+This document describes differences between the 5.45.5 release and the 5.45.6
release.
-If you are upgrading from an earlier release such as 5.45.3, first read
-L<perl5454delta>, which describes differences between 5.45.3 and 5.45.4.
+If you are upgrading from an earlier release such as 5.45.4, first read
+L<perl5455delta>, which describes differences between 5.45.4 and 5.45.5.
-=head1 Performance Enhancements
+=head1 Notice
-=over 4
+XXX Any important notices here
-=item *
+=head1 Core Enhancements
-Case-insensitive literal alternatives such as C<foo|bar|a_word|_qux> can
-compile into a single trie again. Characters that do not participate in
-Unicode case folding can join neighboring folded literals after the
-optimizer records their fixed substrings.
-[L<GH #19953|https://github.com/Perl/perl5/issues/19953>]
+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.
-=item *
+[ List each enhancement as a =head2 entry ]
-Non-folded trie matching against native byte strings now consumes a
-character's encoded octets in one iteration. This reduces reader bookkeeping
-when the character requires two UTF-8 or UTF-EBCDIC octets.
+=head1 Security
-=item *
+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.
-The Aho-Corasick regex scanner uses Boyer-Moore-Horspool shift tables to skip
-positions where no literal alternative can start. It can also skip repeated
-blocks of octets that cannot start an alternative. These filters apply to
-eligible case-sensitive literals, with separate shift tables for Latin-1 and
-UTF-8 targets.
+[ List each security issue as a =head2 entry ]
-Eligible case-insensitive literal alternatives use a start-octet map that
-includes their possible folds. They do not use the shift tables, because
-folding can change encoded lengths. Locale-dependent folding uses the
-existing scanner.
+=head1 Incompatible Changes
-The scanner also reduces the cost of tracking match positions, especially
-for case-sensitive matching against non-UTF-8 targets, and avoids repeated
-alignment checks while finding a rejected block of octets.
+XXX For a release on a stable branch, this section aspires to be:
-=item *
+ 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.
-The C<isa> operator now does a cached lookup of the C<isa> method,
-improving performance when that isa() method happens to be
-C<UNIVERSAL::isa>. [L<GH #24997|https://github.com/Perl/perl5/issues/24997>]
+[ List each incompatible change as a =head2 entry ]
-=back
+=head1 Deprecations
-=head1 Modules and Pragmata
+XXX Any deprecated features, syntax, modules etc. should be listed here.
-=head2 Updated Modules and Pragmata
+=head2 Module removals
-=over 4
+XXX Remove this section if not applicable.
-=item *
+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
+prerequisites.
-L<B::Concise> has been upgraded from version 1.012 to 1.013.
+The core versions of these modules will now issue C<deprecated>-category
+warnings to alert you to this fact. To silence these deprecation warnings,
+install the modules in question from CPAN.
-=item *
+Note that these are (with rare exceptions) fine modules that you are encouraged
+to continue to use. Their disinclusion from core primarily hinges on their
+necessity to bootstrapping a fully functional, CPAN-capable Perl installation,
+not usually on concerns over their design.
-L<DB_File> has been upgraded from version 1.860 to 1.861.
+=over
-=item *
+=item XXX
-L<Devel::PPPort> has been upgraded from version 3.75 to 3.76.
+XXX Note that deprecated modules should be listed here even if they are listed
+as an updated module in the L</Modules and Pragmata> section.
-=item *
+=back
-L<Encode> has been upgraded from version 3.24 to 3.25.
+[ List each other deprecation as a =head2 entry ]
-=item *
+=head1 Performance Enhancements
-L<encoding> has been upgraded from version 3.00 to 3.01.
+XXX Changes which enhance performance without changing behaviour go here.
+There may well be none in a stable release.
-=item *
+[ List each enhancement as an =item entry ]
-C<libnet> has been upgraded from version 3.15 to 3.16.
+=over 4
=item *
-L<Module::CoreList> has been upgraded from version 5.20261022 to 5.20261119.
+XXX
-=item *
+=back
+
+=head1 Modules and Pragmata
-L<Test::Simple> has been upgraded from version 1.302225 to 1.302226.
+XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
+go here. If L<Module::CoreList> is updated, generate an initial draft of the
+following sections using F<Porting/corelist-perldelta.pl>. 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.
-=item *
+The list of new and updated modules is modified automatically as part of
+preparing a Perl release, so the only reason to manually add entries here is if
+you're summarising the important changes in the module update. (Also, if the
+manually-added details don't match the automatically-generated ones, the
+release manager will have to investigate the situation carefully.)
-L<Win32> has been upgraded from version 0.64 to 0.65.
+[ Within each section, list entries as an =item entry ]
+
+=head2 New Modules and Pragmata
+
+=over 4
=item *
-L<XS::APItest> has been upgraded from version 1.52 to 1.53.
+XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any content here.
=back
-=head1 Configuration and Compilation
+=head2 Updated Modules and Pragmata
=over 4
=item *
-GCC and Clang configuration probes now work with C<-Werror> when detecting
-library functions, the size of C<long double>, supported compiler options,
-time headers, memory-mapping and shared-memory return types, and the
-in-memory representation of floating-point zero.
-
-=item *
+L<XXX> has been upgraded from version A.xx to B.yy.
-Fix some build noise and technical undefined behaviour with
-C<-Duselongdouble> builds on ARM64:
+XXX If there was something important to note about this change, include that here.
-=over
+=back
-=item *
+=head2 Removed Modules and Pragmata
-C<Configure> would detect C<double> format strings rather than the
-correct C<long double> format string as the format string for NV when NV
-was C<long double>, resulting in C<-Wformat> warnings.
+=over 4
=item *
-F<perl.h> would disable C<USE_LONG_DOUBLE> when C<double> and C<long
-double> were the same size leaving NV as C<long double>. This would
-result in calls to a C library function that expected a C<double>
-pointer being supplied a <long double> pointer, resulting in type
-mismatch warnings.
+XXX Remove this section if F<Porting/corelist-perldelta.pl> did not add any content here.
=back
-=back
+=head1 Documentation
-=head1 Testing
+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>.
-=over 4
+=head2 New Documentation
-=item * t/TEST and t/harness now run generated tests
-
-F<t/TEST> and F<t/harness> are the programs which are the engines underneath
-C<make test> and C<make test_harness>. Up till now the list of test files that
-they run was composed by examination of F<MANIFEST>. However in 2020 the test
-files for the Devel-PPPort library (shipped with core in the
-F<dist/Devel-PPPort> directory) were overhauled such that they were composed
-during that library's own build process from data files found underneath that
-directory. As such they were no longer listed as test files in F<MANIFEST> --
-but F<t/TEST> and F<t/harness> were not updated to account for the possibility
-of generated tests in addition to "MANIFEST-listed" tests. This was not
-noticed until [L<GH #24855|https://github.com/Perl/perl5/issues/24855>].
-
-This has been corrected. Testers will now see F<dist/Devel-PPPort/t/*.t> test
-files being run as part of C<make test> and C<make test_harness>. In
-addition, F<t/porting/test_testlist.t> now verifies that generated tests are
-being run and more thoroughly exercises the various ways in which running the
-test suite can be triggered.
+XXX Changes which create B<new> files in F<pod/> go here.
-=back
+=head3 L<XXX>
-=head1 Platform Support
+XXX Description of the purpose of the new file here
-=head2 Platform-Specific Notes
+=head2 Changes to Existing Documentation
+
+We have attempted to update the documentation to reflect the changes
+listed in this document. If you find any we have missed, open an issue
+at L<https://github.com/Perl/perl5/issues>.
+
+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.
+
+Additionally, the following selected changes have been made:
+
+=head3 L<XXX>
=over 4
-=item * macOS (Darwin)
+=item *
-Given GCC 3.3 20030304 (Apple Computer, Inc. build 1435) from the June 2003 GCC
-update or newer, it should be possible to build current Perl on Mac OS X 10.2
-Jaguar (Darwin 6) once again.
+XXX Description of the change here
=back
-=head1 Internal Changes
+=head1 Diagnostics
-=over 4
+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>.
+
+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 * CODE magic for Magic v2
+=head2 New Diagnostics
-A new sub-type of magic has been added, designed to be applied to subroutines
-(i.e. SVs having the type C<SVt_PVCV>). This magic sub-type has various
-trigger functions relating to compile-time or runtime management of the
-subroutine to which it is attached.
+XXX Newly added diagnostic messages go under here, separated into L</New Errors>
+and L</New Warnings>
-For more details, see L<perlapi/"struct CodeMagicFunctions">.
+=head3 New Errors
-=item * save_scalar_flags
+=over 4
+
+=item *
-Added a new function analogous to C<save_aelem_flags> and C<save_helem_flags>, to have more control over saving scalars.
+XXX L<message|perldiag/"message">
=back
-=head1 Selected Bug Fixes
+=head3 New Warnings
=over 4
=item *
-Resolving a deferred array or hash element no longer frees the element when
-the deferred alias holds the container's last reference. Assigning through a
-deferred array element that can no longer extend its array no longer leaks the
-array. [L<GH #25038|https://github.com/Perl/perl5/issues/25038>]
+XXX L<message|perldiag/"message">
-=item *
+=back
-Various operations in the parser have now been made deterministic where
-they used to be at the mercy of the C compiler. Parser errors and warnings
-should now be emitted in consistent order in all build contexts. Line
-attribution for the implicit statements in a C<use> no longer depends on
-C compiler argument evaluation order.
+=head2 Changes to Existing Diagnostics
-=item *
+XXX Changes (i.e. rewording) of diagnostic messages go here
-A case-insensitive regex trie no longer accepts a word ending partway through
-an input character's fold. For example, C</s|zoo/iu> no longer matches a
-sharp-s, whose full fold is C<ss>. Later alternatives are tried in order.
+=over 4
=item *
-A folded regex trie now updates its minimum and maximum lengths independently.
-An alternative which changes both bounds could previously cause a valid
-match to be missed or an assertion failure during Aho-Corasick scanning.
+XXX Describe change here
-=item *
+=back
-Case-insensitive trie prefix extraction no longer splits a multi-character
-fold between regex nodes. For example, a UTF-8 flagged C<ssx|sy> pattern
-under C</iu> now matches C<"\x{df}x">.
+=head1 Utility Changes
-=item *
+XXX Changes to installed programs such as F<perldoc> and F<xsubpp> go here.
+Most of these are built within the directory F<utils>.
-A case-insensitive regular expression with a folded literal start class
-could loop indefinitely when searching at the end of a UTF-8 string.
-This could occur on a subsequent C</g> match after a successful match.
+[ List utility changes as a =head2 entry for each utility and =item
+entries for each change
+Use F<XXX> with program names to get proper documentation linking. ]
-[L<GH #24934|https://github.com/Perl/perl5/issues/24934>]
+=head2 F<XXX>
+
+=over 4
=item *
-L<perlfunc/caller> is better able to identify the correct call site when
-multiple branches of an C<if>/C<elsif>/C<else> chain call the same function.
+XXX
-=item *
+=back
-L<B::Xref> is able to use line numbers stored within nulled COPs.
-[L<GH #7947|https://github.com/Perl/perl5/issues/7947>]
+=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.
+
+[ List changes as an =item entry ].
+
+=over 4
=item *
-Perl 5.44.0 introduced some internal changes that broke uses of C<substr> when
-the string argument it is operating on was itself a special lvalue scalar
-created by another C<substr> call. This would cause debugging assertions or
-invalid C<free()> crashes from code that had a structure such as the following
-examples:
+XXX
- my $ref = \substr($str, $offset);
- substr($$ref, 0, 1, "replacement");
+=back
-Z<>
+=head1 Testing
- substr(substr($str, $offset), 0, 1, "replacement");
+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.
-This bug has now been fixed.
-[L<GH #24933|https://github.com/Perl/perl5/issues/24933>]
+XXX If there were no significant test changes, say this:
-=item * Properly initialize ${^UTF8CACHE} in new threads
+Tests were added and changed to reflect the other additions and changes
+in this release.
-Previously the UTF-8 cache wasn't enabled in new threads, leading to
-performance issues.
+XXX If instead there were significant changes, say this:
-=item *
+Tests were added and changed to reflect the other additions and
+changes in this release. Furthermore, these significant changes were
+made:
+
+[ List each test improvement as an =item entry ]
-The C<isa> operator now calls get magic on its left argument before
-checking if that value is a reference and what it is a reference to.
-[L<GH #24997|https://github.com/Perl/perl5/issues/24997>]
+=over 4
=item *
-C<PL_sv_zero>, introduced in 5.28, has a zero numeric value and a "0"
-string value. Its flags did not indicate which value should be treated
-as authoritative when serializing or encoding to an external format.
-This could lead to what was originally a numerical return value being
-output as the string representation instead, which might not have the
-same meaning (e.g. in JSON).
+XXX
+
+=back
+
+=head1 Platform Support
+
+XXX Any changes to platform support should be listed in the sections below.
-The flags on C<PL_sv_zero> have been modified so that it appears to have
-been created as a number and then later gained a string representation.
-This change is intended to make it easier for serialization modules to
-output C<0> rather than C<"0">, provided that such modules actually do
-differentiate between "created as number" and "created as string".
+[ Within the sections, list each platform as an =item entry with specific
+changes as paragraphs below it. ]
-=item * Various bugfixes to C<foreach> loops
+=head2 New Platforms
-Perl 5.44.0 expanded the ability of C<foreach> loops to make use of
-reference aliasing when using multiple loop iterator variables. Several small
-bugs were found when these are combined, and have been fixed in this release.
+XXX List any platforms that this version of perl compiles on, that previous
+versions did not. These will either be enabled by new files in the F<hints/>
+directories, or new subdirectories and F<README> files at the top level of the
+source tree.
=over 4
-=item * C<foreach> loop with refaliasing crashes when run a second time
+=item XXX-some-platform
+
+XXX
-[L<GH #25051|https://github.com/Perl/perl5/issues/25051>]
+=back
-=item * Multivariable C<foreach> with more than 32 variables confuses which
-ones are refaliases
+=head2 Discontinued Platforms
-[L<GH #25055|https://github.com/Perl/perl5/issues/25055>]
+XXX List any platforms that this version of perl no longer compiles on.
-=item * C<foreach> with refaliasing fails to run magic
+=over 4
-[L<GH #25056|https://github.com/Perl/perl5/issues/25056>]
+=item XXX-some-platform
+
+XXX
=back
-Perl 5.44.0 also added internal optimisations on multivariable C<foreach>
-loops that call the C<builtin::indexed> function and assign the resulting list
-of index / value pairs into two iterator variables. Two bugs were found when
-these are combined, and have been fixed in this release:
+=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 * C<foreach> with C<indexed> and C<reverse> assigns
-indexes backwards
+=item XXX-some-platform
-[L<GH #25052|https://github.com/Perl/perl5/issues/25052>]
+XXX
-=item * C<foreach> with C<indexed> performs aliasing rather than copying
-values
+=back
-[L<GH #25053|https://github.com/Perl/perl5/issues/25053>]
+=head1 Internal Changes
-=back
+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.
-Finally, a bug was found when both refaliasing and C<builtin::indexed> are
-combined in a multivariable C<foreach> loop, and has now been fixed:
+[ List each change as an =item entry ]
=over 4
-=item * C<foreach> with refaliasing and C<indexed> crashes
-
- foreach my ( $idx, \@arr ) ( indexed @list_of_arefs ) {
- say "Array number [$idx] contains <@arr>";
- }
+=item *
-[L<GH #24999|https://github.com/Perl/perl5/issues/24999>]
+XXX
=back
+=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>.
+
+XXX Include references to GitHub issues and PRs as: [GH #12345] and the release
+manager will later use a regex to expand these into links.
+
+[ List each fix as an =item entry ]
+
+=over 4
+
+=item *
+
+XXX
+
=back
-=head1 Acknowledgements
+=head1 Known Problems
+
+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.
+
+[ List each fix as an =item entry ]
+
+=over 4
+
+=item *
-Perl 5.45.5 represents approximately 4 weeks of development since Perl
-5.45.4 and contains approximately 14,000 lines of changes across 400 files
-from 17 authors.
+XXX
-Excluding auto-generated files, documentation and release tools, there were
-approximately 9,200 lines of changes to 320 .pm, .t, .c and .h files.
+=back
-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.45.5:
+=head1 Errata From Previous Releases
-Chad Granum, Chris 'BinGOs' Williams, Dan Kogai, David Mitchell, Eric
-Herman, Firas Khalil Khana, James E Keenan, Jan Dubois, Karl Williamson,
-Leon Timmermans, Nikolay Shaplov, Paul Evans, Paul Marquess, Philippe
-Bruhat (BooK), Richard Leach, Sevan Janiyan, Tony Cook, Yves Orton.
+=over 4
-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.
+=item *
-The Perl Core Development Fund, managed by the Perl and Raku Foundation,
-financially supports the work of several core developers.
-L<https://perlfoundation.org/perl-core-development-fund.html>
+XXX Add anything here that we forgot to add, or were mistaken about, in
+the F<perldelta> of a previous release.
-During the development cycle leading up to Perl 5.46, the following
-organizations each contributed the equivalent of one or more months of
-full-time core developer work to the Perl Core Development Fund:
+=back
+
+=head1 Obituary
-L<DuckDuckGo|https://duckduckgo.com/>.
+XXX If any significant core contributor or member of the CPAN community has
+died, add a short obituary here.
-We would like to thank them here for their support to the continued
-development of Perl.
+=head1 Acknowledgements
-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.
+XXX Generate this with:
-For a more complete list of all of Perl's historical contributors, please
-see the F<AUTHORS> file in the Perl source distribution.
+ perl Porting/acknowledgements.pl v5.45.5..HEAD
=head1 Reporting Bugs
diff --git a/vms/descrip_mms.template b/vms/descrip_mms.template
index 61b00cbc4b..41fc74e00c 100644
--- a/vms/descrip_mms.template
+++ b/vms/descrip_mms.template
@@ -293,7 +293,7 @@ utils : $(utils1) $(utils2) $(utils3) $(utils4) $(utils5)
extra.pods : miniperl
@ @extra_pods.com
-PERLDELTA_CURRENT = [.pod]perl5455delta.pod
+PERLDELTA_CURRENT = [.pod]perl5456delta.pod
$(PERLDELTA_CURRENT) : [.pod]perldelta.pod
Copy/NoConfirm/Log $(MMS$SOURCE) $(PERLDELTA_CURRENT)
diff --git a/win32/GNUmakefile b/win32/GNUmakefile
index 1626a6126d..b36b6dad26 100644
--- a/win32/GNUmakefile
+++ b/win32/GNUmakefile
@@ -1648,7 +1648,7 @@ utils: $(HAVEMINIPERL) ..\utils\Makefile
copy ..\README.tw ..\pod\perltw.pod
copy ..\README.vos ..\pod\perlvos.pod
copy ..\README.win32 ..\pod\perlwin32.pod
- copy ..\pod\perldelta.pod ..\pod\perl5455delta.pod
+ copy ..\pod\perldelta.pod ..\pod\perl5456delta.pod
$(MINIPERL) -I..\lib $(PL2BAT) $(UTILS)
$(MINIPERL) -I..\lib ..\autodoc.pl -c "win32\$(CONFIG_H)" ..
$(MINIPERL) -I..\lib ..\pod\perlmodlib.PL -q ..
@@ -1748,7 +1748,7 @@ distclean: realclean
-if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
-if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
-cd $(PODDIR) && del /f *.html *.bat roffitall \
- perl5455delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
+ perl5456delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
perlapi.pod perlbs2000.pod perlcn.pod perlcygwin.pod \
perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \
perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \
diff --git a/win32/Makefile b/win32/Makefile
index 34c58e82d9..aa6ceb4407 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -1175,7 +1175,7 @@ utils: $(PERLEXE) ..\utils\Makefile
copy ..\README.tw ..\pod\perltw.pod
copy ..\README.vos ..\pod\perlvos.pod
copy ..\README.win32 ..\pod\perlwin32.pod
- copy ..\pod\perldelta.pod ..\pod\perl5455delta.pod
+ copy ..\pod\perldelta.pod ..\pod\perl5456delta.pod
cd ..\win32
$(PERLEXE) $(PL2BAT) $(UTILS)
$(MINIPERL) -I..\lib ..\autodoc.pl -c "win32\$(CONFIG_H)" ..
@@ -1276,7 +1276,7 @@ distclean: realclean
-if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API
-if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
-cd $(PODDIR) && del /f *.html *.bat roffitall \
- perl5455delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
+ perl5456delta.pod perlaix.pod perlamiga.pod perlandroid.pod \
perlapi.pod perlbs2000.pod perlcn.pod perlcygwin.pod \
perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \
perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \
diff --git a/win32/pod.mak b/win32/pod.mak
index 1ce2d8e40c..22fd94a030 100644
--- a/win32/pod.mak
+++ b/win32/pod.mak
@@ -94,6 +94,7 @@ POD = perl.pod \
perl5453delta.pod \
perl5454delta.pod \
perl5455delta.pod \
+ perl5456delta.pod \
perl561delta.pod \
perl56delta.pod \
perl581delta.pod \
@@ -288,6 +289,7 @@ MAN = perl.man \
perl5453delta.man \
perl5454delta.man \
perl5455delta.man \
+ perl5456delta.man \
perl561delta.man \
perl56delta.man \
perl581delta.man \
@@ -482,6 +484,7 @@ HTML = perl.html \
perl5453delta.html \
perl5454delta.html \
perl5455delta.html \
+ perl5456delta.html \
perl561delta.html \
perl56delta.html \
perl581delta.html \
@@ -676,6 +679,7 @@ TEX = perl.tex \
perl5453delta.tex \
perl5454delta.tex \
perl5455delta.tex \
+ perl5456delta.tex \
perl561delta.tex \
perl56delta.tex \
perl581delta.tex \