PERL5122DELTA(1perl)
β¨ NAME β¨
perl5122delta β the tea on what's new for perl v5.12.2 π«π
πΈ DESCRIPTION πΈ
Okay bestie, so this little doc spills all the differences between the 5.12.1 release and the 5.12.2 release. Short version: it's a polish pass. β¨
And if you're hopping over from an older major version β like, say, 5.10.1 β you're gonna wanna read perl5120delta first, because that one covers the glow-up between 5.10.0 and 5.12.0. Then also peep perl5121delta, which talks about the earlier changes in the 5.12 stable release series. Do it in order, it hits different. π
π Incompatible Changes π
Queen behavior honestly: there are no changes intentionally incompatible with 5.12.1. Like, zero. And if you do find one? That's not a feature, that's a bug β and reports are welcome. Tell us everything. π«Ά
π Core Enhancements π
Other than the bug fixes listed below, there should be no user-visible changes to the core language in this release. It's giving "quiet luxury." π
π Modules and Pragmata π
π§ New Modules and Pragmata
This release does not introduce any new modules or pragmata. Nothing new dropped, we're just maintaining the vibe. π
π¦ Pragmata Changes
In the previous release, no VERSION; statements triggered a bug which could cause feature bundles to be loaded and strict mode to be enabled unintentionally. Not the move. π
β Updated Modules
Carp- Upgraded from version
1.16to1.17. π« - Carp now detects incomplete
caller()overrides and avoids using bogus@DB::args. To provide backtraces, Carp relies on particular behaviour of thecallerbuilt-in. Carp now detects if other code has overridden this with an incomplete implementation, and modifies its backtrace accordingly. Previously incomplete overrides would cause incorrect values in backtraces (best case), or obscure fatal errors (worst case). π - This fixes certain cases of
Bizarre copy of ARRAYcaused by modules overridingcaller()incorrectly.
- Upgraded from version
CPANPLUS- A patch to
cpanp-run-perlhas been backported from CPANPLUS0.9004. This resolves RT #55964 (http://rt.cpan.org/Public/Bug/Display.html?id=55964) and RT #57106 (http://rt.cpan.org/Public/Bug/Display.html?id=57106), both of which related to failures to install distributions that useModule::Install::DSL.
- A patch to
File::Glob- A regression which caused a failure to find
CORE::GLOBAL::globafter loadingFile::Globto crash has been fixed. Now, it correctly falls back to external globbing viapp_glob. Slay. π
- A regression which caused a failure to find
File::CopyFile::Copy::copy(FILE, DIR)is now documented. π
File::Spec- Upgraded from version
3.31to3.31_01. - Several portability fixes were made in
File::Spec::VMS: a colon is now recognized as a delimiter in native filespecs; caret-escaped delimiters are recognized for better handling of extended filespecs;catpath()returns an empty directory rather than the current directory if the input directory name is empty;abs2rel()properly handles Unix-style input. π
- Upgraded from version
π οΈ Utility Changes π οΈ
perlbugnow always gives the reporter a chance to change the email address it guesses for them. Consent matters, bestie. π§β¨perlbugshould no longer warn about uninitialized values when using the-dand-voptions. Silence, iconic behavior. π€«
π Changes to Existing Documentation π
- The existing policy on backward-compatibility and deprecation has been added to
perlpolicy, along with definitions of terms like deprecation. Glossary girlies, this one's for you. π srandinperlfunc's usage has been clarified.- The entry for
dieinperlfuncwas reorganized to emphasize its role in the exception mechanism. Drama queen (affectionate). π - Perl's
INSTALLfile has been clarified to explicitly state that Perl requires a C89 compliant ANSI C Compiler. IO::Socket'sgetsockopt()andsetsockopt()have been documented.alarm()'s inability to interrupt blocking IO on Windows has been documented.Math::TrulyRandomhasn't been updated since 1996 and has been removed as a recommended solution for random number generation. It's giving expired. πperlrunhas been updated to clarify the behaviour of octal flags to perl.- To ease user confusion,
$#and$*, two special variables that were removed in earlier versions of Perl have been documented. RIP to those two, but they're remembered in the docs now. β°οΈπ - The version of
perlfaqshipped with the Perl core has been updated from the official FAQ version, which is now maintained in the"briandfoy/perlfaq"branch of the Perl repository atgit://perl5.git.perl.org/perl.git. π
π Installation and Configuration Improvements π
π§΅ Configuration improvements
- The
d_u32alignconfiguration probe on ARM has been fixed.
π₯ Compilation improvements
- An
"incompatible operand types"error in ternary expressions when building withclanghas been fixed. clang said "no <3" and now it says "ok <3." π - Perl now skips setuid
File::Copytests on partitions it detects to be mounted asnosuid.
π Selected Bug Fixes π
Get comfy, this is the satisfying part. πΏ
- A possible segfault in the
T_PRTOBJdefault typemap has been fixed. - A possible memory leak when using
caller()to set@DB::argshas been fixed. - Several memory leaks when loading XS modules were fixed. Hydrate, don't leak. π§
unpack()now handles scalar context correctly for%32Hand%32u, fixing a potential crash.split()would crash because the third item on the stack wasn't the regular expression it expected.unpack("%2H", ...)would return both the unpacked result and the checksum on the stack, as wouldunpack("%2u", ...). [GH #10257] (https://github.com/Perl/perl5/issues/10257)- Perl now avoids using memory after calling
free()inpp_requirewhen there are CODEREFs in@INC. Use-after-free is NOT the vibe. π« - A bug that could cause
"Unknown error"messages whencall_sv(code, G_EVAL)is called from an XS destructor has been fixed. - The implementation of the
open $fh, '>' \$bufferfeature now supports get/set magic and thus tied buffers correctly. β¨ - The
pp_getc,pp_tell, andpp_eofopcodes now make room on the stack for their return values in cases where no argument was passed in. - When matching Unicode strings under some conditions inappropriate backtracking would result in a
Malformed UTF-8 character (fatal)error. This should no longer occur. See [GH #10434] (https://github.com/Perl/perl5/issues/10434) πΈ
π Platform Specific Notes π
π₯οΈ AIX
README.aixhas been updated with information about the XL C/C++ V11 compiler suite.
πͺ Windows
- When building Perl with the mingw64 x64 cross-compiler
incpath,libpth,ldflags,lddlflagsandldflags_nolargefilesvalues inConfig.pmandConfig_heavy.plwere not previously being set correctly because, with that compiler, the include and lib directories are not immediately below$(CCHOME). Fixed! π
πΎ VMS
git_version.his now installed on VMS. This was an oversight in v5.12.0 which caused some extensions to fail to build. My bad (not mine, but still). π- Several memory leaks in
stat()have been fixed. - A memory leak in
Perl_rename()due to a double allocation has been fixed. - A memory leak in
vms_fid_to_name()(used byrealpath()andrealname()) has been fixed.
π Acknowledgements π
Perl 5.12.2 represents approximately three months of development since Perl 5.12.1 and contains approximately 2,000 lines of changes across 100 files from 36 authors. That's a whole group project that actually got finished. π₯
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.12.2:
Abigail, Γvar ArnfjΓΆrΓ° Bjarmason, Ben Morrow, brian d foy, Brian Phillips, Chas. Owens, Chris 'BinGOs' Williams, Chris Williams, Craig A. Berry, Curtis Jewell, Dan Dascalescu, David Golden, David Mitchell, Father Chrysostomos, Florian Ragwitz, George Greer, H.Merijn Brand, Jan Dubois, Jesse Vincent, Jim Cromie, Karl Williamson, Lars DΙͺα΄α΄α΄α΄α΄‘ θΏͺζζ―, Leon Brocard, Maik Hentsche, Matt S Trout, Nicholas Clark, Rafael Garcia-Suarez, Rainer Tammer, Ricardo Signes, Salvador Ortiz Garcia, Sisyphus, Slaven Rezic, Steffen Mueller, Tony Cook, Vincent Pit and Yves Orton.
Not me tearing up at the contributor list. ππ«Ά Every single one of y'all is a main character.
π 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 http://rt.perl.org/perlbug/ . 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 β fr fr, a minimal repro is the kindest gift you can give a maintainer. π 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.
β οΈ Okay this part is serious, bestie. If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN. π Don't doxx a vuln in public, we're better than that.
π¦ 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. βοΈ
That's the whole thing, babe β you're officially caught up on 5.12.2. π β¨
This was perl5122delta, from the Perl Programmers Reference Guide, manual page 1perl. π
And for the record, this doc ships with perl v5.44.0, dated 2026-10-17. π Bye bestie, go read perl5120delta if you skipped it! π«Ά
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms