PERL5241DELTA(1)
π perl5241delta β what's new for perl v5.24.1 π
okay bestie, welcome to perl5241delta(1) β this is the page where we spill all the tea about what changed between one perl release and the next. no cap, it's shorter than you'd think, but every crumb matters π
πΈ DESCRIPTION πΈ
This document describes differences between the 5.24.0 release and the 5.24.1 release.
Real talk though β if you're upgrading from something older, like 5.22.0, you gotta go read perl5240delta first, because that one walks you through the differences between 5.22.0 and 5.24.0. Don't skip it, bestie, it's giving prerequisite energy πβ¨
π₯ Security π₯
π -Di switch is now required for PerlIO debugging output π
okay so previously PerlIO debugging output would just get yeeted into whatever file the PERLIO_DEBUG environment variable named β that is, if perl wasn't running setuid and the -T or -t switches hadn't been parsed yet. π«
and the way that mattered: if perl did output at a point where it hadn't yet parsed its switches, that could result in perl creating or overwriting the file named by PERLIO_DEBUG β even when the -T switch had been supplied. like, the whole point of -T is taint mode and it just... didn't save you here π
Perl now requires the -Di switch to produce PerlIO debugging output. By default this is written to stderr, but can optionally be redirected to a file by setting the PERLIO_DEBUG environment variable.
and if perl is running setuid or the -T switch was supplied? then PERLIO_DEBUG is ignored and the debugging output is sent to stderr as for any other -D switch. security said nope, we're not doing that anymore πβ
π Core modules and tools no longer search "." for optional modules π
The tools and many modules supplied in core no longer search the default current directory entry in @INC for optional modules. For example, Storable will remove the final . from @INC before trying to load Log::Agent.
why tho? because this prevents an attacker injecting an optional module into a process run by another user where the current directory is writable by the attacker β e.g. the /tmp directory. classic villain behavior, honestly π
In most cases this removal should not cause problems, but difficulties were encountered with base, which treats every module name supplied as optional. These difficulties have not yet been resolved, so for this release there are no changes to base. We hope to have a fix for base in Perl 5.24.2. fingers crossed fr fr π€
now β to protect your own code from this attack, either remove the default . entry from @INC at the start of your script, so:
#!/usr/bin/perl
use strict;
...
becomes:
#!/usr/bin/perl
BEGIN { pop @INC if $INC[-1] eq '.' }
use strict;
...
or, for modules, remove . from a localized @INC, so:
my $can_foo = eval { require Foo; }
becomes:
my $can_foo = eval {
local @INC = @INC;
pop @INC if $INC[-1] eq '.';
require Foo;
};
look at that glow-up β¨ so clean, so safe π
π₯ Incompatible Changes π₯
Other than the security changes above there are no changes intentionally incompatible with Perl 5.24.0. If any exist, they are bugs, and we request that you submit a report. See "Reporting Bugs" below. π
π¦ Modules and Pragmata π¦
π¦ Updated Modules and Pragmata π¦
bestie, get ready, this is the upgrade list and it's long but we're doing it, no skipping π€ every single one:
Archive::Tarβ upgraded from version2.04to2.04_01.bignumβ upgraded from version0.42to0.42_01.CPANβ upgraded from version2.11to2.11_01.Digestβ upgraded from version1.17to1.17_01.Digest::SHAβ upgraded from version5.95to5.95_01.Encodeβ upgraded from version2.80to2.80_01.ExtUtils::MakeMakerβ upgraded from version7.10_01to7.10_02.File::Fetchβ upgraded from version0.48to0.48_01.File::Specβ upgraded from version3.63to3.63_01.HTTP::Tinyβ upgraded from version0.056to0.056_001.IOβ upgraded from version1.36to1.36_01.- The
IO-Compressmodules β upgraded from version2.069to2.069_001. IPC::Cmdβ upgraded from version0.92to0.92_01.JSON::PPβ upgraded from version2.27300to2.27300_01.Locale::Maketextβ upgraded from version1.26to1.26_01.Locale::Maketext::Simpleβ upgraded from version0.21to0.21_01.Memoizeβ upgraded from version1.03to1.03_01.Module::CoreListβ upgraded from version5.20160506to5.20170114_24.Net::Pingβ upgraded from version2.43to2.43_01.Parse::CPAN::Metaβ upgraded from version1.4417to1.4417_001.Pod::Htmlβ upgraded from version1.22to1.2201.Pod::Perldocβ upgraded from version3.25_02to3.25_03.Storableβ upgraded from version2.56to2.56_01.Sys::Syslogβ upgraded from version0.33to0.33_01.Testβ upgraded from version1.28to1.28_01.Test::Harnessβ upgraded from version3.36to3.36_01.XSLoaderβ upgraded from version0.21to0.22, fixing a security hole in which binary files could be loaded from a path outside of@INC. [GH #15418] <https://github.com/Perl/perl5/issues/15418>
that last one is the main character of this list ngl, security hole patched, we love to see it ππ₯
π Documentation π
π Changes to Existing Documentation π
perlapio
- The documentation of
PERLIO_DEBUGhas been updated. β¨
perlrun
- The new
-Diswitch has been documented, and the documentation ofPERLIO_DEBUGhas been updated. β¨
docs getting the attention they deserve, as they should π
π§ͺ Testing π§ͺ
- A new test script,
t/run/switchDx.t, has been added to test that the new-Diswitch is working correctly. π
π Selected Bug Fixes π
- The change to hashbang redirection introduced in Perl 5.24.0 β whereby perl would redirect to another interpreter (Perl 6) if it found a hashbang path which contains
perlfollowed by6β has been reverted because it broke in cases such as#!/opt/perl64/bin/perl.
like, imagine being perl64 and getting redirected to Perl 6. the disrespect π the change got undone and honestly? deserved.
π«Ά Acknowledgements π«Ά
Perl 5.24.1 represents approximately 8 months of development since Perl 5.24.0 and contains approximately 8,100 lines of changes across 240 files from 18 authors. slay π
Excluding auto-generated files, documentation and release tools, there were approximately 2,200 lines of changes to 170 .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.24.1:
Aaron Crane, Alex Vandiver, Aristotle Pagaltzis, Chad Granum, Chris 'BinGOs' Williams, Craig A. Berry, Father Chrysostomos, James E Keenan, Jarkko Hietaniemi, Karen Etheridge, Leon Timmermans, Matthew Horsfall, Ricardo Signes, Sawyer X, SΓ©bastien Aperghis-Tramoni, Stevan Little, Steve Hay, Tony Cook.
round of applause for the whole squad πππ genuinely iconic.
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. y'all are seen and loved π«Ά
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. CPAN besties, this one's for you πΈ
For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
π Reporting Bugs π
If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the Perl bug database at <https://rt.perl.org/> . There may also be information at <http://www.perl.org/> , the Perl Home Page. π
If you believe you have an unreported bug, please run the perlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case β we're not reading a whole novel, bestie, give us the mini version πβ¨ Your bug report, along with the output of perl -V, 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 "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec for details of how to report the issue. π€«π
π 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 was perl v5.42.3, dated 2026-08-03, and it's the PERL5241DELTA(1) manual page. go forth and upgrade responsibly, 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