PERL589DELTA(1perl)
๐ perl589delta โ what's new for perl v5.8.9 ๐
okay bestie, gather round, because this is perl589delta, part of the Perl Programmers Reference Guide, and it's the official tea on what is new for perl v5.8.9 โจ
๐ธ DESCRIPTION ๐ธ
This doc spills the differences between the 5.8.8 release and the 5.8.9 release. That's it, that's the whole vibe. ๐ซถ
โ ๏ธ Notice โ ๏ธ
bestie, listen. The 5.8.9 release will be the last significant release of the 5.8.x series. Any future releases of 5.8.x will likely only be to deal with security issues and platform build failures. So likeโฆ you should look to migrating to 5.10.x if you have not started already. ๐ See "Known Problems" for more info.
๐ Incompatible Changes ๐
A particular construction in the source code of extensions written in C++ may need changing. See "Changed Internals" for more details. All extensions written in C, most written in C++, and all existing compiled extensions are unaffected. This was necessary to improve C++ support. (a glow-up with a tiny price tag, we love to see it ๐ )
Other than this, there are no changes intentionally incompatible with 5.8.8. If any exist, they are bugs and reports are welcome. ๐
๐ฅ Core Enhancements ๐ฅ
โจ Unicode Character Database 5.1.0 โจ
The copy of the Unicode Character Database included in Perl 5.8 has been updated to 5.1.0, up from 4.1.0. See <http://www.unicode.org/versions/Unicode5.1.0/#NotableChanges> for the notable changes. ๐
โจ stat and -X on directory handles โจ
It is now possible to call stat and the -X filestat operators on directory handles. As both directory and file handles are barewords, there can be ambiguities over which was intended. In these situations the file handle semantics are preferred. Both also treat *FILE{IO} filehandles like *FILE filehandles. ๐
โจ Source filters in @INC โจ
It's possible to enhance the mechanism of subroutine hooks in @INC by adding a source filter on top of the filehandle opened and returned by the hook. This feature was planned a long time ago, but wasn't quite working until now. See "require" in perlfunc for details. (Nicholas Clark) ๐ฆ
โจ Exceptions in constant folding โจ
The constant folding routine is now wrapped in an exception handler, and if folding throws an exception (such as attempting to evaluate 0/0), perl now retains the current optree, rather than aborting the whole program. Without this change, programs would not compile if they had expressions that happened to generate exceptions, even though those expressions were in code that could never be reached at runtime. (Nicholas Clark, Dave Mitchell) ๐ญ literally so real
โจ "no VERSION" โจ
You can now use no followed by a version number to specify that you want to use a version of perl older than the specified one. ๐
โจ Improved internal UTF-8 caching code โจ
The code that caches calculated UTF-8 byte offsets for character offsets for a string has been re-written. Several bugs have been located and eliminated, and the code now makes better use of the information it has, so should be faster. In particular, it doesn't scan to the end of a string before calculating an offset within the string, which should speed up some operations on long strings. It is now possible to disable the caching code at run time, to verify that it is not the cause of suspected problems. โญ
โจ Runtime relocatable installations โจ
There is now Configure support for creating a perl tree that is relocatable at run time. see "Relocatable installations". ๐
โจ New internal variables โจ
${^CHILD_ERROR_NATIVE}โ This variable gives the native status returned by the last pipe close, backtick command, successful call towaitorwaitpid, or from thesystemoperator. See perlvar for details. (Contributed by Gisle Aas.) ๐ซถ${^UTF8CACHE}โ This variable controls the state of the internal UTF-8 offset caching code.1for on (the default),0for off,-1to debug the caching code by checking all its results against linear scans, and panicking on any discrepancy. ๐ฅ
โจ "readpipe" is now overridable โจ
The built-in function readpipe is now overridable. Overriding it permits also to override its operator counterpart, qx// (also known as ``). ๐
โจ simple exception handling macros โจ
Perl 5.8.9 (and 5.10.0 onwards) now provides a couple of macros to do very basic exception handling in XS modules. You can use these macros if you call code that may croak, but you need to do some cleanup before giving control back to Perl. See "Exception Handling" in perlguts for more details. ๐ง
โจ -D option enhancements โจ
-Dqsuppresses theEXECUTING...message when running under-D๐-Dllogs runops loop entry and exit, and jump level popping. ๐-Dvdisplays the process id as part of the trace output. ๐
โจ XS-assisted SWASHGET โจ
Some pure-perl code that the regexp engine was using to retrieve Unicode properties and transliteration mappings has been reimplemented in XS for faster execution. (SADAHIRO Tomoyuki) โก
โจ Constant subroutines โจ
The interpreter internals now support a far more memory efficient form of inlineable constants. Storing a reference to a constant value in a symbol table is equivalent to a full typeglob referencing a constant subroutine, but using about 400 bytes less memory. This proxy constant subroutine is automatically upgraded to a real typeglob with subroutine if necessary. The approach taken is analogous to the existing space optimisation for subroutine stub declarations, which are stored as plain scalars in place of the full typeglob. ๐
However, to aid backwards compatibility of existing code, which (wrongly) does not expect anything other than typeglobs in symbol tables, nothing in core uses this feature, other than the regression tests.
Stubs for prototyped subroutines have been stored in symbol tables as plain strings, and stubs for unprototyped subroutines as the number -1, since 5.005, so code which assumes that the core only places typeglobs in symbol tables has been making incorrect assumptions for over 10 years. ๐ญ not the decade-old wrong assumptions
๐ New Platforms ๐
Compile support added for:
- DragonFlyBSD
- MidnightBSD
- MirOS BSD
- RISC OS
- Cray XT4/Catamount
the way that's five new platformsโฆ slay ๐ฆ
๐ Modules and Pragmata ๐
๐ New Modules ๐
Module::Pluggableis a simple framework to create modules that accept pluggable sub-modules. The bundled version is 3.8 ๐Module::CoreListis a hash of hashes that is keyed on perl version as indicated in$]. The bundled version is 2.17 โจWin32API::Filenow available in core on Microsoft Windows. The bundled version is 0.1001_01 ๐ชDevel::InnerPackagefinds all the packages defined by a single file. It is part of theModule::Pluggabledistribution. The bundled version is 0.3 ๐
๐ Updated Modules ๐
attributesupgraded to version 0.09AutoLoaderupgraded to version 5.67AutoSplitupgraded to 1.06autouseupgraded to version 1.06Bupgraded from 1.09_01 to 1.19- provides new pad related abstraction macros
B::NV::COP_SEQ_RANGE_LOW,B::NV::COP_SEQ_RANGE_HIGH,B::NV::PARENT_PAD_INDEX,B::NV::PARENT_FAKELEX_FLAGS, which hides the difference in storage in 5.10.0 and later. ๐ง - provides
B::sub_generation, which exposesPL_sub_generation - provides
B::GV::isGV_with_GP, which on pre-5.10 perls always returns true. - New type
B::HEadded with methodsVAL,HASHandSVKEY_force๐ - The
B::GVf_IMPORTED_CVflag is now set correctly when a proxy constant subroutine is imported. - bugs fixed in the handling of
PMOPs. ๐ B::BM::PREVIOUSreturns nowU32, notU16.B::CV::STARTandB:CV::ROOTreturn nowNULLon an XSUB,B::CV::XSUBandB::CV::XSUBANYreturn 0 on a non-XSUB.
- provides new pad related abstraction macros
B::Cupgraded to 1.05B::Conciseupgraded to 0.76- new option
-srccauses the rendering of each statement (starting with the nextstate OP) to be preceded by the first line of source code that generates it. ๐ - new option
-stash="somepackage",requiressomepackage, and then renders each function defined in its namespace. ๐ - now has documentation of detailed hint symbols.
- new option
B::Debugupgraded to version 1.05B::Deparseupgraded to version 0.87- properly deparse
print readpipe $x, $y. ๐ - now handles
''->(),::(),sub :: {}, etc. correctly [RT #43010]. All bugs in parsing these kinds of syntax are now fixed:
- properly deparse
perl -MO=Deparse -e '"my %h = "->()'
perl -MO=Deparse -e '::->()'
perl -MO=Deparse -e 'sub :: {}'
perl -MO=Deparse -e 'package a; sub a::b::c {}'
perl -MO=Deparse -e 'sub the::main::road {}'
- does not deparse
$^H{v_string}, which is automatically set by the internals.
B::Lintupgraded to version 1.11B::Terseupgraded to version 1.05baseupgraded to version 2.13- loading a module via base.pm would mask a global
$SIG{__DIE__}in that module. ๐ญ - push all classes at once in
@ISA
- loading a module via base.pm would mask a global
Benchmarkupgraded to version 1.10bigintupgraded to 0.23bignumupgraded to 0.23bigratupgraded to 0.23blibupgraded to 0.04Carpupgraded to version 1.10
The argument backtrace code now shows undef as undef, instead of a string "undef". ๐
CGIupgraded to version 3.42charnamesupgraded to 1.06constantupgraded to version 1.17CPANupgraded to version 1.9301Cwdupgraded to version 3.29 with some platform specific improvements (including for VMS). โญData::Dumperupgraded to version 2.121_17- Fixes hash iterator current position with the pure Perl version [RT #40668] ๐
- Performance enhancements, which will be most evident on platforms where repeated calls to C's
realloc()are slow, such as Win32. โก
DB_Fileupgraded to version 1.817DB_Filterupgraded to version 0.02Devel::DProfupgraded to version 20080331.00Devel::Peekupgraded to version 1.04Devel::PPPortupgraded to version 3.14diagnosticsupgraded to version 1.16Digestupgraded to version 1.15Digest::MD5upgraded to version 2.37DirHandleupgraded to version 1.02- now localises
$.,$@,$!,$^E, and$?before closing the directory handle to suppress leaking any side effects of warnings about it already being closed. ๐ซถ
- now localises
DynaLoaderupgraded to version 1.09
DynaLoader can now dynamically load a loadable object from a file with a non-default file extension. โจ
Encodeupgraded to version 2.26
(bestie this is just part one, there's more coming, don't go anywhere ๐)
Encode::Aliasgot a fix for the encoding646on Solaris (that's ASCII, bestie, the classic one).Englishupgraded to version1.03Errnoupgraded to version1.10Exporterupgraded to version5.63ExtUtils::Commandupgraded to version1.15ExtUtils::Constantupgraded to version0.21ExtUtils::Embedupgraded to version1.28ExtUtils::Installupgraded to version1.50_01ExtUtils::Installedupgraded to version1.43ExtUtils::MakeMakerupgraded to version6.48- it now supports the
INSTALLSITESCRIPTandINSTALLVENDORSCRIPTconfiguration ๐
- it now supports the
ExtUtils::Manifestupgraded to version1.55ExtUtils::ParseXSupgraded to version2.19Fatalupgraded to version1.06- built-ins sitting in
CORE::GLOBALcan now be made fatal โจ
- built-ins sitting in
Fcntlupgraded to version1.06fieldsupgraded to version2.12File::Basenameupgraded to version2.77FileCacheupgraded to version1.07File::Compareupgraded to1.1005File::Copyupgraded to2.13- now uses 3-arg open ๐ฅ
File::DosGlobupgraded to1.01File::Findupgraded to version1.13File::Globupgraded to version1.06- fixes those spurious results you were getting with brackets inside braces
File::Pathupgraded to version2.07_02File::Specupgraded to version3.29- handles bad arguments way better now
- some platform specific improvements too (VMS and Cygwin said hi ๐), plus an optimisation on
abs2relwhen it's handling both relative arguments at once
File::statupgraded to version1.01File::Tempupgraded to version0.20filetestupgraded to version1.02Filter::Util::Callupgraded to version1.07Filter::Simpleupgraded to version0.83FindBinupgraded to version1.49GDBM_Fileupgraded to version1.09Getopt::Longupgraded to version2.37Getopt::Stdupgraded to version1.06Hash::Utilupgraded to version0.06ifupgraded to version0.05IOupgraded to version1.23- reduced the number of calls to
getpeernameinIO::Socket
- reduced the number of calls to
IPC::Openupgraded to version1.03IPC::Open3upgraded to version1.03IPC::SysVupgraded to version2.00libupgraded to version0.61- no more warning about loading .par files, we love to see it ๐
libnetupgraded to version1.22List::Utilupgraded to1.19Locale::Maketextupgraded to1.13Math::BigFloatupgraded to version1.60Math::BigIntupgraded to version1.89Math::BigRatupgraded to version0.22- implements the new
as_floatmethod ๐
- implements the new
Math::Complexupgraded to version1.54.Math::Trigupgraded to version1.18.NDBM_Fileupgraded to version1.07- better g++ handling for systems using GDBM compatibility headers
Net::Pingupgraded to version2.35NEXTupgraded to version0.61- fixes several bugs with
NEXTwhen it's working withAUTOLOAD,evalblocks, and inside overloaded stringification
- fixes several bugs with
ODBM_Fileupgraded to1.07openupgraded to1.06opsupgraded to1.02PerlIO::encodingupgraded to version0.11PerlIO::scalarupgraded to version0.06- [RT #40267]
PerlIO::scalardoesn't respect readonly-ness ๐ซ
- [RT #40267]
PerlIO::viaupgraded to version0.05Pod::Htmlupgraded to version1.09Pod::Parserupgraded to version1.35Pod::Usageupgraded to version1.35POSIXupgraded to version1.15POSIXconstants that duplicate ones inFcntlare now imported fromFcntland re-exported, instead ofPOSIXduplicating them itselfPOSIX::removecan remove empty directoriesPOSIX::setlocaleis safer to call multiple timesPOSIX::SigRtwas added, which gives you access to POSIX realtime signal functionality on systems that support it โจ
reupgraded to version0.06_01Safeupgraded to version2.16Scalar::Utilupgraded to1.19SDBM_Fileupgraded to version1.06SelfLoaderupgraded to version1.17Shellupgraded to version0.72sigtrapupgraded to version1.04Socketupgraded to version1.81- this fixes an optimistic use of
gethostbyname
- this fixes an optimistic use of
Storableupgraded to2.19Switchupgraded to version2.13Sys::Syslogupgraded to version0.27Term::ANSIColorupgraded to version1.12Term::Capupgraded to version1.12Term::ReadLineupgraded to version1.03Test::Builderupgraded to version0.80Test::Harnessupgraded version to2.64- this makes it able to handle newlines
Test::Moreupgraded to version0.80Test::Simpleupgraded to version0.80Text::Balancedupgraded to version1.98Text::ParseWordsupgraded to version3.27Text::Soundexupgraded to version3.03Text::Tabsupgraded to version2007.1117Text::Wrapupgraded to version2006.1117Threadupgraded to version2.01Thread::Semaphoreupgraded to version2.09Thread::Queueupgraded to version2.11- you can now add complex structures (like a hash of hashes, no big deal) to queues
- you can now dequeue multiple items at once
- new methods to inspect and manipulate queues:
peek,insertandextract๐
Tie::Handleupgraded to version4.2Tie::Hashupgraded to version1.03Tie::Memoizeupgraded to version1.1Tie::Memoize::EXISTSnow correctly caches its results
Tie::RefHashupgraded to version1.38Tie::Scalarupgraded to version1.01Tie::StdHandleupgraded to version4.2Time::gmtimeupgraded to version1.03Time::Localupgraded to version1.1901Time::HiResupgraded to version1.9715with various build improvements (VMS included!) and minor platform-specific bug fixes (HP-UX 11 ia64 included)threadsupgraded to1.71- new thread state information methods:
is_running,is_detachedandis_joinable. Thelistmethod got enhanced to return running or joinable threads - new thread signal method:
kill - you can now specify thread stack size
- you can now control thread exiting behavior. A new
exitmethod was added
- new thread state information methods:
threads::sharedupgraded to version1.27- smaller and faster implementation that eliminates one internal structure and the level of indirection that came with it ๐ฆ
- user locks are now stored in a safer manner
- new function
shared_clonecreates a copy of an object, leaving shared elements as-is and deep-cloning non-shared elements - added the new
is_sharedmethod
Unicode::Normalizeupgraded to version1.02Unicode::UCDupgraded to version0.25warningsupgraded to version1.05_01Win32upgraded to version0.38- added the new function
GetCurrentProcessId, which returns the regular Windows process identifier of the current process, even when you call it from inside a fork
- added the new function
XSLoaderupgraded to version0.10XS::APItestandXS::Typemapare for internal use only and are therefore no longer installed. Many more tests have been added toXS::APItest.
๐ ๏ธ UTILITY CHANGES ๐ ๏ธ
๐
debugger upgraded to version 1.31
- Andreas Kรถnig contributed two functions to save and load the debugger history โจ
NEXT::AUTOLOADno longer emits warnings under the debugger- The debugger should now correctly find the tty device on OS X 10.5 and VMS when the program
forks - LVALUE subs now work inside the debugger ๐
๐ perlthanks
Perl 5.8.9 adds a new utility perlthanks, which is a variant of perlbug, but for sending non-bug-reports to the authors and maintainers of Perl. Getting nothing but bug reports can become a bit demoralising โ we'll see if this changes things ๐ญ
๐ perlbug
perlbug now checks if you're reporting about a non-core module and suggests you report it to the CPAN author instead.
๐ h2xs
- won't define an empty string as a constant [RT #25366]
- has examples for
h2xs -X
๐ h2ph
- now attempts to deal sensibly with the difference in path implications between
""and<>quoting in#includestatements - now generates correct code for
#if defined A || defined B[RT #39130]
๐ NEW DOCUMENTATION ๐
As usual, the documentation received its share of corrections, clarifications and other nitfixes. More "" tags were added for indexing.
perlunitut is a tutorial written by Juerd Waalboer on Unicode-related terminology and how to correctly handle Unicode in Perl scripts.
perlunicode is updated in section user defined properties.
perluniintro has been updated in the example of detecting data that is not valid in particular encoding.
perlcommunity provides an overview of the Perl Community along with further resources.
CORE documents the pseudo-namespace for Perl's core routines.
๐ Changes to Existing Documentation ๐
okay besties, the docs got a whole glow-up, let's goooo ๐ฆ
perlglossarynow adds deprecated modules and features, plus modules that are to be dropped.perlhackhas been updated and got resources on smoke testing added. obsessed.- The Perl FAQs (
perlfaq1..perlfaq9) have been updated. all nine of them, yes queen ๐ธ perlcheatis updated with better details on\w,\d, and\s.perldebugis updated with information on how to call the debugger.perldiagdocumentation updated with subroutine with an ampersand on the argument toexistsanddelete, and also several terminology updates on warnings.perlforkdocuments the limitation ofexecinside pseudo-processes.perlfunc:- Documentation is fixed in section
callerandpop. - Function
alarmnow mentionsTime::HiRes::ualarmin preference toselect. - Regarding precedence in
-X, filetest operators are the same as unary operators, but not regarding parsing and parentheses (spotted by Eirik Berg Hanssen). reversefunction documentation received scalar context examples.
- Documentation is fixed in section
perllocaledocumentation is adjusted for number localization andPOSIX::setlocaleto fix Debian bug #379463.perlmodlibis updated withCPAN::API::HOWTOandSys::Syslog::win32::Win32.perlredocumentation updated to reflect the differences between[[:xxxxx:]]and\p{IsXxxxx}matches. Also added section on/gand/cmodifiers.perlregutsdescribe the internals of the regular expressions engine. It has been contributed by Yves Orton. thank you king ๐perlrebackslashdescribes all perl regular expression backslash and escape sequences.perlrecharclassdescribes the syntax and use of character classes in Perl Regular Expressions.perlrunis updated to clarify on the hash seedPERL_HASH_SEED. Also more information in options-xand-u.perlsubexample is updated to use a lexical variable foropendirsyntax.perlvarfixes confusion about real GID$(and effective GID$).- Perl thread tutorial example is fixed in section "Queues: Passing Data Around" in
perlthrtutandperlthrtut. perlhackdocumentation extensively improved by Jarkko Hietaniemi and others.perltootprovides information on modifying@UNIVERSAL::ISA.perlportdocumentation extended to include differentkill(-9, ...)semantics on Windows. It also clearly statesdumpis not supported on Win32 and cygwin.INSTALLhas been updated and modernised.
๐ฅ Performance Enhancements ๐ฅ
speed speed speed, the way perl went zoom this release? it's giving main character energy fr fr ๐
- The default since perl 5.000 has been for perl to create an empty scalar with every new typeglob. The increased use of lexical variables means that most are now unused. Thanks to Nicholas Clark's efforts, Perl can now be compiled with
-DPERL_DONT_CREATE_GVSVto avoid creating these empty scalars. This will significantly decrease the number of scalars allocated for all configurations, and the number of scalars that need to be copied for ithread creation. Whilst this option is binary compatible with existing perl installations, it does change a long-standing assumption about the internals, hence it is not enabled by default, as some third party code may rely on the old behaviour.
We would recommend testing with this configuration on new deployments of perl, particularly for multi-threaded servers, to see whether all third party code is compatible with it, as this configuration may give useful performance improvements. For existing installations we would not recommend changing to this configuration unless thorough testing is performed before deployment.
bestie listen to me on this one โ new deployments? test it, it might be a huge W. existing installs? do NOT just flip it on without testing first. no cap. ๐ญ
diagnosticsno longer uses$&, which results in large speedups for regexp matching in all code using it.- Regular expressions classes of a single character are now treated the same as if the character had been used as a literal, meaning that code that uses char-classes as an escaping mechanism will see a speedup. (Yves Orton)
- Creating anonymous array and hash references (i.e.
[]and{}) now incurs no more overhead than creating an anonymous list or hash. Nicholas Clark provided changes with a saving of two ops and one stack push, which was measured as a slightly better than 5% improvement for these operations. ate fr ๐ - Many calls to strlen() have been eliminated, either because the length was already known, or by adopting or enhancing APIs that pass lengths. This has been aided by the adoption of a my_sprintf() wrapper, which returns the correct C89 value - the length of the formatted string. Previously we could not rely on the return value of sprintf(), because on some ancient but extant platforms it still returns
char *. indexis now faster if the search string is stored in UTF-8 but only contains characters in the Latin-1 range.- The Unicode swatch cache inside the regexp engine is now used. (the lookup had a key mismatch, present since the initial implementation). [RT #42839] ๐ imagine an oopsie from day one
๐ Installation and Configuration Improvements ๐
๐ Relocatable installations ๐
There is now Configure support for creating a relocatable perl tree. If you Configure with -Duserelocatableinc, then the paths in @INC (and everything else in %Config) can be optionally located via the path of the perl executable. pretty iconic honestly โจ
At start time, if any paths in @INC or Config that Configure marked as relocatable (by starting them with .../), then they are prefixed the directory of $^X. This allows the relocation can be configured on a per-directory basis, although the default with -Duserelocatableinc is that everything is relocated. The initial install is done to the original configured prefix.
๐ ๏ธ Configuration improvements ๐ ๏ธ
Configure is now better at removing temporary files. Tom Callaway (from RedHat) also contributed patches that complete the set of flags passed to the compiler and the linker, in particular that -fPIC is now enabled on Linux. It will also croak when your /dev/null isn't a device. ๐ค as it should
A new configuration variable d_pseudofork has been to Configure, and is available as $Config{d_pseudofork} in the Config module. This distinguishes real fork support from the pseudofork emulation used on Windows platforms.
Config.pod and config.sh are now placed correctly for cross-compilation.
$Config{useshrplib} is now 'true' rather than 'yes' when using a shared perl library.
๐ง Compilation improvements ๐ง
Parallel makes should work properly now, although there may still be problems if make test is instructed to run in parallel.
Many compilation warnings have been cleaned up. A very stubborn compiler warning in S_emulate_eaccess() was killed after six attempts. g++ support has been tuned, especially for FreeBSD.
mkppport has been integrated, and all ppport.h files in the core will now be autogenerated at build time (and removed during cleanup). autogenerated and self-cleaning, she's so organized ๐
๐ Installation improvements ๐
installman now works with -Duserelocatableinc and DESTDIR.
installperl no longer installs:
- static library files of statically linked extensions when a shared perl library is being used. (They are not needed. See "Windows" below).
SIGNATUREandPAUSE*.pub(CPAN files)NOTESandPATCHING(ExtUtils files)perlldandld2(Cygwin files)
๐ฆ Platform Specific Changes ๐ฆ
There are improved hints for AIX, Cygwin, DEC/OSF, FreeBSD, HP/UX, Irix 6 Linux, MachTen, NetBSD, OS/390, QNX, SCO, Solaris, SunOS, System V Release 5.x (UnixWare 7, OpenUNIX 8), Ultrix, UMIPS, uts and VOS. that is a LOT of platforms, she's booked and busy
FreeBSD
- Drop
-std=c89and-ansiif usinglong longas the main integral type, else in FreeBSD 6.2 (and perhaps other releases), system headers do not declare some functions required by perl.
Solaris
- Starting with Solaris 10, we do not want versioned shared libraries, because those often indicate a private use only library. These problems could often be triggered when SUNWbdb (Berkeley DB) was installed. Hence if Solaris 10 is detected set
ignore_versioned_solibs=y.
VMS
- Allow IEEE math to be deselected on OpenVMS I64 (but it remains the default).
- Record IEEE usage in
config.h - Help older VMS compilers by using
ccflagswhen buildingmunchconfig.exe. - Don't try to build old
Threadextension on VMS when-Duseithreadshas been chosen. - Passing a raw string of
NaNto nawk causes a core dump - so the string has been changed to*NaN*๐ that is SUCH a niche curse t/op/stat.ttests will now test hard links on VMS if they are supported.
Windows
- When using a shared perl library
installperlno longer installs static library files, import library files and export library files (of statically linked extensions) and empty bootstrap files (of dynamically linked extensions). This fixes a problem building PAR-Packer on Win32 with a debug build of perl. - Various improvements to the win32 build process, including support for Visual C++ 2005 Express Edition (aka Visual C++ 8.x).
perl.exewill now have an icon if built with MinGW or Borland. she has a face now ๐- Improvements to the
perl-static.exebuild process. - Add Win32 makefile option to link all extensions statically.
- The
WinCEdirectory has been merged into theWin32directory. setlocaletests have been re-enabled for Windows XP onwards.
๐ Selected Bug Fixes ๐
Okay bestie, this is the part where perl got its glow-up. Like, a lot of glow-up. Buckle up. ๐
โจ Unicode โจ
So many bugs related to the internal Unicode implementation (UTF-8) got fixed. Like, so many. And the big ones โ the long standing bugs related to returning Unicode via tie, overloading, or $@ โ they're gone now. Some of them had literally never even been reported, which is giving ghost-hunting energy fr. ๐ป
unpack will internally convert the string back from UTF-8 on numeric types. This is a compromise between the full consistency now in 5.10, and the current behaviour, which is often used as a "feature" on string types. So, yes, it's a vibe compromise, and yes, we're admitting it. ๐
Using :crlf and UTF-16 IO layers together will now work. Friends again. ๐ซถ
Also fixed: problems with split, Unicode /\s+/ and / \0/.
Fixed bug RT #40641 โ encoding of Unicode characters in regular expressions. Nasty little thing. Gone.
Fixed a bug where using certain patterns in a regexp led to a panic. [RT #45337]
Perl no longer segfaults (due to infinite internal recursion) if the locale's character is not UTF-8 [RT #41442]:
use open ':locale';
print STDERR "\x{201e}"; # „
๐ PerlIO ๐
Inconsistencies have been fixed in the reference counting PerlIO uses to keep track of Unix file descriptors, and the API used by XS code to manage getting and releasing FILE *s. Two-for-one, obsessed. โจ
๐ฎ Magic ๐ฎ
Several bugs have been fixed in Magic โ that's the internal system used to implement features such as tie, tainting and threads sharing. Spooky name, absolutely real though.
undef @arrayon a tied array now correctly calls theCLEARmethod. As it should, periodt.- Some of the bitwise ops were not checking whether their arguments were magical before using them. [RT #24816]
- Magic is no longer invoked twice by the expression
\&$xโ once was plenty bestie ๐ญ - A bug with assigning large numbers and tainting has been resolved. [RT #40708]
- A new entry has been added to the MAGIC vtable โ
svt_local. This is used when copying magic to the new value duringlocal, allowing certain problems with localising shared variables to be resolved.
For the implementation details, see "Magic Virtual Tables" in perlguts. ๐
๐ Reblessing overloaded objects now works ๐
Ngl this one is a whole saga, so let's break it down.
Internally, perl object-ness is on the referent, not the reference โ even though methods can only be called via a reference. But the original implementation of overloading stored flags related to overloading on the reference, relying on the flags being copied when the reference was copied, or set at the creation of a new reference. Which manifests in a bug:
If you rebless an object from a class that has overloading into one that does not, then any other existing references think that they (still) point to an overloaded object, choose these C code paths, and then throw errors. Analogously, blessing into an overloaded class when other references exist will result in them not using overloading. Just straight-up lying to you. ๐
The implementation has been fixed for 5.10, but this fix changes the semantics of flag bits, so it is not binary compatible, so it can't be applied to 5.8.9. However, 5.8.9 has a work-around that implements the same bug fix. If the referent has multiple references, then all the other references are located and corrected. A full search is avoided whenever possible by scanning lexicals outwards from the current subroutine, and the argument stack. Clever, honestly. Iconic. โญ
And then there's the lore. ๐ A certain well known Linux vendor applied incomplete versions of this bug fix to their /usr/bin/perl and then prematurely closed bug reports about performance issues without consulting back upstream. Not being enough, they then proceeded to ignore the necessary fixes to these unreleased changes for 11 months, until massive pressure was applied by their long-suffering paying customers, catalysed by the failings being featured on a prominent blog and Slashdot. We do not gatekeep the receipts here. ๐
๐ strict now propagates correctly into string evals ๐
Under 5.8.8 and earlier:
$ perl5.8.8 -e 'use strict; eval "use foo bar" or die $@'
Can't locate foo.pm in @INC (@INC contains: ... .) at (eval 1) line 2.
BEGIN failed--compilation aborted at (eval 1) line 2.
Under 5.8.9 and later:
$ perl5.8.9 -e 'use strict; eval "use foo bar" or die $@'
Bareword "bar" not allowed while "strict subs" in use at (eval 1) line 1.
This may cause problems with programs that parse the error message and rely on the buggy behaviour. Yes, some of y'all were parsing error strings, and yes, we see you. ๐
๐ฆ Other fixes ๐ฆ
- The tokenizer no longer treats
=cute(and other words beginning with=cut) as a synonym for=cut. Bestie that was never cute, it was chaos. ๐ญ - Calling
CORE::require:CORE::requireandCORE::dowere always parsed asrequireanddowhen they were overridden. This is now fixed. - Stopped memory leak on long
/etc/groupsentries. while (my $x ...) { ...; redo }shouldn'tundef $x. In the presence ofmyin the conditional of a while(), until(), or for(;;) loop, we now add an extra scope to the body so thatredodoesn'tundefthe lexical. Protecting your lexicals, it's giving bodyguard energy. ๐ซถ- The
encodingpragma now correctly ignores anything following an@character in theLC_ALLandLANGenvironment variables. [RT # 49646] - A segfault observed with some gcc 3.3 optimisations is resolved.
- A possible segfault when
unpackused in scalar context with()groups is resolved. [RT #50256] - Resolved issue where
$!could be changed by a signal handler interrupting asystemcall. - Fixed bug RT #37886, symbolic dereferencing was allowed in the argument of
definedeven under the influence ofuse strict 'refs'. - Fixed bug RT #43207, where
lc/ucinsidesortaffected the return value. - Fixed bug RT #45607, where
*{"BONK"} = \&{"BONK"}didn't work correctly. - Fixed bug RT #35878, croaking from a XSUB called via
goto &xsubcorrupts perl internals. - Fixed bug RT #32539, DynaLoader.o is moved into libperl.so to avoid the need to statically link DynaLoader into the stub perl executable. With this libperl.so provides everything needed to get a functional embedded perl interpreter to run.
- Fix bug RT #36267 so that assigning to a tied hash doesn't change the underlying hash.
- Fix bug RT #6006, regexp replaces using large replacement variables fail some of the time, i.e. when substitution contains something like
"${10}"(note the bracket) instead of just$10. - Fix bug RT #45053,
Perl_newCONSTSUB()is now thread safe.
๐ธ Platform Specific Fixes ๐ธ
๐ Darwin / MacOS X
- Various improvements to 64 bit builds.
- Mutex protection added in
PerlIOStdio_close()to avoid race conditions. Hopefully this fixes failures in the threads testsfree.tandblocks.t. - Added forked terminal support to the debugger, with the ability to update the window title. Cute AND functional. โจ
๐ง OS/2
- A build problem with specifying
USE_MULTIandUSE_ITHREADSbut withoutUSE_IMP_SYShas been fixed. OS2::REXXupgraded to version 1.04
๐ฆ Tru64
- Aligned floating point build policies for cc and gcc.
๐ RedHat Linux
- Revisited a patch from 5.6.1 for RH7.2 for Intel's icc [RT #7916], added an additional check for
$Config{gccversion}.
โญ Solaris/i386
- Use
-DPTR_IS_LONGwhen using 64 bit integers
๐ VMS
- Fixed
PerlIO::Scalarin-memory file record-style reads. - pipe shutdown at process exit should now be more robust.
- Bugs in VMS exit handling tickled by
Test::Harness2.64 have been fixed. - Fix fcntl() locking capability test in configure.com.
- Replaced
shrplib='define'withuseshrplib='true'on VMS.
๐ฅ Windows
File::Findused to fail when the target directory is a bare drive letter andno_chdiris 1 (the default is 0). [RT #41555]- A build problem with specifying
USE_MULTIandUSE_ITHREADSbut withoutUSE_IMP_SYShas been fixed. - The process id is no longer truncated to 16 bits on some Windows platforms ( http://bugs.activestate.com/show_bug.cgi?id=72443 )
- Fixed bug RT #54828 in perlio.c where calling
binmodeon Win32 and Cygwin may cause a segmentation fault.
๐ Smaller fixes ๐
- It is now possible to overload
eqwhen usingnomethod. - Various problems using
overloadwith 64 bit integers corrected. - The reference count of
PerlIOfile descriptors is now correctly handled. - On VMS, escaped dots will be preserved when converted to Unix syntax.
keys %+no longer throws an 'ambiguous' warning.- Using
#!perl -dcould trigger an assertion, which has been fixed. - Don't stringify tied code references in @INC when calling
require. - Code references in @INC report the correct file name when
__FILE__is used. - Width and precision in sprintf didn't handle characters above 255 correctly. [RT #40473]
- List slices with indices out of range now work more consistently. [RT #39882]
- A change introduced with perl 5.8.1 broke the parsing of arguments of the form
-foo=barwith the-son the#!line. This has been fixed. See http://bugs.activestate.com/show_bug.cgi?id=43483 tr///is now threadsafe. Previously it was storing a swash inside its OP, rather than in a pad.- pod2html labels anchors more consistently and handles nested definition lists better.
threadscleanup veto has been extended to include perl_free() and perl_destruct()- On some systems, changes to
$ENV{TZ}would not always be respected by the underlying calls to localtime_r(). Perl now forces the inspection of the environment on these systems. - The special variable
$^Ris now more consistently set when executing regexps using the(?{...})construct. In particular, it will still be set even if backreferences or optional sub-patterns(?:...)?are used.
โจ New or Changed Diagnostics โจ
New glow-ups in the error-message department, bestie. Some of these are brand new, some just got way more useful ๐
panic: sv_chop %s
Okay so this is a new fatal error, and it fires when the C routine Perl_sv_chop() gets handed a position that's not inside the scalar's string buffer. Translation: some buggy XS code did a bad thing, and at that point there's literally no coming back. Recovery is not possible, periodt. ๐ซ
Maximal count of pending signals (%s) exceeded
Another new fatal error. It happens when the perl process has to abort because there are just too many pending signals piled up โ which is bound to stop perl from safely handling any further incoming signals. It's giving overwhelmed and that's the whole point. ๐ญ
panic: attempt to call %s in %s
New fatal error. Triggers when the ACL version file test operator gets used somewhere it's not available on the current platform. Ngl, earlier checks mean you should never be able to hit this one. ๐ฆ
FETCHSIZE returned a negative value
New error, and it's saying: your tied array claimed it has a negative number of elements. Bestie. That's not a thing. ๐
Can't upgrade %s (%d) to %d
So previously, the internal error from the SV upgrade code was the much less informative Can't upgrade that kind of scalar. Now it actually tells you the current internal type and the new type that was requested. Character development, honestly. ๐
%s argument is not a HASH or ARRAY element or a subroutine
This gets thrown if an invalid argument is handed to exists, and now it correctly includes or a subroutine. [RT #38955] โจ
Cannot make the non-overridable builtin %s fatal
This error in Fatal used to be so vague โ it didn't show the name of the builtin in question at all. Now it does (that's the %s up there). Slay. ๐
Unrecognized character '%s' in column %d
Before this, the error didn't state the column. Now it does. We love a little precision. ๐
Offset outside string
This one can now also be generated by a seek on a file handle using PerlIO::scalar. Lowkey a glow-up. ๐ธ
Invalid escape in the specified encoding in regexp; marked by <-- HERE in m/%s/
New error! It came in as part of the fix to RT #40641, so that encoding of Unicode characters inside regular expression comments actually gets handled properly. โจ
Your machine doesn't support dump/undump
A more informative fatal error, issued when you call dump on Win32 and Cygwin. Like โ the whole point of dump is to abort with a core dump, and core dumps can't even be produced on those platforms, so this beats silently exiting by a mile. ๐
๐ง Changed Internals ๐ง
Okay this is the messy-behind-the-scenes section, and it ate. ๐
- The perl sources can now be compiled with a C++ compiler instead of a C compiler. One necessary implementation detail: under C++, the macro
XSused to define XSUBs now includes anextern "C"definition. A side effect of this is that C++ code which used the construction
typedef XS(SwigPerlWrapper);
now needs to be written
typedef XSPROTO(SwigPerlWrapper);
using the new XSPROTO macro, in order to compile. C extensions are unaffected, although C extensions are encouraged to use XSPROTO too. This change was already present in the 5.10.0 release of perl, so any actively maintained code that happened to use this construction should already have been adapted. Code that needs changing will fail with a compilation error. ๐ฅ
setmagic on localizing/assigning to a magic variable will now only trigger for container magics โ so it will for%ENVor%SIG, but not for$#array. Vibe check passed. โจ- The new API macro
newSVpvs()can be used in place of constructions such asnewSVpvn("ISA", 3). It takes a single string constant, and at C compile time it determines that string's length. Obsessed. ๐ - The new API function
Perl_newSV_type()can be used as a more efficient replacement of the common idiom
sv = newSV(0);
sv_upgrade(sv, type);
- Similarly
Perl_newSVpvn_flags()can be used to combinePerl_newSVpv()withPerl_sv_2mortal(), or the equivalentPerl_sv_newmortal()withPerl_sv_setpvn(). ๐ฆ - Two new macros
mPUSHs()andmXPUSHs()are added, to make it easier to push mortal SVs onto the stack. They were then used to fix several bugs where values on the stack had not been mortalised. No cap. ๐ - A
Perl_signbit()function was added to test the sign of anNV. It maps to the system one when available. Perl_av_reify(),Perl_lex_end(),Perl_mod(),Perl_op_clear(),Perl_pop_return(),Perl_qerror(),Perl_setdefout(),Perl_vivify_defelem()andPerl_yylex()are now visible to extensions. This was required to allowData::Aliasto work on Windows. ๐Perl_find_runcv()is now visible to perl core extensions. This was required to allowSub::Currentto work on Windows.ptr_table*functions are now available in unthreaded perl.Storabletakes advantage of this. ๐- There have been many small cleanups made to the internals. In particular,
Perl_sv_upgrade()has been simplified considerably, with a straight-through code path that usesmemset()andmemcpy()to initialise the new body, rather than assignment via multiple temporary variables. It has also benefited from simplification and de-duplication of the arena management code. Gorgeous. ๐ธ - A lot of small improvements in the code base were made due to reports from the Coverity static code analyzer.
- Corrected use and documentation of
Perl_gv_stashpv(),Perl_gv_stashpvn(),Perl_gv_stashsv()functions โ heads up, the last parameter is a bitmask, not boolean. ๐ PERL_SYS_INIT,PERL_SYS_INIT3andPERL_SYS_TERMmacros have been changed into functions.PERLSYS_TERMno longer requires a context.PerlIO_teardown()is now called without a context, and debugging output in this function has been disabled, because that output required that an interpreter was present โ which is an invalid assumption at termination time. ๐ง- All compile time options which affect binary compatibility have been grouped together into a global variable (
PL_bincompat_options). โจ - The values of
PERL_REVISION,PERL_VERSIONandPERL_SUBVERSIONare now baked into global variables (and hence into any shared perl library). Additionally, underMULTIPLICITY, the perl executable now records the size of the interpreter structure (total, and for this version). Coupled withPL_bincompat_options, this will allow 5.8.10 (and later), when compiled with a shared perl library, to perform sanity checks inmain()to verify that the shared library is indeed binary compatible. Iconic. ๐ - Symbolic references can now have embedded NULs. The new public function
Perl_get_cvn_flags()can be used in extensions if you have to handle them. ๐
๐งน Macro cleanups ๐งน
The core code, and XS code in ext that is not dual-lived on CPAN, no longer uses the macros PL_na, NEWSV(), Null(), Nullav, Nullcv, Nullhv, Nullhv etc. Their use is discouraged in new code โ particularly PL_na, which is a small performance hit. Sorry bestie, it's just not the vibe anymore. ๐
๐งช New Tests ๐งช
Many modules updated from CPAN incorporate new tests. Some core specific tests have been added โ here's the whole lineup, no skipping: ๐
ext/DynaLoader/t/DynaLoader.tโ Tests for theDynaLoadermodule.t/comp/fold.tโ Tests for compile-time constant folding.t/io/pvbm.tโ Tests incorporated from 5.10.0 which check that there is no unexpected interaction between the internal typesPVBMandPVGV.t/lib/proxy_constant_subs.tโ Tests for the new form of constant subroutines.t/op/attrhand.tโ Tests forAttribute::Handlers.t/op/dbm.tโ Tests fordbmopen.t/op/inccode-tie.tโ Calls all tests in t/op/inccode.t after first tying@INC.t/op/incfilter.tโ Tests for source filters returned from code references in@INC.t/op/kill0.tโ Tests for RT #30970.t/op/qrstack.tโ Tests for RT #41484.t/op/qr.tโ Tests for theqr//construct.t/op/regexp_qr_embed.tโ Tests for theqr//construct within another regexp.t/op/regexp_qr.tโ Tests for theqr//construct.t/op/rxcode.tโ Tests for RT #32840.t/op/studytied.tโ Tests forstudyon tied scalars.t/op/substT.tโ Tests forsubstrun under-Tmode.t/op/symbolcache.tโ Tests forundefanddeleteon stash entries that are bound to subroutines or methods.t/op/upgrade.tโ Tests forPerl_sv_upgrade().t/mro/package_aliases.tโ MRO tests forisaand package aliases.t/pod/twice.tโ Tests for callingPod::Parsertwice.t/run/cloexec.tโ Tests for inheriting file descriptors acrossexec(close-on-exec).t/uni/cache.tโ Tests for the UTF-8 caching code.t/uni/chr.tโ Test that strange encodings do not upsetPerl_pp_chr().t/uni/greek.tโ Tests for RT #40641.t/uni/latin2.tโ Tests for RT #40641.t/uni/overload.tโ Tests for returning Unicode from overloaded values.t/uni/tie.tโ Tests for returning Unicode from tied variables.
Genuinely so many tests. The coverage is giving main character energy. ๐
โ ๏ธ Known Problems โ ๏ธ
There are no known new bugs. Periodt. โจ
However โ and this is the real talk part โ programs that rely on bugs that have been fixed will have problems. Also, many bug fixes present in 5.10.0 can't be back-ported to the 5.8.x branch, because they require changes that are binary incompatible, or because the code changes are too large and hence too risky to incorporate.
We have only limited volunteer labour, and the maintenance burden is getting increasingly complex. Hence this will be the last significant release of the 5.8.x series. Any future releases of 5.8.x will likely only be to deal with security issues, and platform build failures. So you should look to migrating to 5.10.x, if you have not started already.
Alternatively, if business requirements constrain you to continue to use 5.8.x, you may wish to consider commercial support from firms such as ActiveState. ๐
๐ฅ๏ธ Platform Specific Notes ๐ฅ๏ธ
๐ช Win32 ๐ช
readdir(), cwd(), $^X and @INC now use the alternate (short) filename if the long name is outside the current codepage (Jan Dubois). ๐ธ
Updated Modules
Win32upgraded to version 0.38. Now has a documented 'WinVista' response fromGetOSNameand support for Vista's privilege elevation inIsAdminUser. Support for Unicode characters in path names. Improved cygwin and Win64 compatibility. ๐Win32APIupdated to 0.1001_01killpg()support added toMSWin32(Jan Dubois).File::Spec::Win32upgraded to version 3.2701
๐ง OS/2 ๐ง
Updated Modules
OS2::Processupgraded to 1.03- Ilya Zakharevich has added and documented several
Window*andClipbrd*functions. โจ
- Ilya Zakharevich has added and documented several
OS2::REXX::DLL,OS2::REXXupdated to version 1.03
๐ VMS ๐
Updated Modules
DCLsymupgraded to version 1.03Stdioupgraded to version 2.4VMS::XSSymSetupgraded to 1.1.
๐๏ธ Obituary ๐๏ธ
Nick Ing-Simmons, long time Perl hacker, author of the Tk and Encode modules, perlio.c in the core, and 5.003_02 pumpking, died of a heart attack on 25th September 2006. He will be missed. ๐
๐ Acknowledgements ๐
Some of the work in this release was funded by a TPF grant, bestie. Real money, real support, real slay. โจ
Steve Hay was out here working behind the scenes, quietly figuring out the causes of the differences between core modules, their CPAN releases, and previous core releases, and the best way to rectify them. And he does not want to do it again. Honestly? I know this feeling, and I'm very glad he did it this time, instead of me. ๐ญ๐ซถ
Paul Fenwick assembled a team of 18 volunteers, who broke the back of writing this document. In particular, Bradley Dean, Eddy Tan, and Vincent Pit provided half the team's contribution. Half!! From three people!! ate, no cap. ๐
Schwern verified the list of updated module versions, correcting quite a few errors that I (and everyone else) had missed โ both wrongly stated module versions, and changed modules that had not been listed. Doing the thankless accuracy work, iconic behaviour fr fr. ๐
The crack Berlin-based QA team of Andreas Kรถnig and Slaven Rezic tirelessly re-built snapshots, tested most everything CPAN against them, and then identified the changes responsible for any module regressions โ ensuring that several show-stopper bugs were stomped before the first release candidate was cut. Absolute main character energy, we love to see it. ๐ฅ
The other core committers contributed most of the changes, and applied most of the patches sent in by the hundreds of contributors listed in AUTHORS.
And obviously, Larry Wall, without whom we wouldn't have Perl. The origin. The blueprint. The moment. ๐
๐ 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://bugs.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. 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. You can browse and search the Perl 5 bugs at http://bugs.perl.org/
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.
โ ๏ธ Okay bestie, listen: please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN. That's the rule, okay? Periodt. ๐
๐ SEE ALSO ๐
- The
Changesfile for 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 page, bestie ๐ go debug something iconic โจ ๐ฆ
This was perl v5.44.0, dated 2026-10-17, from PERL589DELTA(1perl). Mwah, take care of yourselves out there. ๐
๐ฆ 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