PERL5401DELTA(1)
π perl5401delta β what's new for perl v5.40.1 π
okay bestie, gather round, because we're doing a whole delta page for perl v5.40.1 and honestly? it's giving β¨maintenance releaseβ¨ but in the cutest way possible.
πΈ DESCRIPTION πΈ
So this doc is literally just describing the differences between the 5.40.0 release and the 5.40.1 release. that's it. that's the assignment. π
But WAIT β if you're upgrading from something even earlier, like 5.38.0, you gotta read perl5400delta first, because that one covers the differences between 5.38.0 and 5.40.0. do not skip steps bestie, it's not the vibe. π¦
π« Incompatible Changes π«
Good news era: there are no changes intentionally incompatible with 5.40.0. periodt. π
But likeβ¦ if any do exist? they're bugs, fr fr. and we would very much love for you to submit a report about it. see "Reporting Bugs" below for the deets. π
π¦ Modules and Pragmata π¦
β¨ Updated Modules and Pragmata β¨
File::Specgot a glow-up from version3.90to3.91. slay. πModule::CoreListleveled up from version5.20240609to5.20250118_40. iconic.warningsis now at version1.70, up from1.69. she's evolving. π¦
π Documentation π
π Changes to Existing Documentation π
We tried so hard to update the docs so they actually reflect all the changes listed in this document. if you spot anything we missed, please open an issue at https://github.com/Perl/perl5/issues. we're not mad, we're just disappointed. (jk we're grateful, always π«Ά)
π οΈ Configuration and Compilation π οΈ
- Fixed compilation on platforms (like "Gentoo Prefix") that only have a C locale. no cap. [GH #22569
https://github.com/Perl/perl5/issues/22569] β bug was first reported downstream atbugs.gentoo.org/939014https://bugs.gentoo.org/939014. shoutout gentoo. π - Fixed a compilation error on some systems caused by a typo in a
printf()format. yeah. a whole typo. she did that. [GH #22793https://github.com/Perl/perl5/issues/22793] π
π§ͺ Testing π§ͺ
Tests were added AND changed to reflect all the other additions and changes in this release. the test suite is thriving, your fave could never. β
π Selected Bug Fixes π
okay this section is where it gets juicy, buckle up:
- Starting in Perl 5.39.8,
"strftime"inPOSIXwould crash or produce odd errors (things like"Out of memory in perl:util:safesysmalloc") whenever you handed it a format string that wasn't actually a string but instead a number,undef, or an object (even one with overloaded string conversion, yes even that one π).
Now "strftime" stringifies its first argument, exactly like before. order restored. [GH #22498 https://github.com/Perl/perl5/issues/22498] β¨
- Builds using
-mssetogether with quadmath on 32-bit x86 systems would crash with a misaligned access super early in the build. embarrassing tbh. [GH #22577https://github.com/Perl/perl5/issues/22577] π₯ - Using
gototo tail call, or using thecall_sv()and related APIs to call, any oftrim(),refaddr(),reftype(),ceil(),floor()orstringify()in the"builtin::"package would crash or assert, all because of a"TARG"handling bug. rude. [GH #22542https://github.com/Perl/perl5/issues/22542] π - Fixed an issue where
utf8n_to_uvchr()failed to correctly identify certain invalid UTF-8 sequences as invalid. specifically, sequences that start with continuation bytes or unassigned bytes could cause unexpected behaviour or even a panic. this fix makes sure those invalid sequences are now properly detected and handled. this correction also resolves related issues in modules that handle UTF-8 processing, such as Encode. UTF-8 said "not today" and honestly, valid. π - Fixed a double free error or possible memory leak when failing to compile certain regexps. we love a memory safety moment. [GH #21661
https://github.com/Perl/perl5/issues/21661] π«Ά
π Acknowledgements π
Perl 5.40.1 represents approximately 7 months of development since Perl 5.40.0, and contains approximately 5,600 lines of changes across 54 files from 15 authors. that's a whole era of work, bestie. π
Excluding auto-generated files, documentation and release tools, there were approximately 1,800 lines of changes to 19 .pm, .t, .c and .h files. the numbers are numbering. β¨
Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. and the following people are known to have contributed the improvements that became Perl 5.40.1:
Andrei Horodniceanu, Chris 'BinGOs' Williams, E. Choroba, Graham Knop, James E Keenan, Karen Etheridge, Karl Williamson, Lukas Mai, Masahiro Honma, Max Maischein, Philippe Bruhat (BooK), Richard Leach, Steve Hay, Thibault Duponchelle, Tony Cook.
π icons, every single one of them. no notes. π
The list above is almost certainly incomplete, because it's 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. y'all are the real MVPs. π
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. go read it, it's a whole family tree. πΈ
π Reporting Bugs π
If you find what you think is a bug, you might wanna check the perl bug database at https://github.com/Perl/perl5/issues. there may also be info 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. and be sure to trim your bug down to a tiny but sufficient test case. we do not want your entire 4,000-line script, bestie. just the little guy. π
If the bug you're 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. do NOT post it publicly. fr fr. π
π«Ά 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 perlthanks program:
perlthanks
This will send an email to the Perl 5 Porters list with your show of thanks. that's it. that's the whole vibe. go be sweet to them, they earned it. π
π SEE ALSO π
- The
Changesfile β for an explanation of how to view exhaustive details on what changed. π - The
INSTALLfile β for how to build Perl. π οΈ - The
READMEfile β for general stuff. π - The
ArtisticandCopyingfiles β for copyright information. Β©οΈ
and that's the whole page, bestie!! this one was perl v5.42.3 doing the documenting, dated 2026-08-03, and honestly she ate. π
β¨ stay slay, keep your UTF-8 valid, and go run perlthanks if you're feeling grateful. mwah ππ
π¦ where this page comes from
- fedora 43: perl-doc 5.42.3-524.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- fedora 44: perl-doc 5.42.3-525.fc44 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms