PERL5340DELTA(1perl)
β¨ NAME β¨
perl5340delta β what is new for perl v5.34.0 π
π DESCRIPTION π
okay bestie, gather round, because this is the glow-up doc for perl π
. It literally describes the differences between the 5.32.0 release and the 5.34.0 release.
If you're upgrading from something even older, like 5.30.0, do yourself a favor and read perl5320delta first β it spills all the tea on the differences between 5.30.0 and 5.32.0.
π₯ Core Enhancements π₯
β¨ Experimental Try/Catch Syntax β¨
not me being excited about this β an initial experimental attempt at providing try/catch notation has been added. iconic behavior fr fr.
use feature 'try';
try {
a_function();
}
catch ($e) {
warn "An error occurred: $e";
}
For more information, see "Try Catch Exception Handling" in perlsyn.
π
qr/{,n}/ is now accepted
An empty lower bound is now accepted for regular expression quantifiers, like m/x{,3}/ meaning m/x{0,3}/. slay.
π Blanks freely allowed within but adjacent to curly braces (in double-quotish contexts and regular expression patterns)
This means you can write things like "\x{ FFFC }" if you like. This applies to all such constructs, namely \b{}, \g{}, \k{}, \N{}, \o{}, and \x{}; as well as the regular expression quantifier {m,n}. \p{} and \P{} retain their already-existing, even looser, rules mandated by the Unicode standard (see "Properties accessible through \p{} and \P{}" in perluniprops).
This ability is in effect regardless of the presence of the /x regular expression pattern modifier.
Additionally, the comma in a regular expression braced quantifier may have blanks (tabs or spaces) before and/or after the comma, like qr/a{ 5, 7 }/.
π New octal syntax 0oddddd
It is now possible to specify octal literals with 0o prefixes, as in 0o123_456, parallel to the existing construct to specify hexadecimal literal 0xddddd and binary literal 0bddddd. Also, the builtin oct() function now accepts this new syntax.
See "Scalar value constructors" in perldata and "oct EXPR" in perlfunc.
β‘ Performance Enhancements β‘
- Fix a memory leak in RegEx
[GH #18604 <https://github.com/Perl/perl5/issues/18604>]
π¦ Modules and Pragmata π¦
β¨ New Modules and Pragmata β¨
ExtUtils::PL2Bat 0.004has been added to the Perl core.- This module is a generalization of the
pl2batscript. It being a script has led to at least two forks of this code; this module will unify them under one implementation with tests.
- This module is a generalization of the
π Updated Modules and Pragmata π
Archive::Tarhas been upgraded from version2.36to2.38.autodiehas been upgraded from version2.32to2.34.Bhas been upgraded from version1.80to1.82.B::Deparsehas been upgraded from version1.54to1.56.byteshas been upgraded from version1.07to1.08.Carphas been upgraded from version1.50to1.52.Compress::Raw::Bzip2has been upgraded from version2.093to2.101.Compress::Raw::Zlibhas been upgraded from version2.093to2.101.Config::Perl::Vhas been upgraded from version0.32to0.33.CPANhas been upgraded from version2.27to2.28.Data::Dumperhas been upgraded from version2.174to2.179.DBhas been upgraded from version1.58to1.59.DB_Filehas been upgraded from version1.853to1.855.Devel::Peekhas been upgraded from version1.28to1.30.Devel::PPPorthas been upgraded from version3.57to3.62.- New
PERL_VERSION_*comparison macros are now available. ppport.h --api-infono longer includes non-API info unless that is the only match
- New
Digesthas been upgraded from version1.17_01to1.19.Digest::MD5has been upgraded from version2.55_01to2.58.DynaLoaderhas been upgraded from version1.47to1.50.Encodehas been upgraded from version3.06to3.08.Envhas been upgraded from version1.04to1.05.Errnohas been upgraded from version1.30to1.33.experimentalhas been upgraded from version0.020to0.024.Exporterhas been upgraded from version5.74to5.76.ExtUtils::CBuilderhas been upgraded from version0.280234to0.280236.ExtUtils::Installhas been upgraded from version2.14to2.20.ExtUtils::MakeMakerhas been upgraded from version7.44to7.62.ExtUtils::Manifesthas been upgraded from version1.72to1.73.ExtUtils::Miniperlhas been upgraded from version1.09to1.10.ExtUtils::ParseXShas been upgraded from version3.40to3.43.ExtUtils::Typemapshas been upgraded from version3.38to3.43.Fcntlhas been upgraded from version1.13to1.14.featurehas been upgraded from version1.58to1.64.- Added the default enabled
bareword_filehandlesfeature. - A new multidimensional feature has been added, which is enabled by default but allows turning off multi-dimensional array emulation.
- Added the default enabled
File::Copyhas been upgraded from version2.34to2.35.File::Fetchhas been upgraded from version0.56to1.00.File::Findhas been upgraded from version1.37to1.39.File::Pathhas been upgraded from version2.16to2.18.File::Spechas been upgraded from version3.78to3.80.File::Temphas been upgraded from version0.2309to0.2311.Filter::Util::Callhas been upgraded from version1.59to1.60.FindBinhas been upgraded from version1.51to1.52.GDBM_Filehas been upgraded from version1.18to1.19.- New functions and compatibility for newer versions of GDBM.
[GH #18435 <https://github.com/Perl/perl5/pull/18435>]
- New functions and compatibility for newer versions of GDBM.
Getopt::Longhas been upgraded from version2.51to2.52.Getopt::Stdhas been upgraded from version1.12to1.13.Hash::Utilhas been upgraded from version0.23to0.25.Hash::Util::FieldHashhas been upgraded from version1.20to1.21.I18N::LangTagshas been upgraded from version0.44to0.45.ifhas been upgraded from version0.0608to0.0609.IOhas been upgraded from version1.43to1.46.IO::Socketnow stores error messages in$IO::Socket::errstr, in addition to in$@.- The
errormethod now reports the error state for both the input and output streams for sockets and character devices. Similarlyclearerrnow clears the error state for both streams. - A spurious error reported for regular file handles has been fixed in IO::Handle.
[GH #18019 <https://github.com/Perl/perl5/issues/18019>]
IO-Compresshas been upgraded from version2.093to2.102.bin/zipdetailsversion2.02
IO::Socket::IPhas been upgraded from version0.39to0.41.IO::Zlibhas been upgraded from version1.10to1.11.IPC::SysVhas been upgraded from version2.07to2.09.JSON::PPhas been upgraded from version4.04to4.06.- The libnet distribution has been upgraded from version
3.11to3.13. localehas been upgraded from version1.09to1.10.Math::Complexhas been upgraded from version1.5901to1.5902.MIME::Base64has been upgraded from version3.15to3.16.Module::CoreListhas been upgraded from version5.20200620to5.20210520.Module::Loadhas been upgraded from version0.34to0.36.Module::Load::Conditionalhas been upgraded from version0.70to0.74.mrohas been upgraded from version1.23to1.25_001.Net::Pinghas been upgraded from version2.72to2.74.NEXThas been upgraded from version0.67_01to0.68.ODBM_Filehas been upgraded from version1.16to1.17.Opcodehas been upgraded from version1.47to1.50.overloadhas been upgraded from version1.31to1.33.perlfaqhas been upgraded from version5.20200523to5.20210411.PerlIO::encodinghas been upgraded from version0.28to0.30.PerlIO::mmaphas been upgraded from version0.016to0.017.PerlIO::scalarhas been upgraded from version0.30to0.31.PerlIO::via::QuotedPrinthas been upgraded from version0.08to0.09.Pod::Checkerhas been upgraded from version1.73to1.74.Pod::Htmlhas been upgraded from version1.25to1.27.Pod::Simplehas been upgraded from version3.40to3.42.Pod::Usagehas been upgraded from version1.69to2.01.POSIXhas been upgraded from version1.94to1.97.POSIX::signbit()behaviour has been improved.[GH #18441 <https://github.com/Perl/perl5/pull/18441>]- Documentation for
asctimeclarifies that the result is always in English. (Usestrftimefor a localized result.)
rehas been upgraded from version0.40to0.41.- (See under "Internal Changes" for more information.)
Safehas been upgraded from version2.41to2.43.Sockethas been upgraded from version2.029to2.031.Storablehas been upgraded from version3.21to3.23.stricthas been upgraded from version1.11to1.12.subshas been upgraded from version1.03to1.04.Symbolhas been upgraded from version1.08to1.09.Test::Harnesshas been upgraded from version3.42to3.43.Test::Simplehas been upgraded from version1.302175to1.302183.Text::Balancedhas been upgraded from version2.03to2.04.threadshas been upgraded from version2.25to2.26.threads::sharedhas been upgraded from version1.61to1.62.Tie::RefHashhas been upgraded from version1.39to1.40.Time::HiReshas been upgraded from version1.9764to1.9767.Time::Localhas been upgraded from version1.28to1.30.Unicode::Collatehas been upgraded from version1.27to1.29.Unicode::Normalizehas been upgraded from version1.27to1.28.utf8has been upgraded from version1.22to1.24.versionhas been upgraded from version0.9924to0.9928.warningshas been upgraded from version1.47to1.51.Win32has been upgraded from version0.53to0.57.- Fix calling convention for
PFNRegGetValueA. - Added
Win32::IsSymlinkCreationAllowed(),Win32::IsDeveloperModeEnabled(), andWin32::GetProcessPrivileges(). - Removed old code for versions before Windows 2000.
- Fix calling convention for
XS::APItesthas been upgraded from version1.09to1.16.XS::Typemaphas been upgraded from version0.17to0.18.
π Documentation π
β¨ New Documentation β¨
π§ perldocstyle π§
This document is a guide for the authorship and maintenance of the documentation that ships with Perl. π
ποΈ perlgov ποΈ
This document describes the goals, scope, system, and rules for Perl's new governance model. π
Other pod files, most notably perlpolicy, were amended to reflect its adoption. π«Ά
π¦ 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 https://github.com/Perl/perl5/issues. π
Additionally, the following selected changes have been made:
perlapi,perlguts,perlxs, andperlxstutnow prefer"SvPVbyte"over"SvPV".- References to Pumpking have been replaced with a more accurate term or Steering Council where appropriate.
- The Perl Steering Council is now the fallback contact for security issues.
π perlapi π
- Efforts continue in improving the presentation of this document, and to document more API elements. π₯
π perlcommunity π
- The freenode IRC URL has been updated.
π perldebguts π
- Corrected the description of the scalar
"${"_<$filename"}"variables. π΅οΈ
π perldiag π
- Now documents additional examples of
"not imported"warnings.
β perlfaq β
- The Perl FAQ was updated to CPAN version
5.20201107with minor improvements. β¨
π§© perlfunc π§©
my()andstate()now explicitly warn the reader that lexical variables should typically not be redeclared within the same scope or statement.[GH #18389 <https://github.com/Perl/perl5/issues/18389>]- The
localtimeentry has been improved and now also states that the result of the function is always in English. msgsnd()documented a length field included in the packed"MSG"parameter tomsgsnd(), but there was no such field."MSG"contains only the type and the message content.- Better explanation of what happens when
"sleep"is called with a zero or negative value. - Simplify the
split()documentation by removing thejoin()s from the examples[GH #18676 <https://github.com/Perl/perl5/issues/18676>]
πΏ perlgit πΏ
- document how to create a remote-tracking branch for every PR
- document how to get a PR as a local branch
𧬠perlguts π§¬
perlgutsnow explains in greater detail the need to consult"SvUTF8"when calling"SvPV"(or variants). A new"How do I pass a Perl string to a C library?"section in the same document discusses when to use which style of macro to read an SV's string value.- Corrected
"my_rpeep"example inperlguts. - A section has been added on the formatted printing of special sizes.
π£ perlop π£
- The
"<>"and"<<>>"operators are commonly referred to as the diamond and double diamond operators respectively, but that wasn't mentioned previously in their documentation. - Document range op behavior change.
π¦ perlpacktut π¦
- Incorrect variables used in an example have been fixed.
π§ perlsyn π§
- Document that
caller()does not seetry{}blocks - A new example shows how a lexical
"my"variable can be declared during the initialization of a"for"loop.
π¦ perlunifaq π¦
- Fix description of what Perl does with unencoded strings
π©Ί Diagnostics π©Ί
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 perldiag. π
π¨ New Diagnostics π¨
π₯ New Errors π₯
Bareword filehandle "%s" not allowed under 'no feature "bareword_filehandles"'β This accompanies the newbareword_filehandlesfeature.Multidimensional hash lookup is disabledβ This accompanies the newmultidimensionalfeature.
β οΈ New Warnings β οΈ
Wide character in setenv key (encoding to utf8)β Attempts to put wide characters into environment variable keys via%ENVnow provoke this warning.
π Changes to Existing Diagnostics π
Error %s in expansion of %sβ An error was encountered in handling a user-defined property ("User-Defined Character Properties"inperlunicode). These are programmer written subroutines, hence subject to errors that may prevent them from compiling or running.Infinite recursion in user-defined propertyβ A user-defined property ("User-Defined Character Properties"inperlunicode) can depend on the definitions of other user-defined properties. If the chain of dependencies leads back to this property, infinite recursion would occur, were it not for the check that raised this error.Timeout waiting for another thread to define \p{%s}β The first time a user-defined property ("User-Defined Character Properties"inperlunicode) is used, its definition is looked up and converted into an internal form for more efficient handling in subsequent uses. There could be a race if two or more threads tried to do this processing nearly simultaneously.Unknown user-defined property name \p{%s}β You specified to use a property within the"\p{...}"which was a syntactically valid user-defined property, but no definition was found for itToo few arguments for subroutine '%s' (got %d; expected %d)β Subroutine argument-count mismatch errors now include the number of given and expected arguments.Too many arguments for subroutine '%s' (got %d; expected %d)β Subroutine argument-count mismatch errors now include the number of given and expected arguments.Lost precision when %s %f by 1β This warning was only issued for positive too-large values when incrementing, and only for negative ones when decrementing. It is now issued for both positive or negative too-large values.[GH #18333 <https://github.com/Perl/perl5/issues/18333>]\K not permitted in lookahead/lookbehind in regex; marked by <-- HERE in m/%s/β This error was incorrectly produced in some cases involving nested lookarounds. This has been fixed.[GH #18123 <https://github.com/Perl/perl5/issues/18123>]Use of uninitialized value%sβ This warning may now include the array or hash index when the uninitialized value is the result of an element not found. This will only happen if the index is a simple non-magical variable.
π οΈ Utility Changes π οΈ
π perl5db.pl (the debugger) π
- New option:
"HistItemMinLength"β This option controls the minimum length a command must be to get stored in history. Traditionally, this has been fixed at2. Changes to the debugger are often perilous, and new bugs should be reported so the debugger can be debugged. π« - Fix to
"i"and"l"commands β The"i $var"and"l $var"commands work again with lexical variables. π
βοΈ Configuration and Compilation βοΈ
- Prevented
incpathto spill intolibpth - Use
realpathif available. (This might catch more duplicate paths.) - Only include real existing paths.
- Filter inc paths out of
libpth. stadtxhash support has been removed βstadtxsupport has been entirely removed. Previously, it could be requested with"PERL_HASH_FUNC_STADTX", and was default in 64-bit builds. It has been replaced with SipHash. SipHash has been more rigorously reviewed thanstadtx.- Configure β A new probe checks for buggy libc implementations of the
"gcvt"/"qgcvt"functions.[GH #18170 <https://github.com/Perl/perl5/issues/18170>] "-Dusedefaultstrict"β Perl can now be built with strict on by default (using the configuration option"-Dusedefaultstrict").
These strict defaults do not apply when "perl" is run via "-e" or "-E".
This setting provides a diagnostic mechanism intended for development purposes only and is thus undefined by default.
- The minimum supported Bison version is now
2.4, and the maximum is3.7. - Newer 64-bit versions of the Intel C/C++ compiler are now recognised and have the correct flags set.
- We now trap
SIGBUSwhen Configure checks for"va_copy".
On several systems the attempt to determine if we need "va_copy" or similar results in a SIGBUS instead of the expected SIGSEGV, which previously caused a core dump.
[GH #18148 <https://github.com/Perl/perl5/issues/18148>]
π§ͺ Testing π§ͺ
Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:
- Split Config-dependent tests in
t/opbasic/arith.ttot/op/arith2.t t/re/opt.twas added, providing a test harness for regexp optimization.[GH #18213 <https://github.com/Perl/perl5/pull/18213>]- A workaround for CPAN distributions needing dot in
@INChas been removed[GH #18394 <https://github.com/Perl/perl5/pull/18394>]. All distributions that previously required the workaround have now been adapted. - When testing in parallel on many-core platforms, you can now cause the test suite to finish somewhat earlier, but with less logical ordering of the tests, by setting
PERL_TEST_HARNESS_ASAP=1
while running the test suite. πββοΈπ¨
π DragonFlyBSD π
Tests were updated to workaround DragonFlyBSD bugs in tc*() functions <https://bugs.dragonflybsd.org/issues/3252> and ctime updates <https://bugs.dragonflybsd.org/issues/3251>.
π Mac OS X π
So a number of system libraries no longer exist as actual files on Big Sur, even though dlopen will totally pretend they do π β so now we fall back to dlopen if a library file can not be found. Sneaky little fake-out, but we handled it. [GH #18407 <https://github.com/Perl/perl5/issues/18407>]
πͺ Windows πͺ
Bestie, Windows got a whole glow-up in this release. Sit down, hydrate, this list is long π
- Reading non-ASCII characters from the console when its codepage was set to
65001(UTF-8) was broken due to a bug in Windows. A workaround for this problem has been implemented.[GH #18701 <https://github.com/Perl/perl5/issues/18701>] - Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions < 3.22 now works again. This was broken in Perl 5.31.4.
- Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions >= 3.21 now works (for compilers up to version 5.3.0).
Makefile.mk, and thus support for dmake, has been removed. It is still possible to build Perl on Windows using nmake (Makefile) and GNU make (GNUmakefile).[GH #18511 <https://github.com/Perl/perl5/pull/18511>]- perl can now be built with
USE_QUADMATHon MS Windows using (32-bit and 64-bit) mingw-w64 ports of gcc.[GH #18465 <https://github.com/Perl/perl5/pull/18465>] - The pl2bat.pl utility now needs to
use ExtUtils::PL2Bat. This could cause failures in parallel builds. (parallel builders, you have been warned π) - Windows now supports
symlink()andreadlink(), andlstat()is no longer an alias forstat().[GH #18005 <https://github.com/Perl/perl5/issues/18005>]. - Unlike POSIX systems, creating a symbolic link on Windows requires either elevated privileges or Windows 10 1703 or later with Developer Mode enabled. (yes it's a whole thing, we don't make the rules β¨)
stat(), includingstat FILEHANDLE, andlstat()now uses our own implementation that populates the devicedevand inode numbersinoreturned rather than always returning zero. The number of linksnlinkfield is now always populated.${^WIN32_SLOPPY_STAT}previously controlled whether thenlinkfield was populated requiring a separate Windows API call to fetch, sincenlinkand the other information required forstat()is now retrieved in a single API call.- The
-rand-woperators now return true for theSTDIN,STDOUTandSTDERRhandles. Unfortunately it still won't return true for duplicates of those handles.[GH #8502 <https://github.com/Perl/perl5/issues/8502>]. - The times returned by
stat()andlstat()are no longer incorrect across Daylight Savings Time adjustments.[GH #6080 <https://github.com/Perl/perl5/issues/6080>]. -xon a filehandle should now match-xon the corresponding filename on Vista or later.[GH #4145 <https://github.com/Perl/perl5/issues/4145>].-e '"'"no longer incorrectly returns true.[GH #12431 <https://github.com/Perl/perl5/issues/12431>].- The same manifest is now used for Visual C++ and gcc builds.
- Previously, MSVC builds were using the
/manifestdependencyflag instead of embeddingperlexe.manifest, which caused issues such asGetVersionEx()returning the wrong version number on Windows 10.
π¦ z/OS π¦
The locale categories LC_SYNTAX and LC_TOD are now recognized. Perl doesn't do anything with these, except it now allows you to specify them. They are included in LC_ALL. So like, they're vibing there, acknowledged, no cap π
π οΈ Internal Changes π οΈ
Okay, this is the backstage tour β the guts, the plumbing, the stuff only the C-heads and XS girlies see. But it's all important, so stay with me π«Ά
- Corrected handling of double and long double parameters for perl's implementation of formatted output for
-Dusequadmathbuilds.
This applies to PerlIO_printf(), croak(), warn(), sv_catpvf() and their variants.
Previously in quadmath builds, code like:
PerlIO_printf(PerlIO_stderr(), "%g", somedouble);
or
PerlIO_printf(PerlIO_stderr(), "%Lg", somelongdouble);
would erroneously throw an exception panic: quadmath invalid format ..., since the code added for quadmath builds assumed NVs were the only floating point format passed into these functions.
This code would also process the standard C long double specifier L as if it expected an NV (__float128 for quadmath builds), resulting in undefined behaviour.
These functions now correctly accept doubles, long doubles and NVs. Slay.
- Previously the right operand of bitwise shift operators (shift amount) was implicitly cast from IV to int, but it might lead wrong results if IV does not fit in int.
And also, shifting INT_MIN bits used to yield the shiftee unchanged (treated as 0-bit shift instead of negative shift). Wild, honestly.
- A set of
cop_hints_exists_{pv,pvn,pvs,sv}functions was added, to support checking for the existence of keys in the hints hash of a specific cop without needing to create a mortal copy of said value. Efficiency queen π - An aid has been added for using the
DEBUGmacros when debugging XS or C code. The comments in perl.h describeDEBUG_PRE_STMTSandDEBUG_POST_STMTS. which you can#defineto do things like save and restoreerrno, in case theDEBUGcalls are interfering with that, or to display timestamps, or which thread it's coming from, or the location of the call, or whatever. You can make a quick hack to help you track something down without having to edit individualDEBUGcalls. Honestly? Life-changing for debugging sessions. - Make
REFCOUNTED_HE_EXISTSavailable outside of core - All
SvTRUE-ish functions now evaluate their arguments exactly once. In 5.32, plain""SvTRUE""in perlapi was changed to do that; now the rest do as well. Consistency, periodt. - Unicode is now a first class citizen when considering the pattern
/A*B/where A and B are arbitrary. The pattern matching code tries to make a tight loop to match the span of A's. The logic of this was now really updated with support for UTF-8. The regex engine really said "I'm the main character now" π - The re module has a new function
optimization, which can return a hashref of optimization data discovered about a compiled regexp. - The
PERL_GLOBAL_STRUCTcompilation option has been removed, and with it the need or thedVARmacro.dVARremains defined as a no-op outsidePERL_COREfor backwards compatibility with XS modules. - A new savestack type
SAVEt_HINTS_HHhas been added, which neatens the previous behaviour ofSAVEt_HINTS. On previous versions the types and values pushed to the save stack would depend on whether the hints included theHINT_LOCALIZE_HHbit, which complicates external code that inspects the save stack. The new version uses a different savestack type to indicate the difference. Cleaner, clearer, iconic π - A new API function
av_countin perlapi has been added which gives a clearly named way to find how many elements are in an array.
π Selected Bug Fixes π
okay bestie, this is the tea section β all the lil glitches that got fixed. no cap, some of these were actually chaotic. π«
- So, setting
%ENVnow properly handles upgraded strings in the key. β¨ Previously Perl was just yeeting the SV's internal PV straight at the OS; now it handles keys the same way it's handled values since 5.18: it tries to downgrade the string first, and if that fails it warns and uses the utf8 form. she's consistent now π - Fixed a memory leak in
regcomp.c[GH #18604](https://github.com/Perl/perl5/issues/18604). no more leaking, periodt. π§ pack/unpackformat'D'now works on all systems that could support it. π
Previously it was like "if NV == long double", but now it's supported on every platform that has long doubles. and especially β this is the slay β it's now also supported on quadmath platforms. π
- Skip trying to constant fold an incomplete op tree [GH #18380](https://github.com/Perl/perl5/issues/18380)
okay so constant folding of chained comparison op trees could fail under certain conditions and that would make perl literally crash. π as a quick fix, constant folding is now skipped for those op trees. this also addresses [GH #17917](https://github.com/Perl/perl5/issues/17917).
%gformatting broken on Ubuntu-18.04,"NVSIZE == 8"[GH #18170](https://github.com/Perl/perl5/issues/18170)
buggy libc implementations of the gcvt and qgcvt functions were making (s)printf incorrectly truncate %g formatted numbers. π a new Configure probe now checks for this, and the result is that the libc sprintf gets used instead of gcvt and qgcvt.
and get this β the tests added as part of this fix also revealed related problems in some Windows builds. so the makefiles for MINGW builds on Windows got adjusted to use USE_MINGW_ANSI_STDIO by default, which makes sure they also give correct (s)printf formatting of numbers. windows ate and left no crumbs π
op.c: croak onmy $_whenuse utf8is in effect [GH #18449](https://github.com/Perl/perl5/issues/18449)
the lexical topic feature experiment got removed back in Perl v5.24, and declaring my $_ became a compile time error. HOWEVER, it was previously still possible to sneak that declaration in if use utf8 was in effect. not anymore bestie π
regexec.c: Fix assertion failure [GH #18451](https://github.com/Perl/perl5/issues/18451)
fuzzing triggered an assertion failure in the regexp engine when too many characters got copied into a buffer. fuzzing said "vibe check" and the regexp engine did not pass π
semctl(),msgctl(), andshmctl()now properly reset the UTF-8 flag on the"ARG"parameter if it's modified for"IPC_STAT"or"GETALL"operations. π§Όsemctl(),msgctl(), andshmctl()now attempt to downgrade the"ARG"parameter if its value is being used as input to"IPC_SET"or"SETALL"calls. and if the downgrade fails? it throws an exception. no silent chaos allowed π₯- In cases where
semctl(),msgctl()orshmctl()would treat the"ARG"parameter as a pointer, an undefined value no longer generates a warning. in most such calls the pointer isn't used anyway, and this lets you supply"undef"for a value that the underlying function just... doesn't use. relatable π«Ά semop()now downgrades the"OPSTRING"parameter,msgsnd()now downgrades the"MSG"parameter andshmwritenow downgrades the"STRING"parameter so they're treated as bytes. before this they'd be left upgraded, which handed a corrupted structure to the underlying function call. corrupted structure is not the vibe πmsgrcv()now properly resets the UTF-8 flag on the"VAR"parameter when it is modified. previously the UTF-8 flag could be left on, which could give you a possibly corrupt result in"VAR". glow-up complete β¨- Magic is now called correctly for stacked file test operators. [GH #18293](https://github.com/Perl/perl5/issues/18293) πͺ
- The
"@ary = split(...)"optimization no longer switches in the target array as the value stack. [GH #18232](https://github.com/Perl/perl5/issues/18232) also see the discussion at <https://github.com/Perl/perl5/pull/18014#issuecomment-671299506>. iykyk π - Fixed a bug in which some regexps with recursive subpatterns matched incorrectly. π§©
[GH #18096](https://github.com/Perl/perl5/issues/18096)
- On Win32,
"waitpid(-1, WNOHANG)"could sometimes have a very large timeout. [GH #16529](https://github.com/Perl/perl5/issues/16529) she was taking her sweet time fr π "MARK"and hence"items"are now correctly initialized in"BOOT"XSUBs. β- Some list assignments involving
"undef"on the left-hand side were over-optimized and produced incorrect results. [GH #16685](https://github.com/Perl/perl5/issues/16685), [GH #17816](https://github.com/Perl/perl5/issues/17816) too much main character energy from the optimizer tbh π€
πΈ Known Problems πΈ
None π
that's right. zero. nothing. iconic behaviour honestly.
π¦ Errata From Previous Releases π¦
None π
ποΈ Obituary ποΈ
Kent Fredric (KENTNL) passed away in February 2021. A native of New Zealand and a self-described "huge geek," Kent was the author or maintainer of 178 CPAN distributions, the Perl maintainer for the Gentoo Linux distribution and a contributor to the Perl core distribution. He is mourned by his family, friends and open source software communities worldwide.
rest easy, legend. π«Ά
π Acknowledgements π
So Perl 5.34.0 represents approximately 11 months of development since Perl 5.32.0, and it contains approximately 280,000 lines of changes across 2,100 files from 78 authors. that's a LOT of people doing a LOT of work. π
Excluding auto-generated files, documentation and release tools, there were approximately 150,000 lines of changes to 1,300 .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.34.0:
Aaron Crane, Adam Hartley, Andy Dougherty, Ben Cornett, Branislav ZahradnΓk, brian d foy, Chris 'BinGOs' Williams, Christian Walde (Mithaldu), Craig A. Berry, Dagfinn Ilmari MannsΓ₯ker, Dan Book, Daniel BΓΆhmer, Daniel LaΓΌgt, Dan Kogai, David Cantrell, David Mitchell, Dominic Hamon, E. Choroba, Ed J, Eric Herman, Eugene Alvin Villar, Felipe Gasper, Giovanni Tataranni, Graham Knop, Graham Ollis, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose Shogo, Ivan Baidakou, Jae Bradley, James E Keenan, Jason McIntosh, jkahrman, John Karr, John Lightsey, Kang-min Liu, Karen Etheridge, Karl Williamson, Keith Thompson, Leon Timmermans, Marc Reisner, Marcus Holland-Moritz, Max Maischein, Michael G Schwern, Nicholas Clark, Nicolas R., Paul Evans, Petr PΓsaΕ, raiph, Renee Baecker, Ricardo Signes, Richard Leach, Romano, Ryan Voots, Samanta Navarro, Samuel Thibault, Sawyer X, Scott Baker, Sergey Poznyakoff, Sevan Janiyan, Shirakata Kentaro, Shlomi Fish, Sisyphus, Sizhe Zhao, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tom Stellard, Tony Cook, vividsnow, Yves Orton, Zakariyya Mughal, ΠΠΈΡ Π°ΠΈΠ» ΠΠΎΠ·Π°ΡΠΊΠΎΠ².
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.
π Reporting Bugs π
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 <http://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. tiny but sufficient. we love a minimal repro π
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. π
bestie, if it's a security thing, do NOT just post it publicly. go read perlsec. safety first π«Ά
π 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. go be sweet, 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 a wrap on the whole delta, bestie!! π this page you just read is from perl v5.44.0, dated 2026-10-17, and it's the PERL5340DELTA(1perl) manual page. slay, go upgrade, and remember: the vibe changes, the facts never do. β¨ππ¦
π¦ 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