PERL5120DELTA(1)
π NAME π
okay so this whole page is perl5120delta β it's from the Perl Programmers Reference Guide, and it's literally the tea on what's new for perl v5.12.0. π«Ά
πΈ DESCRIPTION πΈ
bestie, this doc spills all the differences between the 5.10.0 release and the 5.12.0 release. β¨
ngl, a lot of the bug fixes that landed in 5.12.0 were already shipped in the 5.10.1 maintenance release. no cap.
if you wanna see that whole list of changes, it's chillin' in the 5.10.1 release notes (perl5101delta). go look, iykyk. π
β¨ CORE ENHANCEMENTS β¨
π New package NAME VERSION syntax π
this new syntax lets a module author set the $VERSION of a namespace right when the namespace gets declared with package. it literally eliminates the need for our $VERSION = ... and all those similar constructs. periodt. like:
package Foo::Bar 1.23;
# $Foo::Bar::VERSION == 1.23
there are so many advantages to this, bestie:
$VERSIONis parsed in exactly the same way asuse NAME VERSION$VERSIONis set at compile time$VERSIONis a version object that provides proper overloading of comparison operators, so comparing$VERSIONto decimal (1.23) or dotted-decimal (v1.2.3) version numbers works correctly- eliminates
$VERSION = ...andeval $VERSIONclutter - since it requires VERSION to be a numeric literal or v-string literal, it can be statically parsed by toolchain modules without
eval, the wayMM->parse_versiondoes for$VERSION = ...
it does not break old code that only has package NAME, but code that uses package NAME VERSION will need to be restricted to perl 5.12.0 or newer. this is analogous to the change to open from two-args to three-args. users requiring the latest Perl will benefit, and maybe after several years it'll just become standard practice. π
however β and this is important β package NAME VERSION requires a new, 'strict' version number format. see "Version number formats" for the details. π«Ά
π₯ The ... operator π₯
a brand new operator, ..., nicknamed the Yada Yada operator, has been added. it's meant to mark placeholder code that is not yet implemented. see "Yada Yada Operator" in perlop. π
π Implicit strictures π
using the use VERSION syntax with a version number greater than or equal to 5.11.0 will lexically enable strictures, just like use strict would do (on top of enabling features, obviously). so this:
use 5.12.0;
means this:
use strict;
use feature ':5.12';
slay. β¨
π¦ Unicode improvements π¦
Perl 5.12 comes with Unicode 5.2, the latest version available to us at the time of release. this version of Unicode was released in October 2009. see http://www.unicode.org/versions/Unicode5.2.0 for further details about what's changed in this version of the standard. see perlunicode for instructions on installing and using other versions of Unicode.
plus, Perl's developers have significantly improved Perl's Unicode implementation. for full details, see "Unicode overhaul" below. π
β Y2038 compliance β
Perl's core time-related functions are now Y2038 compliant. (it may not mean much to you, but your kids will love it!) π
π qr overloading π
it's now possible to overload the qr// operator β that is, conversion to regexp β just like it was already possible to overload conversion to boolean, string or number of objects. it gets invoked when an object appears on the right hand side of the =~ operator, or when it's interpolated into a regexp. see overload. π₯
π Pluggable keywords π
extension modules can now cleanly hook into the Perl parser to define new kinds of keyword-headed expression and compound statement. the syntax following the keyword is defined entirely by the extension. this allows a completely non-Perl sublanguage to be parsed inline, with the correct ops cleanly generated. iconic.
see "PL_keyword_plugin" in perlapi for the mechanism. the Perl core source distribution also includes a new module XS::APItest::KeywordRPN, which implements reverse Polish notation arithmetic via pluggable keywords. this module is mainly used for test purposes, and is not normally installed, but it also serves as an example of how to use the new mechanism.
β οΈ Perl's developers consider this feature to be experimental. we may remove it or change it in a backwards-incompatible way in Perl 5.14. π
π§ APIs for more internals π§
the lowest layers of the lexer and parts of the pad system now have C APIs available to XS extensions. these are necessary to support proper use of pluggable keywords, but they have other uses too. the new APIs are experimental, and only cover a small proportion of what would be necessary to take full advantage of the core's facilities in these areas. it's intended that the Perl 5.13 development cycle will see the addition of a full range of clean, supported interfaces.
β οΈ again: Perl's developers consider this feature experimental. we may remove it or change it in a backwards-incompatible way in Perl 5.14. π
π Overridable function lookup π
where an extension module hooks the creation of rv2cv ops to modify the subroutine lookup process, this now works correctly for bareword subroutine calls. this means that prototypes on subroutines referenced this way will be processed correctly. (previously, bareword subroutine names were initially looked up, for parsing purposes, by an unhookable mechanism, so extensions could only properly influence subroutine names that appeared with an & sigil.) π«Ά
πΈ A proper interface for pluggable Method Resolution Orders πΈ
as of Perl 5.12.0 there's a new interface for plugging and using method resolution orders other than the default linear depth first search. the C3 method resolution order added in 5.10.0 has been re-implemented as a plugin, without changing its Perl-space interface. see perlmroapi for more info. β¨
π \N experimental regex escape π
Perl now supports \N, a new regex escape you can think of as the inverse of \n. it'll match any character that is not a newline, independently from the presence or absence of the single line match modifier /s. it is not usable within a character class. \N{3} means to match 3 non-newlines; \N{5,} means to match at least 5. \N{NAME} still means the character or sequence named NAME, but NAME no longer can be things like 3, or 5,.
this will break a custom charnames translator which allows numbers for character names, since \N{3} will now mean to match 3 non-newline characters, and not the character whose name is 3. (no name defined by the Unicode standard is a number, so only custom translators might be affected.) π
β οΈ Perl's developers are somewhat concerned about possible user confusion with the existing \N{...} construct which matches characters by their Unicode name. consequently, this feature is experimental. we may remove it or change it in a backwards-incompatible way in Perl 5.14. π
π DTrace support π
Perl now has some support for DTrace. see "DTrace support" in INSTALL. π₯
β Support for configure_requires in CPAN module metadata β
both CPAN and CPANPLUS now support the configure_requires keyword in the META.yml metadata file included in most recent CPAN distributions. this lets distribution authors specify configuration prerequisites that must be installed before running Makefile.PL or Build.PL. π
see the documentation for ExtUtils::MakeMaker or Module::Build for more on how to specify configure_requires when creating a distribution for CPAN.
π
each, keys, values are now more flexible π
the each, keys, values function can now operate on arrays. periodt. π
π¦ when as a statement modifier π¦
when is now allowed to be used as a statement modifier. β¨
π $, flexibility π
the variable $, may now be tied. π«Ά
π // in when clauses π
// now behaves like || in when clauses. π
πΈ Enabling warnings from your shell environment πΈ
you can now set -W from the PERL5OPT environment variable. π₯
π delete local π
delete local now allows you to locally delete a hash entry. β
π§ New support for Abstract namespace sockets π§
abstract namespace sockets are a Linux-specific socket type that live in the AF_UNIX family, slightly abusing it to be able to use arbitrary character arrays as addresses: they start with a nul byte and are not terminated by a nul byte, but with the length passed to the socket() system call. π
π 32-bit limit on substr arguments removed π
the 32-bit limit on substr arguments has now been removed. the full range of the system's signed and unsigned integers is now available for the pos and len arguments. slay. π
β¨ Potentially Incompatible Changes β¨
okay bestie, buckle up β this is the part where we talk about stuff that might break your old code. it's giving "we changed things and you need to know" energy. no cap. π
π¨ Deprecations warn by default π¨
So over the years, Perl's devs have deprecated a bunch of language features for various reasons. Now Perl defaults to issuing a warning if you use a deprecated language feature. Many of these have been deprecated for many years. You can find a list of what was deprecated in a given release in the "perl5xxdelta.pod" file for that release.
To disable this in a given lexical scope, use no warnings 'deprecated';. For info about which features are deprecated and explanations of various deprecation warnings, see perldiag. See "Deprecations" below for the list of features and modules Perl's devs have deprecated as part of this release.
π Version number formats π
Acceptable version number formats have been formalized into "strict" and "lax" rules. "package NAME VERSION" takes a strict version number. "UNIVERSAL::VERSION" and the version object constructors take lax version numbers. Providing an invalid version will result in a fatal error. The version argument in "use NAME VERSION" is first parsed as a numeric literal or v-string and then passed to "UNIVERSAL::VERSION" (and must then pass the "lax" format test).
These formats are documented fully in the version module. To a first approximation, a "strict" version number is a positive decimal number (integer or decimal-fraction) without exponentiation or else a dotted-decimal v-string with a leading 'v' character and at least three components. A "lax" version number allows v-strings with fewer than three components or without a leading 'v'. Under "lax" rules, both decimal and dotted-decimal versions may have a trailing "alpha" component separated by an underscore character after a fractional or dotted-decimal component.
The version module adds "version::is_strict" and "version::is_lax" functions to check a scalar against these rules.
π @INC reorganization π
In @INC, "ARCHLIB" and "PRIVLIB" now occur after the current version's "site_perl" and "vendor_perl". Modules installed into "site_perl" and "vendor_perl" will now be loaded in preference to those installed in "ARCHLIB" and "PRIVLIB".
π¦ REGEXPs are now first class π¦
Internally, Perl now treats compiled regular expressions (such as those created with "qr//") as first class entities. Perl modules which serialize, deserialize or otherwise have deep interaction with Perl's internal data structures need to be updated for this change. Most affected CPAN modules have already been updated as of this writing.
π Switch statement changes π
The "given"/"when" switch statement handles complex statements better than Perl 5.10.0 did (these enhancements are also available in 5.10.1 and subsequent 5.10 releases.) There are two new cases where "when" now interprets its argument as a boolean, instead of an expression to be used in a smart match:
πΈ flip-flop operators πΈ
The ".." and "..." flip-flop operators are now evaluated in boolean context, following their usual semantics; see "Range Operators" in perlop.
Note that, as in perl 5.10.0, "when (1..10)" will not work to test whether a given value is an integer between 1 and 10; you should use "when ([1..10])" instead (note the array reference).
However, contrary to 5.10.0, evaluating the flip-flop operators in boolean context ensures it can now be useful in a when(), notably for implementing bistable conditions, like in:
when (/^=begin/ .. /^=end/) {
# do something
}
π defined-or operator π
A compound expression involving the defined-or operator, as in "when (expr1 // expr2)", will be treated as boolean if the first expression is boolean. (This just extends the existing rule that applies to the regular or operator, as in "when (expr1 || expr2)".)
π§ Smart match changes π§
Since Perl 5.10.0, Perl's developers have made a number of changes to the smart match operator. These, of course, also alter the behaviour of the switch statements where smart matching is implicitly used. These changes were also made for the 5.10.1 release, and will remain in subsequent 5.10 releases.
π Changes to type-based dispatch π
The smart match operator "~~" is no longer commutative. The behaviour of a smart match now depends primarily on the type of its right hand argument. Moreover, its semantics have been adjusted for greater consistency or usefulness in several cases. While the general backwards compatibility is maintained, several changes must be noted:
- Code references with an empty prototype are no longer treated specially. They are passed an argument like the other code references (even if they choose to ignore it).
"%hash ~~ sub {}"and"@array ~~ sub {}"now test that the subroutine returns a true value for each key of the hash (or element of the array), instead of passing the whole hash or array as a reference to the subroutine.- Due to the commutativity breakage, code references are no longer treated specially when appearing on the left of the
"~~"operator, but like any vulgar scalar. "undef ~~ %hash"is always false (since"undef"can't be a key in a hash). No implicit conversion to""is done (as was the case in perl 5.10.0)."$scalar ~~ @array"now always distributes the smart match across the elements of the array. It's true if one element in @array verifies"$scalar ~~ $element". This is a generalization of the old behaviour that tested whether the array contained the scalar.
The full dispatch table for the smart match operator is given in "Smart matching in detail" in perlsyn.
π Smart match and overloading π
According to the rule of dispatch based on the rightmost argument type, when an object overloading "~~" appears on the right side of the operator, the overload routine will always be called (with a 3rd argument set to a true value, see overload.) However, when the object will appear on the left, the overload routine will be called only when the rightmost argument is a simple scalar. This way, distributivity of smart match across arrays is not broken, as well as the other behaviours with complex types (coderefs, hashes, regexes). Thus, writers of overloading routines for smart match mostly need to worry only with comparing against a scalar, and possibly with stringification overloading; the other common cases will be automatically handled consistently.
"~~" will now refuse to work on objects that do not overload it (in order to avoid relying on the object's underlying structure). (However, if the object overloads the stringification or the numification operators, and if overload fallback is active, it will be used instead, as usual.)
π₯ Other potentially incompatible changes π₯
- The definitions of a number of Unicode properties have changed to match those of the current Unicode standard. These are listed above under
"Unicode overhaul". This change may break code that expects the old definitions. - The boolkeys op has moved to the group of hash ops. This breaks binary compatibility.
- Filehandles are now always blessed into
"IO::File".
The previous behaviour was to bless Filehandles into FileHandle (an empty proxy class) if it was loaded into memory and otherwise to bless them into "IO::Handle".
- The semantics of
"use feature :5.10*"have changed slightly. See"Modules and Pragmata"for more information. - Perl's developers now use git, rather than Perforce. This should be a purely internal change only relevant to people actively working on the core. However, you may see minor difference in perl as a consequence of the change. For example in some of details of the output of
"perl -V". See perlrepository for more information. - As part of the
"Test::Harness"2.x to 3.x upgrade, the experimental"Test::Harness::Straps"module has been removed. See"Modules and Pragmata"for more details. - As part of the
"ExtUtils::MakeMaker"upgrade, the"ExtUtils::MakeMaker::bytes"and"ExtUtils::MakeMaker::vmsish"modules have been removed from this distribution. "Module::CoreList"no longer contains the%:patchlevelhash."length undef"now returns undef.- Unsupported private C API functions are now declared
"static"to prevent leakage to Perl's public API. - To support the bootstrapping process, miniperl no longer builds with UTF-8 support in the regexp engine.
This allows a build to complete with PERL_UNICODE set and a UTF-8 locale. Without this there's a bootstrapping problem, as miniperl can't load the UTF-8 components of the regexp engine, because they're not yet built.
- miniperl's @INC is now restricted to just
"-I...", the split of$ENV{PERL5LIB}, and""."" - A space or a newline is now required after a
"#line XXX"directive. - Tied filehandles now have an additional method EOF which provides the EOF type.
- To better match all other flow control statements,
"foreach"may no longer be used as an attribute. - Perl's command-line switch
"-P", which was deprecated in version 5.10.0, has now been removed. The CPAN module"Filter::cpp"can be used as an alternative.
π Deprecations π
okay bestie, so sometimes the Perl devs gotta deprecate features or modules we used to ship as part of the core distribution. They are SO aware of the pain and frustration that a backwards-incompatible change to Perl can cause for developers building or maintaining software in Perl. You can be sure that when they deprecate a functionality or syntax, it isn't a choice they make lightly. Sometimes, they choose to deprecate functionality or syntax because it was found to be poorly designed or implemented. Sometimes, this is because they're holding back other features or causing performance problems. Sometimes, the reasons are more complex. Wherever possible, they try to keep deprecated functionality available to developers in its previous form for at least one major release. So long as a deprecated feature isn't actively disrupting their ability to maintain and extend Perl, they'll try to leave it in place as long as possible.
The following items are now deprecated:
π« suidperl
suidperl is no longer part of Perl. It used to provide a mechanism to emulate setuid permission bits on systems that don't support it properly.
π Use of ":=" to mean an empty attribute list
An accident of Perl's parser meant that these constructions were all equivalent:
my $pi := 4;
my $pi : = 4;
my $pi : = 4;
with the ":" being treated as the start of an attribute list, which ends before the "=". As whitespace is not significant here, all are parsed as an empty attribute list, hence all the above are equivalent to, and better written as
my $pi = 4;
because no attribute processing is done for an empty list.
As is, this meant that ":=" cannot be used as a new token, without silently changing the meaning of existing code. Hence that particular form is now deprecated, and will become a syntax error. If it is absolutely necessary to have empty attribute lists (for example, because of a code generator) then avoid the warning by adding a space before the "=".
π UNIVERSAL->import()
The method UNIVERSAL->import() is now deprecated. Attempting to pass import arguments to a use UNIVERSAL statement will result in a deprecation warning.
π³οΈ Use of goto to jump into a construct
Using goto to jump from an outer scope into an inner scope is now deprecated. This rare use case was causing problems in the implementation of scopes.
β¨ Custom character names in \N{name} that don't look like names
In \N{name}, name can be just about anything. The standard Unicode names have a very limited domain, but a custom name translator could create names that are, for example, made up entirely of punctuation symbols. It is now deprecated to make names that don't begin with an alphabetic character, and aren't alphanumeric or contain other than a very few other characters, namely spaces, dashes, parentheses and colons. Because of the added meaning of \N (See "\N" experimental regex escape), names that look like curly brace -enclosed quantifiers won't work. For example, \N{3,4} now means to match 3 to 4 non-newlines; before a custom name 3,4 could have been created.
π¦ Deprecated Modules
The following modules will be removed from the core distribution in a future release, and should be installed from CPAN instead. Distributions on CPAN which require these should add them to their prerequisites. The core versions of these modules will issue a deprecation warning.
If you ship a packaged version of Perl, either alone or as part of a larger system, then you should carefully consider the repercussions of core module deprecations. You may want to consider shipping your default build of Perl with packages for some or all deprecated modules which install into vendor or site perl library directories. This will inhibit the deprecation warnings.
Alternatively, you may want to consider patching lib/deprecate.pm to provide deprecation warnings specific to your packaging system or distribution of Perl, consistent with how your packaging system or distribution manages a staged transition from a release where the installation of a single package provides the given functionality, to a later release where the system administrator needs to know to install multiple packages to get that same functionality.
You can silence these deprecation warnings by installing the modules in question from CPAN. To install the latest version of all of them, just install Task::Deprecations::5_12.
Class::ISAPod::PlainerShellSwitch- Switch is buggy and should be avoided. You may find Perl's new
given/whenfeature a suitable replacement. See"Switch statements" in perlsynfor more information.
- Switch is buggy and should be avoided. You may find Perl's new
π« Assignment to $[
π Use of the attribute :locked on subroutines
π Use of locked with the attributes pragma
π Use of unique with the attributes pragma
π Perl_pmflag
Perl_pmflag is no longer part of Perl's public API. Calling it now generates a deprecation warning, and it will be removed in a future release. Although listed as part of the API, it was never documented, and only ever used in toke.c, and prior to 5.10, regcomp.c. In core, it has been replaced by a static function.
π¦ Numerous Perl 4-era libraries
termcap.pl, tainted.pl, stat.pl, shellwords.pl, pwd.pl, open3.pl, open2.pl, newgetopt.pl, look.pl, find.pl, finddepth.pl, importenv.pl, hostname.pl, getopts.pl, getopt.pl, getcwd.pl, flush.pl, fastcwd.pl, exceptions.pl, ctime.pl, complete.pl, cacheout.pl, bigrat.pl, bigint.pl, bigfloat.pl, assert.pl, abbrev.pl, dotsh.pl, and timelocal.pl are all now deprecated. Earlier, Perl's developers intended to remove these libraries from Perl's core for the 5.14.0 release.
During final testing before the release of 5.12.0, several developers discovered current production code using these ancient libraries, some inside the Perl core itself. Accordingly, the pumpking granted them a stay of execution. They will begin to warn about their deprecation in the 5.14.0 release and will be removed in the 5.16.0 release.
β¨ Unicode overhaul β¨
Okay so the Perl devs went absolutely feral making Perl sync with the latest Unicode standard. Here's the tea: β
Perl can now handle every Unicode character property. New docs, perluniprops, list all available non-Unihan character properties. By default, Perl does not expose Unihan, deprecated, or Unicode-internal properties. See below for more on those; there's also a section in the pod listing them and explaining why they're hidden. π
Perl now fully supports the Unicode compound style of using = and : in regexes: \p{property=value} and \p{property:value} (both mean the exact same thing). π
Perl now fully supports the Unicode loose matching rules for text between the braces in \p{...} constructs. In addition, Perl allows underscores between digits of numbers. Cute.
Perl now accepts all the Unicode-defined synonyms for properties and property values. No cap.
qr/\X/, which matches a Unicode logical character, has been expanded to work better with various Asian languages. It now is defined as an extended grapheme cluster. (See <http://www.unicode.org/reports/tr29/>). Anything matched previously and that made sense will continue to be accepted. Additionally:
\Xwill not break apart aCR LFsequence.\Xwill now match a sequence which includes theZWJandZWNJcharacters.\Xwill now always match at least one character, including an initial mark. Marks generally come after a base character, but it is possible in Unicode to have them in isolation, and\Xwill now handle that case, for example at the beginning of a line, or after aZWSP. And this is the part where\Xdoesn't match the things that it used to that don't make sense. Formerly, for example, you could have the nonsensical case of an accented LF.\Xwill now match a (Korean) Hangul syllable sequence, and the Thai and Lao exception cases.
Otherwise, this change should be transparent for the non-affected languages. π
\p{...} matches using the Canonical_Combining_Class property were completely broken in previous releases of Perl. They should now work correctly. π
Before Perl 5.12, the Unicode Decomposition_Type=Compat property and a Perl extension had the same name, which led to neither matching all the correct values (with more than 100 mistakes in one, and several thousand in the other). The Perl extension has now been renamed to be Decomposition_Type=Noncanonical (short: dt=noncanon). It has the same meaning as was previously intended, namely the union of all the non-canonical Decomposition types, with Unicode Compat being just one of those.
\p{Decomposition_Type=Canonical} now includes the Hangul syllables. Periodt.
\p{Uppercase} and \p{Lowercase} now work as the Unicode standard says they should. This means they each match a few more characters than they used to. β¨
\p{Cntrl} now matches the same characters as \p{Control}. This means it no longer will match Private Use (gc=co), Surrogates (gc=cs), nor Format (gc=cf) code points. The Format code points represent the biggest possible problem. All but 36 of them are either officially deprecated or strongly discouraged from being used. Of those 36, likely the most widely used are the soft hyphen (U+00AD), and BOM, ZWSP, ZWNJ, WJ, and similar characters, plus bidirectional controls. π
\p{Alpha} now matches the same characters as \p{Alphabetic}. Before 5.12, Perl's definition included a number of things that aren't really alpha (all marks) while omitting many that were. The definitions of \p{Alnum} and \p{Word} depend on Alpha's definition and have changed accordingly.
\p{Word} no longer incorrectly matches non-word characters such as fractions. Bye.
\p{Print} no longer matches the line control characters: Tab, LF, CR, FF, VT, and NEL. This brings it in line with standards and the documentation. Glow-up.
\p{XDigit} now matches the same characters as \p{Hex_Digit}. This means that in addition to the characters it currently matches, [A-Fa-f0-9], it will also match the 22 fullwidth equivalents, for example U+FF10: FULLWIDTH DIGIT ZERO.
The Numeric type property has been extended to include the Unihan characters. π₯
There is a new Perl extension, the 'Present_In', or simply 'In', property. This is an extension of the Unicode Age property, but \p{In=5.0} matches any code point whose usage has been determined as of Unicode version 5.0. The \p{Age=5.0} only matches code points added in precisely version 5.0. Subtle but iconic.
A number of properties now have the correct values for unassigned code points. The affected properties are Bidi_Class, East_Asian_Width, Joining_Type, Decomposition_Type, Hangul_Syllable_Type, Numeric_Type, and Line_Break.
The Default_Ignorable_Code_Point, ID_Continue, and ID_Start properties are now up to date with current Unicode definitions. Slay.
Earlier versions of Perl erroneously exposed certain properties that are supposed to be Unicode internal-only. Use of these in regular expressions will now generate, if enabled, a deprecation warning message. The properties are: Other_Alphabetic, Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend, Other_ID_Continue, Other_ID_Start, Other_Lowercase, Other_Math, and Other_Uppercase. Don't use them, bestie. π
It is now possible to change which Unicode properties Perl understands on a per-installation basis. As mentioned above, certain properties are turned off by default. These include all the Unihan properties (which should be accessible via the CPAN module Unicode::Unihan) and any deprecated or Unicode internal-only property that Perl has never exposed.
The generated files in the lib/unicore/To directory are now more clearly marked as being stable, directly usable by applications. New hash entries in them give the format of the normal entries, which allows for easier machine parsing. Perl can generate files in this directory for any property, though most are suppressed. You can find instructions for changing which are written in perluniprops.
π¦ Modules and Pragmata π¦
π New Modules and Pragmata π
autodieβautodieis a new lexically-scoped alternative for theFatalmodule. The bundled version is2.06_01.
Note that in this release, using a string eval whenautodieis in effect can cause the autodie behaviour to leak into the surrounding scope. SeeBUGSinautodiefor more details.
Version 2.06_01 has been added to the Perl core.
Compress::Raw::Bzip2β Version2.024has been added to the Perl core.overloadingβoverloadingallows you to lexically disable or enable overloading for some or all operations. Version0.001has been added to the Perl core.parentβparentestablishes an ISA relationship with base classes at compile time. It provides the key feature ofbasewithout further unwanted behaviors. Version0.223has been added to the Perl core.Parse::CPAN::Metaβ Version1.40has been added to the Perl core.VMS::DCLsymβ Version1.03has been added to the Perl core.VMS::Stdioβ Version2.4has been added to the Perl core.XS::APItest::KeywordRPNβ Version0.003has been added to the Perl core.
π Updated Pragmata π
baseβ Upgraded from version2.13to2.15.bignumβ Upgraded from version0.22to0.23.charnamesβcharnamesnow contains the UnicodeNameAliases.txtdatabase file. This has the effect of adding some extra\Ncharacter names that formerly wouldn't have been recognised; for example,\N{LATIN CAPITAL LETTER GHA}. Upgraded from version1.06to1.07.constantβ Upgraded from version1.13to1.20.diagnosticsβdiagnosticsnow supports%.0fformatting internally.diagnosticsno longer suppressesUse of uninitialized value in range (or flip)warnings.[perl #71204]Upgraded from version1.17to1.19.featureβ Infeature, the meaning of the:5.10and:5.10.Xfeature bundles has changed slightly. The last component, if any (i.e.X) is simply ignored. This is predicated on the assumption that new features will not, in general, be added to maintenance releases. So:5.10and:5.10.Xhave identical effect. This is a change to the behaviour documented for 5.10.0.featurenow includes theunicode_stringsfeature:use feature "unicode_strings";This pragma turns on Unicode semantics for the case-changing operations (uc,lc,ucfirst,lcfirst) on strings that don't have the internal UTF-8 flag set, but that contain single-byte characters between 128 and 255. Upgraded from version1.11to1.16.lessβlessnow includes thestash_namemethod to allow subclasses oflessto pick where in%^Hto store their stash. Upgraded from version0.02to0.03.libβ Upgraded from version0.5565to0.62.mroβmrois now implemented as an XS extension. The documented interface has not changed. Code relying on the implementation detail that somemro::methods happened to be available at all times gets tokeep both pieces. Upgraded from version1.00to1.02.overloadβoverloadnow allow overloading of'qr'. Upgraded from version1.06to1.10.threadsβ Upgraded from version1.67to1.75.threads::sharedβ Upgraded from version1.14to1.32.versionβversionnow has support forVersion number formatsas described earlier in this document and in its own documentation. Upgraded from version0.74to0.82.warningsβwarningshas a newwarnings::fatal_enabled()function. It also includes a newillegalprotowarning category. See alsoNew or Changed Diagnosticsfor this change. Upgraded from version1.06to1.09.
β¬οΈ Updated Modules β¬οΈ
Archive::Extractβ Upgraded from version0.24to0.38.Archive::Tarβ Upgraded from version1.38to1.54.Attribute::Handlersβ Upgraded from version0.79to0.87.AutoLoaderβ Upgraded from version5.63to5.70.B::Conciseβ Upgraded from version0.74to0.78.B::Debugβ Upgraded from version1.05to1.12.B::Deparseβ Upgraded from version0.83to0.96.B::Lintβ Upgraded from version1.09to1.11_01.CGIβ Upgraded from version3.29to3.48.Class::ISAβ Upgraded from version0.33to0.36.
NOTE: Class::ISA is deprecated and may be removed from a future version of Perl.
Compress::Raw::Zlibβ upgraded from2.008to2.024β¨CPANβ upgraded from1.9205to1.94_56π«ΆCPANPLUSβ upgraded from0.84to0.90π«CPANPLUS::Dist::Buildβ upgraded from0.06_02to0.46πData::Dumperβ upgraded from2.121_14to2.125π₯DB_Fileβ upgraded from1.816_1to1.820πΈDevel::PPPortβ upgraded from3.13to3.19πDigestβ upgraded from1.15to1.16β¨Digest::MD5β upgraded from2.36_01to2.39π¦Digest::SHAβ upgraded from5.45to5.47πEncodeβ upgraded from2.23to2.39πExporterβ upgraded from5.62to5.64_01βExtUtils::CBuilderβ upgraded from0.21to0.27π§ExtUtils::Commandβ upgraded from1.13to1.16πExtUtils::Constantβ upgraded from0.2to0.22πExtUtils::Installβ upgraded from1.44to1.55π«ΆExtUtils::MakeMakerβ upgraded from6.42to6.56π₯ExtUtils::Manifestβ upgraded from1.51_01to1.57πΈExtUtils::ParseXSβ upgraded from2.18_02to2.21π«File::Fetchβ upgraded from0.14to0.24β¨File::Pathβ upgraded from2.04to2.08_01πFile::Tempβ upgraded from0.18to0.22πFilter::Simpleβ upgraded from0.82to0.84π¦Filter::Util::Callβ upgraded from1.07to1.08πGetopt::Longβ upgraded from2.37to2.38βIOβ upgraded from1.23_01to1.25_02πIO::Zlibβ upgraded from1.07to1.10π§IPC::Cmdβ upgraded from0.40_1to0.54πIPC::SysVβ upgraded from1.05to2.01πLocale::Maketextβ upgraded from1.12to1.14π₯Locale::Maketext::Simpleβ upgraded from0.18to0.21πΈLog::Messageβ upgraded from0.01to0.02β¨Log::Message::Simpleβ upgraded from0.04to0.06π«ΆMath::BigIntβ upgraded from1.88to1.89_01π¦Math::BigInt::FastCalcβ upgraded from0.16to0.19πMath::BigRatβ upgraded from0.21to0.24π«Math::Complexβ upgraded from1.37to1.56πMemoizeβ upgraded from1.01_02to1.01_03βMIME::Base64β upgraded from3.07_01to3.08πModule::Buildβ upgraded from0.2808_01to0.3603π₯Module::CoreListβ upgraded from2.12to2.29πModule::Loadβ upgraded from0.12to0.16πModule::Load::Conditionalβ upgraded from0.22to0.34π§Module::Loadedβ upgraded from0.01to0.06πModule::Pluggableβ upgraded from3.6to3.9β¨Net::Pingβ upgraded from2.33to2.36πΈNEXTβ upgraded from0.60_01to0.64π«ΆObject::Accessorβ upgraded from0.32to0.36π¦Package::Constantsβ upgraded from0.01to0.02πPerlIOβ upgraded from1.04to1.06π«Pod::Parserβ upgraded from1.35to1.37πPod::Perldocβ upgraded from3.14_02to3.15_02βPod::Plainerβ upgraded from0.01to1.02π- β οΈ NOTE:
Pod::Plaineris deprecated and may be removed from a future version of Perl. π
- β οΈ NOTE:
Pod::Simpleβ upgraded from3.05to3.13π₯Safeβ upgraded from2.12to2.22πSelfLoaderβ upgraded from1.11to1.17πStorableβ upgraded from2.18to2.22π§Switchβ upgraded from2.13to2.16π- β οΈ NOTE:
Switchis deprecated and may be removed from a future version of Perl. π
- β οΈ NOTE:
Sys::Syslogβ upgraded from0.22to0.27β¨Term::ANSIColorβ upgraded from1.12to2.02πΈTerm::UIβ upgraded from0.18to0.20π«ΆTestβ upgraded from1.25to1.25_02π¦Test::Harnessβ upgraded from2.64to3.17πTest::Simpleβ upgraded from0.72to0.94π«Text::Balancedβ upgraded from2.0.0to2.02πText::ParseWordsβ upgraded from3.26to3.27βText::Soundexβ upgraded from3.03to3.03_01πThread::Queueβ upgraded from2.00to2.11π₯Thread::Semaphoreβ upgraded from2.01to2.09πTie::RefHashβ upgraded from1.37to1.38πTime::HiResβ upgraded from1.9711to1.9719π§Time::Localβ upgraded from1.18to1.1901_01πTime::Pieceβ upgraded from1.12to1.15β¨Unicode::Collateβ upgraded from0.52to0.52_01πΈUnicode::Normalizeβ upgraded from1.02to1.03π«ΆWin32β upgraded from0.34to0.39π¦Win32API::Fileβ upgraded from0.1001_01to0.1101πXSLoaderβ upgraded from0.08to0.10π«
ποΈ Removed Modules and Pragmata
okay bestie, these ones got the βοΈ β they are no longer in the Perl core at all:
attrsβ removed from the Perl core. Prior version was1.02.CPAN::API::HOWTOβ removed from the Perl core. Prior version was'undef'.CPAN::DeferedCodeβ removed from the Perl core. Prior version was5.50.CPANPLUS::incβ removed from the Perl core. Prior version was'undef'.DCLsymβ removed from the Perl core. Prior version was1.03.ExtUtils::MakeMaker::bytesβ removed from the Perl core. Prior version was6.42.ExtUtils::MakeMaker::vmsishβ removed from the Perl core. Prior version was6.42.Stdioβ removed from the Perl core. Prior version was2.3.Test::Harness::Assertβ removed from the Perl core. Prior version was0.02.Test::Harness::Iteratorβ removed from the Perl core. Prior version was0.02.Test::Harness::Pointβ removed from the Perl core. Prior version was0.01.Test::Harness::Resultsβ removed from the Perl core. Prior version was0.01.Test::Harness::Strapsβ removed from the Perl core. Prior version was0.26_01.Test::Harness::Utilβ removed from the Perl core. Prior version was0.01.XSSymSetβ removed from the Perl core. Prior version was1.1.
π₯² Deprecated Modules and Pragmata
See "Deprecated Modules" above. (yes bestie, it's just a lil pointer, no tea to spill here π )
π Documentation π
π New Documentation
perlhaikuβ has the full instructions on how to build perl for the Haiku platform. πperlmroapiβ describes the new interface for pluggable Method Resolution Orders. π«perlperf, by Richard Foley β gives you an intro to the use of performance and optimization techniques, with particular reference to perl programs. π₯perlrepositoryβ describes how to access the perl source using thegitversion control system. πperlpolicyβ extends the "Social contract about contributed modules" into the beginnings of a document on Perl porting policies. π«Ά
βοΈ Changes to Existing Documentation
- The various large
Changes*files (which listed every change made to perl over the last 18 years) have been removed π, and replaced by a small file, also calledChanges, which just explains how that same information may be extracted from thegitversion control system. iykyk. Porting/patching.podhas been deleted, because it mainly described interacting with the old Perforce-based repository, which is now obsolete. The info that's still relevant has been moved toperlrepository. π§- The syntax
unless (EXPR) BLOCK else BLOCKis now documented as valid, and so is the syntaxunless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCKβ although actually using that second one may not be the best idea for the readability of your source code. π noted. - Documented
-Xoverloading. β - Documented that
when()treats specially most of the filetest operators. π - Documented
whenas a syntax modifier. β¨ - Eliminated "Old Perl threads tutorial", which described 5005 threads.
pod/perlthrtut.podis the same material reworked for ithreads. π¦ - Correct previous documentation: v-strings are not deprecated. With version objects, we need them to use
MODULE VERSIONsyntax. This patch removes the deprecation notice. π - Security contact information is now part of
perlsec. π«Ά - A significant fraction of the core documentation has been updated to clarify the behavior of Perl's Unicode handling. Much of the remaining core documentation has been reviewed and edited for clarity, consistent use of language, and to fix the spelling of Tom Christiansen's name. π iconic attention to detail.
- The Pod specification (
perlpodspec) has been updated to bring the specification in line with modern usage already supported by most Pod systems. A parameter string may now follow the format name in a "begin/end" region. Links to URIs with a text description are now allowed. The usage ofL<"section">has been marked as deprecated. π if.pmhas been documented in "use" inperlfuncas a means to get conditional loading of modules despite the implicitBEGINblock arounduse. π«- The documentation for
$1inperlvar.podhas been clarified. πΈ "\N{U+code point}"is now documented. π₯
β‘ Selected Performance Enhancements β‘
- A new internal cache means that
isa()will often be faster. π¨ - The implementation of
"C3"Method Resolution Order has been optimised β linearisation for classes with single inheritance is 40% faster. Performance for multiple inheritance is unchanged. π - Under
use locale, the locale-relevant information is now cached on read-only values, such as the list returned bykeys %hash. This makes operations such assort keys %hashin the scope ofuse localemuch faster. π - Empty
DESTROYmethods are no longer called. π (as in, they literally don't get called, not that they're bad) Perl_sv_utf8_upgrade()is now faster. β¨keyson empty hash is now faster. πif (%foo)has been optimized to be faster thanif (keys %foo). π₯- The string repetition operator (
$str x $num) is now several times faster when$strhas length one or$numis large. π - Reversing an array to itself (as in
@a = reverse @a) in void context now happens in-place and is several orders of magnitude faster than it used to be. It will also preserve non-existent elements whenever possible, i.e. for non magical arrays or tied arrays withEXISTSandDELETEmethods. π
π Installation and Configuration Improvements π
okay so the building of perl itself got a glow-up too, and honestly? she needed it π
perlapi,perlintern,perlmodlibandperltocare now all generated at build time, instead of being shipped as part of the release. so they're fresh out the oven every single time, no stale docs bestie β¨- if
vendorlibandvendorarchare literally the same thing, they only get added to@INConce. no duplicates, we don't do that here π $Config{usedevel}and the C-levelPERL_USE_DEVELare now defined if perl is built with-Dusedevel. (yes,-Dusedevelis the vibe flag, iykyk)- Configure will enable use of
-fstack-protectorβ which is giving protection against stack-smashing attacks β if the compiler supports it. safety girlies rise up π‘οΈ - Configure will now determine the correct prototypes for re-entrant functions and for
gconvertif you're using a C++ compiler rather than a C compiler. it's flexible like that π - On Unix, if you build from a tree containing a git repository, the configuration process will note the commit hash you have checked out, for display in the output of
perl -vandperl -V. and get this β unpushed local commits are automatically added to the list of local patches displayed byperl -V. it's keeping receipts fr fr π§Ύ - Perl now supports SystemTap's
dtracecompatibility layer, and an issue with linkingminiperlhas been fixed in the process. two birds, one slay π¦ perldocnow usesless -Rinstead oflessfor improved behaviour in the face ofgroff's new usage of ANSI escape codes. tiny change, massive glow-up β¨perl -Vnow reports use of the compile-time optionsUSE_PERL_ATOFandUSE_ATTRIBUTES_FOR_PERLIO. transparency icon π- As part of the flattening of
ext, all extensions on all platforms are built bymake_ext.pl. this replaces the Unix-specificext/util/make_ext, the VMS-specificmake_ext.comand the Win32-specificwin32/buildext.pl. one script to rule them all, periodt π
π§ Internal Changes π§
every release of Perl sees numerous internal changes which shouldn't affect day to day usage but may still be notable for developers working with Perl's source code. (so like, if you're just vibing in your own .pl files, this section is not about you bestie, but the core devs are gonna eat πΈ)
- The J.R.R. Tolkien quotes at the head of C source files have been checked and proper citations added, thanks to a patch from Tom Christiansen. one does not simply quote Tolkien without attribution π§
- The internal structure of the dual-life modules traditionally found in the
lib/andext/directories in the perl source has changed significantly. Where possible, dual-lifed modules have been extracted fromlib/andext/.- Dual-lifed modules maintained by Perl's developers as part of the Perl core now live in
dist/. - Dual-lifed modules maintained primarily on CPAN now live in
cpan/.
- Dual-lifed modules maintained by Perl's developers as part of the Perl core now live in
When reporting a bug in a module located under cpan/, please send your bug report directly to the module's bug tracker or author, rather than Perl's bug tracker. like, send it to the right place bestie, don't just drop it in the main character's inbox π
"\N{...}"now compiles better, always forces UTF-8 internal representation.
Perl's developers have fixed several problems with the recognition of "\N{...}" constructs. As part of this, perl will store any scalar or regex containing "\N{name}" or "\N{U+code point}" in its definition in UTF-8 format. (This was true previously for all occurrences of "\N{name}" that did not use a custom translator, but now it's always true.) no cap, always π
Perl_magic_setmglobnow knows about globs, fixing RT #71254. it finally understood the assignment π"SVt_RV"no longer exists. RVs are now stored in IVs. rip to a real one πͺ¦Perl_vcroak()now accepts a null first argument. In addition, a full audit was made of the"not NULL"compiler annotations, and those for several other internal functions were corrected. spring cleaning energy π§Ή- New macros
"dSAVEDERRNO","dSAVE_ERRNO","SAVE_ERRNO","RESTORE_ERRNO"have been added to formalise the temporary saving of the"errno"variable. structured, organised, iconic π - The function
"Perl_sv_insert_flags"has been added to augment"Perl_sv_insert". - The function
Perl_newSV_type(type)has been added, equivalent toPerl_newSV()followed byPerl_sv_upgrade(type). combo move π₯ - The function
Perl_newSVpvn_flags()has been added, equivalent toPerl_newSVpvn()and then performing the action relevant to the flag.
Two flag bits are currently supported.
"SVf_UTF8"will callSvUTF8_on()for you. (Note that this does not convert a sequence of ISO 8859-1 characters to UTF-8). A wrapper,newSVpvn_utf8()is available for this."SVs_TEMP"now callsPerl_sv_2mortal()on the new SV.
There is also a wrapper that takes constant strings, newSVpvs_flags(). so many little helpers, we love a supportive friend group π«Ά
- The function
"Perl_croak_xs_usage"has been added as a wrapper to"Perl_croak". - Perl now exports the functions
"PerlIO_find_layer"and"PerlIO_list_alloc". they're public now, say hi β¨ "PL_na"has been exterminated from the core code, replaced by localSTRLENtemporaries, or*_nolen()calls. Either approach is faster than"PL_na", which is a pointer dereference into the interpreter structure under ithreads, and a global variable otherwise. it's gone girl, and the new way is quicker πPerl_mg_free()used to leave freed memory accessible viaSvMAGIC()on the scalar. It now updates the linked list to remove each piece of magic as it is freed. cleaning up after yourself is the bare minimum π§Ό- Under ithreads, the regex in
"PL_reg_curpm"is now reference counted. This eliminates a lot of hackish workarounds to cope with it not being reference counted. no more duct tape and prayers π Perl_mg_magical()would sometimes incorrectly turn onSvRMAGICAL(). This has been fixed. it was lying bestie, now it's not π- The public IV and NV flags are now not set if the string value has trailing
"garbage". This behaviour is consistent with not setting the public IV or NV flags if the value is out of range for the type. consistency is key, periodt π - Uses of
"Nullav","Nullcv","Nullhv","Nullop","Nullsv"etc have been replaced by"NULL"in the core code, and non-dual-life modules, as"NULL"is clearer to those unfamiliar with the core code. clarity is self care πΈ - A macro
MUTABLE_PTR(p)has been added, which on (non-pedantic) gcc will not cast away"const", returning a"void *". MacrosMUTABLE_SV(av),MUTABLE_SV(cv)etc build on this, casting to"AV *"etc without casting away"const". This allows proper compile-time auditing of"const"correctness in the core, and helped picked up some errors (now fixed). const-correctness girlies we are obsessed π₯ - Macros
mPUSHs()andmXPUSHs()have been added, for pushing SVs on the stack and mortalizing them. - Use of the private structure
"mro_meta"has changed slightly. Nothing outside the core should be accessing this directly anyway. (so like... don't π) - A new tool,
Porting/expand-macro.plhas been added, that allows you to view how a C preprocessor macro would be expanded when compiled. This is handy when trying to decode the macro hell that is the perl guts. macro hell is real and this is your flashlight π¦β¨
π Testing π
β¨ Testing improvements β¨
π Parallel tests π
Okay bestie, listen up: the core distribution can now run its regression tests in parallel on Unix-like platforms. Instead of running make test, you set TEST_JOBS in your environment to the number of tests to run in parallel, and then run make test_harness. On a Bourne-like shell, this can be done as
TEST_JOBS=3 make test_harness # Run 3 tests in parallel
An environment variable is used, rather than parallel make itself, because TAP::Harness needs to be able to schedule individual non-conflicting test scripts itself, and there is no standard interface to make utilities to interact with their job schedulers. iykyk π
Note that currently some test scripts may fail when run in parallel (most notably ext/IO/t/io_dir.t). If necessary run just the failing scripts again sequentially and see if the failures go away. No cap, that's literally in the original.
π Test harness flexibility π
It's now possible to override PERL5OPT and friends in t/TEST β¨ slay β¨
π«Ά Test watchdog π«Ά
Several tests that have the potential to hang forever if they fail now incorporate a "watchdog" functionality that will kill them after a timeout, which helps ensure that make test and make test_harness run to completion automatically. Main character energy: no infinite hang, just vibes. π
π§ New Tests π§
Perl's developers have added a number of new tests to the core. In addition to the items listed below, many modules updated from CPAN incorporate new tests. So many tests, so little time. π
- Significant cleanups to core tests to ensure that language and interpreter features are not used before they're tested.
make test_portingnow runs a number of important pre-commit checks which might be of use to anyone working on the Perl core.t/porting/podcheck.tautomatically checks the well-formedness of POD found in all.pl,.pmand.podfiles in theMANIFEST, other than in dual-lifed modules which are primarily maintained outside the Perl core.t/porting/manifest.tnow tests that all files listed inMANIFESTare present.t/op/while_readdir.ttests that a barereaddirinwhileloop sets$_.t/comp/retainedlines.tchecks that the debugger can retain source lines fromeval.t/io/perlio_fail.tchecks that bad layers fail.t/io/perlio_leaks.tchecks that PerlIO layers are not leaking.t/io/perlio_open.tchecks that certain special forms ofopenwork.t/io/perlio.tincludes general PerlIO tests.t/io/pvbm.tchecks that there is no unexpected interaction between the internal typesPVBMandPVGV.t/mro/package_aliases.tchecks thatmroworks properly in the presence of aliased packages.t/op/dbm.ttestsdbmopenanddbmclose.t/op/index_thr.ttests the interaction ofindexand threads.t/op/pat_thr.ttests the interaction of esoteric patterns and threads.t/op/qr_gc.ttests thatqrdoesn't leak.t/op/reg_email_thr.ttests the interaction of regex recursion and threads.t/op/regexp_qr_embed_thr.ttests the interaction of patterns with embeddedqr//and threads.t/op/regexp_unicode_prop.ttests Unicode properties in regular expressions.t/op/regexp_unicode_prop_thr.ttests the interaction of Unicode properties and threads.t/op/reg_nc_tie.ttests the tied methods ofTie::Hash::NamedCapture.t/op/reg_posixcc.tchecks that POSIX character classes behave consistently.t/op/re.tchecks that exportablerefunctions inuniversal.cwork.t/op/setpgrpstack.tchecks thatsetpgrpworks.t/op/substr_thr.ttests the interaction ofsubstrand threads.t/op/upgrade.tchecks that upgrading and assigning scalars works.t/uni/lex_utf8.tchecks that Unicode in the lexer works.t/uni/tie.tchecks that Unicode andtiework.t/comp/final_line_num.ttests whether line numbers are correct at EOFt/comp/form_scope.ttests format scoping.t/comp/line_debug.ttests whether"@{"_<$file"}"works.t/op/filetest_t.ttests if-tfile test works.t/op/qr.ttestsqr.t/op/utf8cache.ttests malfunctions of the utf8 cache.t/re/uniprops.ttest unicodes"\p{}"regex constructs.t/op/filehandle.ttests some suitably portable filetest operators to check that they work as expected, particularly in the light of some internal changes made in how filehandles are blessed.t/op/time_loop.ttests that unix times greater than2**63, which can now be handed togmtimeandlocaltime, do not cause an internal overflow or an excessively long loop.
β¨ That's the testing tea, bestie. Every single test name stayed exactly where it belongs. β¨
π₯ New or Changed Diagnostics π₯
β¨ New Diagnostics β¨
- SV allocation tracing has been added to the diagnostics that
-Dmturns on. The tracing can also output via thePERL_MEM_LOGmechanism instead, if that was enabled when the perl binary was compiled. π - Smartmatch resolution tracing is now a diagnostic of its very own. Flip it on with
-DM. π¦ - There's a brand new debugging flag
-DBthat dumps subroutine definitions, which means-Dxgets to go back to its original job of dumping syntax trees. - Perl 5.12 hands you a whole pile of new diagnostic messages to help you write better code. Peep perldiag for the details on all of these:
Bad plugin affecting keyword '%s'gmtime(%.0f) too largeLexing code attempted to stuff non-Latin-1 character into Latin-1 inputLexing code internal error (%s)localtime(%.0f) too largeOverloaded dereference did not return a referenceOverloaded qr did not return a REGEXPPerl_pmflag() is deprecated, and will be removed from the XS APIlvalue attribute ignored after the subroutine has been defined
This new warning fires when you try to mark a subroutine as lvalue after it's already been defined. Bestie, the timing matters. π
- Perl now warns you if
++or--can't change the value because it's beyond the limit of representation.
This uses a brand new warnings category: imprecision.
lc,uc,lcfirst, anducfirstwarn when passed undef.Show constant in "Useless use of a constant in void context"Prototype after '%s'panic: sv_chop %s
This new fatal error shows up when the C routine Perl_sv_chop() gets handed a position that isn't inside the scalar's string buffer. Buggy XS code could be the culprit, and at this point recovery is not possible. It's giving end of the road. π
- The fatal error
Malformed UTF-8 returned by \Nis now produced if thecharnameshandler returns malformed UTF-8. - If an unresolved named character or sequence gets encountered while compiling a regex pattern, the fatal error
\N{NAME} must be resolved by the lexeris now produced. This can happen, for example, when you're in a single-quotish context like$re = '\N{SPACE}'; /$re/;. See perldiag for more examples of how the lexer can get bypassed. Invalid hexadecimal number in \N{U+...}is a new fatal error, triggered when the character constant represented by...isn't a valid hexadecimal number.- The new meaning of
\Nas[^\n]is not valid in a bracketed character class β same energy as how.in a character class loses its special meaning β and it'll cause the fatal error\N in a character class must be a named character: \N{...}. - The rules for what's legal in the
...of\N{...}got tightened wayyy up: unless the...starts with an alphabetic character and then continues with a combo of alphanumerics, dashes, spaces, parentheses or colons, the warningDeprecated character(s) in \N{...} starting at '%s'is now issued. - The warning
Using just the first characters returned by \N{}gets issued if thecharnameshandler returns a sequence of characters that goes over the limit of how many characters can be used. The message will tell you which characters were used and which ones got discarded. π«Ά
π Changed Diagnostics π
A bunch of existing diagnostic messages got improved or corrected:
- A new warning category
illegalprotoallows finer-grained control of warnings around function prototypes.
These two warnings:
"Illegal character in prototype for %s : %s"
"Prototype after '%c' for %s : %s"
have been moved out of the syntax top-level warnings category and into a new first-level category, illegalproto. These two are currently the only warnings emitted during parsing of an invalid/illegal prototype, so now you can use
no warnings 'illegalproto';
to suppress only those, and not other syntax-related warnings. Warnings where prototypes are changed, ignored, or not met are still hanging out in the prototype category, same as before.
Deep recursion on subroutine "%s"
You can now change the depth threshold for this warning away from the default of 100 by recompiling the perl binary and setting the C pre-processor macro PERL_SUB_DEPTH_WARN to whatever value you want. π
- The
Illegal character in prototypewarning is now more precise when it's reporting illegal characters after_. - mro merging error messages are now super similar to the ones Algorithm::C3 produces.
- Glow-up for the error message
Unrecognized character %s in column %d
It changes the error message to Unrecognized character %s; marked by <-- HERE after %s<-- HERE near column %d. This should make it a little simpler to spot and fix the suspicious character. π
- Perl now explicitly points to
$.when it's the reason for an uninitialized warning for ranges in scalar context. splitnow warns when it's called in void context.printf-style functions called with too few arguments will now issue the warningMissing argument in %s[perl #71000]- Perl now properly returns a syntax error instead of segfaulting if
each,keys, orvaluesis used without an argument. - tell() now fails properly if it's called without an argument and when no previous file was read.
tell() now returns -1, and sets errno to EBADF, which restores the 5.8.x behaviour.
overloadno longer implicitly unsets fallback on repeateduse overloadlines.- POSIX::strftime() can now handle Unicode characters in the format string. π
- The
syntaxcategory was removed from 5 warnings that should only be indeprecated. - Three fatal
pack/unpackerror messages have been normalized topanic: %s. Unicode character is illegalgot rephrased to be more accurate.
It now reads Unicode non-character is illegal in interchange, and the perldiag documentation got expanded a bit.
- Currently, all but the first of the several characters that the
charnameshandler may return are discarded when used in a regular expression pattern bracketed character class. If this happens, the warningUsing just the first character returned by \N{} in character classwill be issued. - The warning
Missing right brace on \N{} or unescaped left brace after \N. Assuming the latterwill be issued if Perl encounters a\N{but doesn't find a matching}. In that case Perl doesn't know if it was mistakenly omitted, or if "match non-newline" followed by "match a{" was what you actually wanted. It assumes the latter, because that is actually a valid interpretation as written β unlike the other case. If you meant the former, you need to add the matching right brace. If you did mean the latter, you can silence this warning by writing\N\{instead. gmtimeandlocaltimecalled with numbers smaller than they can reliably handle will now issue the warningsgmtime(%.0f) too smallandlocaltime(%.0f) too small.
The following diagnostic messages have been removed:
Runaway formatCan't locate package %s for the parents of %s
In general this warning only got produced in conjunction with other warnings, and removing it allowed an ISA lookup optimisation to be added. β¨
v-string in use/require is non-portable
π Utility Changes π
- h2ph now looks in
include-fixedtoo, which is a recent addition to gcc's search path. - h2xs no longer incorrectly treats enum values like macros. It also now handles C++ style comments (
//) properly in enums. - perl5db.pl now supports
LVALUEsubroutines. On top of that, the debugger now correctly handles proxy constant subroutines, and subroutine stubs. - perlbug now uses %Module::CoreList::bug_tracker to print out upstream bug tracker URLs. If a user identifies a particular module as the topic of their bug report and we're able to divine the URL for its upstream bug tracker, perlbug now gives the user a message explaining that the core copies the CPAN version directly, and hands over the URL for reporting the bug straight to the upstream author.
perlbug no longer reports Message sent when it hasn't actually sent the message. π
- perlthanks is a new utility for sending non-bug-reports to the authors and maintainers of Perl. Getting nothing but bug reports can become a bit demoralising. If Perl 5.12 works well for you, please try out perlthanks. It will make the developers smile. π
- Perl's developers have fixed bugs in a2p having to do with the match() operator in list context. Additionally, a2p no longer generates code that uses the
$[variable.
β¨ Selected Bug Fixes β¨
okay bestie, this section is literally the glow-up era for bugs β every single fix, no cap. π
U+0FFFFis now a legal character in regular expressions. β¨pp_qrnow always returns a new regexp SV. Resolves RT #69852. π
Instead of returning a(nother) reference to the (pre-compiled) regexp in the optree, use reg_temp_copy() to create a copy of it, and return a reference to that. This resolves issues about Regexp::DESTROY not being called in a timely fashion (the original bug tracked by RT #69852), as well as bugs related to blessing regexps, and of assigning to regexps, as described in correspondence added to the ticket.
It transpires that we also need to undo the SvPVX() sharing when ithreads cloning a Regexp SV, because mother_re is set to NULL, instead of a cloned copy of the mother_re. This change might fix bugs with regexps and threads in certain other situations, but as yet neither tests nor bug reports have indicated any problems, so it might not actually be an edge case that it's possible to reach. π
- Several compilation errors and segfaults when perl was built with
-Dmadwere fixed. π₯ - Fixes for lexer API changes in 5.11.2 which broke NYTProf's
savesrcoption. π§ -tshould only returnTRUEfor file handles connected to a TTY. πΈ
The Microsoft C version of isatty() returns TRUE for all character mode devices, including the /dev/null-style "nul" device and printers like "lpt1". π
- Fixed a regression caused by commit
fafafbafwhich caused a panic during parameter passing [perl #70171]. π - On systems which in-place edits without backup files,
-i'*'now works as the documentation says it does [perl #70802]. β¨ - Saving and restoring magic flags no longer loses readonly flag. π
- The malformed syntax
grep EXPR LIST(note the missing comma) no longer causes abrupt and total failure. π - Regular expressions compiled with
qr{}literals properly set$'when matching again. π - Using named subroutines with
sortshould no longer lead to bus errors [perl #71076]. π₯ - Numerous bugfixes catch small issues caused by the recently-added Lexer API. π¦
- Smart match against
@_sometimes gave false negatives. [perl #71078] π $@may now be assigned a read-only value (without error or busting the stack). πsortcalled recursively from within an active comparison subroutine no longer causes a bus error if run multiple times. [perl #71076] πTie::Hash::NamedCapture::*will not abort if passed bad input (RT #71828). π§@_and$_no longer leak under threads (RT #34342 and #41138, also #70602, #70974). π-Ion shebang line now adds directories in front of@INCas documented, and as does-Iwhen specified on the command-line. πkillis now fatal when called on non-numeric process identifiers. Previously, anundefprocess identifier would be interpreted as a request to kill process 0, which would terminate the current process group on POSIX systems. Since process identifiers are always integers, killing a non-numeric process is now fatal. π₯- 5.10.0 inadvertently disabled an optimisation, which caused a measurable performance drop in list assignment, such as is often used to assign function parameters from
@_. The optimisation has been re-instated, and the performance regression fixed. (This fix is also present in 5.10.1) β¨ - Fixed memory leak on
while (1) { map 1, 1 }[RT #53038]. π - Some potential coredumps in PerlIO fixed [RT #57322,54828]. π
- The debugger now works with lvalue subroutines. π
- The debugger's
mcommand was broken on modules that defined constants [RT #61222]. π¦ cryptand string complement could return tainted values for untainted arguments [RT #59998]. π- The
-i.suffix command-line switch now recreates the file using restricted permissions, before changing its mode to match the original file. This eliminates a potential race condition [RT #60904]. π₯ - On some Unix systems, the value in
$?would not have the top bit set ($? & 128) even if the child core dumped. π - Under some circumstances,
$^Rcould incorrectly become undefined [RT #57042]. π - In the XS API, various hash functions, when passed a pre-computed hash where the key is UTF-8, might result in an incorrect lookup. π§
- XS code including
XSUB.hbeforeperl.hgave a compile-time error [RT #57176]. πΈ $object->isa('Foo')would report false if the packageFoodidn't exist, even if the object's@ISAcontainedFoo. π- Various bugs in the new-to 5.10.0 mro code, triggered by manipulating
@ISA, have been found and fixed. π - Bitwise operations on references could crash the interpreter, e.g.
$x=\$y; $x |= "foo"[RT #54956]. π₯ - Patterns including alternation might be sensitive to the internal UTF-8 representation, e.g.
my $byte = chr(192);
my $utf8 = chr(192); utf8::upgrade($utf8);
$utf8 =~ /$byte|X}/i; # failed in 5.10.0
- Within UTF8-encoded Perl source files (i.e. where
use utf8is in effect), double-quoted literal strings could be corrupted where a"\xNN","\0NNN"or"\N{}"is followed by a literal character with ordinal value greater than 255 [RT #59908]. π B::Deparsefailed to correctly deparse various constructs:readpipe STRING[RT #62428],CORE::require(STRING)[RT #62488],sub foo(_)[RT #62484]. π- Using
setpgrpwith no arguments could corrupt the perl stack. π - The block form of
evalis now specifically trappable bySafeandops. Previously it was erroneously treated like stringeval. β¨ - In 5.10.0, the two characters
[~were sometimes parsed as the smart match operator (~~) [RT #63854]. π¦ - In 5.10.0, the
*quantifier in patterns was sometimes treated as{0,32767}[RT #60034, #60464]. For example, this match would fail:
("ab" x 32768) =~ /^(ab)*$/
shmgetwas limited to a 32 bit segment size on a 64 bit OS [RT #63924]. π- Using
nextorlastto exit agivenblock no longer produces a spurious warning like the following:
Exiting given via last at foo.pl line 123
- Assigning a format to a glob could corrupt the format; e.g.:
*bar=*foo{FORMAT}; # foo format now bad
- Attempting to coerce a typeglob to a string or number could cause an assertion failure. The correct error message is now generated,
Can't coerce GLOB to $type. π - Under
use filetest 'access',-xwas using the wrong access mode. This has been fixed [RT #49003]. π lengthon a tied scalar that returned a Unicode value would not be correct the first time. This has been fixed. πΈ- Using an array
tieinside in arraytiecould SEGV. This has been fixed. [RT #51636] π₯ - A race condition inside
PerlIOStdio_close()has been identified and fixed. This used to cause various threading issues, including SEGVs. π - In
unpack, the use of()groups in scalar context was internally placing a list on the interpreter's stack, which manifested in various ways, including SEGVs. This is now fixed [RT #50256]. π - Magic was called twice in
substr,\&$x,tie $x, $mandchop. These have all been fixed. β¨ - A 5.10.0 optimisation to clear the temporary stack within the implicit loop of
s///gehas been reverted, as it turned out to be the cause of obscure bugs in seemingly unrelated parts of the interpreter [commitef0d4e17921ee3de]. π¦ - The line numbers for warnings inside
elsifare now correct. π - The
..operator now works correctly with ranges whose ends are at or close to the values of the smallest and largest integers. π binmode STDIN, ':raw'could lead to segmentation faults on some platforms. This has been fixed [RT #54828]. π- An off-by-one error meant that
index $str, ...was effectively being executed asindex "$str\0", .... This has been fixed [RT #53746]. π - Various leaks associated with named captures in regexes have been fixed [RT #57024]. π§
- A weak reference to a hash would leak. This was affecting
DBI[RT #56908]. πΈ - Using
(?|)in a regex could cause a segfault [RT #59734]. π₯ - Use of a UTF-8
tr//within a closure could cause a segfault [RT #61520]. π - Calling
Perl_sv_chop()or otherwise upgrading an SV could result in an unaligned 64-bit access on the SPARC architecture [RT #60574]. π - In the 5.10.0 release,
inc_version_listwould incorrectly list5.10.*after5.8.*; this affected the@INCsearch order [RT #67628]. β¨ - In 5.10.0,
pack "a*", $tainted_valuereturned a non-tainted value [RT #52552]. π¦ - In 5.10.0,
printfandsprintfcould produce the fatal errorpanic: utf8_mg_pos_cache_updatewhen printing UTF-8 strings [RT #62666]. π - In the 5.10.0 release, a dynamically created
AUTOLOADmethod might be missed (method cache issue) [RT #60220,60232]. π - In the 5.10.0 release, a combination of
use featureand//eecould cause a memory leak [RT #63110]. π₯ -Con the shebang (#!) line is once more permitted if it is also specified on the command line.-Con the shebang line used to be a silent no-op if it was not also on the command line, so perl 5.10.0 disallowed it, which broke some scripts. Now perl checks whether it is also on the command line and only dies if it is not [RT #67880]. π- In 5.10.0, certain types of re-entrant regular expression could crash, or cause the following assertion failure [RT #60508]:
Assertion rx->sublen >= (s - rx->subbeg) + i failed
- Perl now includes previously missing files from the Unicode Character Database. π
- Perl now honors
TMPDIRwhen opening an anonymous temporary file. π
π Platform Specific Changes π
Perl is incredibly portable bestie. Like fr fr. If a platform has a C compiler, somebody has already ported Perl to it (or is about to, no cap). We're so happy to announce that Perl 5.12 includes support for several new platforms π. And at the same time... it's time to bid farewell to some (very) old friends ππ«Ά.
β¨ New Platforms β¨
- Haiku β Perl's developers have merged patches from Haiku's maintainers. Perl should now build on Haiku π.
- MirOS BSD β Perl should now build on MirOS BSD π¦.
π Discontinued Platforms π
- Domain/OS
- MiNT
- Tenon MachTen
gone but not forgotten, we're literally pouring one out π₯²
π Updated Platforms π
AIX
- Removed
libbsdfor AIX 5L and 6.1. Onlyflock()was used fromlibbsd. - Removed
libgdbmfor AIX 5L and 6.1 iflibgdbm<1.8.3-5is installed. Thelibgdbmis delivered as an optional package with the AIX Toolbox. Unfortunately the versions below1.8.3-5are broken π. - Hints changes mean that AIX 4.2 should work again π₯.
Cygwin
- Perl now supports IPv6 on Cygwin 1.7 and newer β¨.
- On Cygwin we now strip the last number from the DLL. This has been the behaviour in the cygwin.com build for years. The hints files have been updated.
Darwin (Mac OS X)
- Skip testing the
be_BY.CP1131locale on Darwin 10 (Mac OS X 10.6), as it's still buggy π. - Correct infelicities in the regexp used to identify buggy locales on Darwin 8 and 9 (Mac OS X 10.4 and 10.5, respectively).
DragonFly BSD
- Fix thread library selection [perl #69686]
FreeBSD
- The hints files now identify the correct threading libraries on FreeBSD 7 and later π.
Irix
- We now work around a bizarre preprocessor bug in the Irix 6.5 compiler:
cc -E -unfortunately goes into K&R mode, butcc -E file.cdoesn't. not me fighting a compiler's weird little mood π
NetBSD
- Hints now supports versions
5.*.
OpenVMS
-UDEBUGGINGis now the default on VMS.
Like it has been everywhere else for ages and ages. Also make command-line selection of -UDEBUGGING and -DDEBUGGING work in configure.com; before the only way to turn it off was by saying no in answer to the interactive question.
- The default pipe buffer size on VMS has been updated to
8192on 64-bit systems. - Reads from the in-memory temporary files of
PerlIO::scalarused to fail if$/was set to a numeric reference (to indicate record-style reads). This is now fixed β . - VMS now supports
getgrgid. - Many improvements and cleanups have been made to the VMS file name handling and conversion code.
- Enabling the
PERL_VMS_POSIX_EXITlogical name now encodes a POSIX exit status in a VMS condition value for better interaction with GNV's bash shell and other utilities that depend on POSIX exit values. See$?in perlvms for details. File::Copynow detects Unix compatibility mode on VMS.
Stratus VOS
- Various changes from Stratus have been merged in π«Ά.
Symbian
- There is now support for Symbian S60 3.2 SDK and S60 5.0 SDK β¨.
Windows
- Perl 5.12 supports Windows 2000 and later. The supporting code for legacy versions of Windows is still included, but will be removed during the next development cycle.
- Initial support for building Perl with MinGW-w64 is now available π.
perl.exenow includes a manifest resource to specify thetrustInfosettings for Windows Vista and later. Without this setting Windows would treatperl.exeas a legacy application and apply various heuristics like redirecting access to protected file system areas (like theProgram Filesfolder) to the usersVirtualStoreinstead of generating a properpermission deniederror.
The manifest resource also requests the Microsoft Common-Controls version 6.0 (themed controls introduced in Windows XP). Check out the Win32::VisualStyles module on CPAN to switch back to old style unthemed controls for legacy applications.
- The
-tfiletest operator now only returns true if the filehandle is connected to a console window. In previous versions of Perl it would return true for all character mode devices, includingNULandLPT1. - The
-pfiletest operator now works correctly, and theFcntl::S_IFIFOconstant is defined when Perl is compiled with Microsoft Visual C. In previous Perl versions-palways returned a false value, and theFcntl::S_IFIFOconstant was not defined.
This bug is specific to Microsoft Visual C and never affected Perl binaries built with MinGW.
- The socket error codes are now more widely supported: The POSIX module will define the symbolic names, like
POSIX::EWOULDBLOCK, and stringification of socket error codes in$!works as well now;
C:\>perl -MPOSIX -E "$!=POSIX::EWOULDBLOCK; say $!"
A non-blocking socket operation could not be completed immediately.
flock()will now set sensible error codes in$!. Previous Perl versions copied the value of$^Einto$!, which caused much confusion π΅βπ«.select()now supports all emptyfd_sets more correctly.'.\foo'and'..\foo'were treated differently than'./foo'and'../foo'bydoandrequire[RT #63492].- Improved message window handling means that
alarmandkillmessages will no longer be dropped under race conditions π₯. - Various bits of Perl's build infrastructure are no longer converted to win32 line endings at release time. If this hurts you, please report the problem with the perlbug program included with perl.
π Known Problems π
This is a list of some significant unfixed bugs, which are regressions from either 5.10.x or 5.8.x. bestie these are the oopsies, read carefully π
- Some CPANPLUS tests may fail if there is a functioning file
../../cpanp-run-perloutside your build directory. The failure shouldn't imply there's a problem with the actual functional software. The bug is already fixed in [RT #74188] and is scheduled for inclusion in perl-v5.12.1. List::Util::firstmisbehaves in the presence of a lexical$_(typically introduced bymy $_or implicitly bygiven). The variable which gets set for each iteration is the package variable$_, not the lexical$_[RT #67694].
A similar issue may occur in other modules that provide functions which take a block as their first argument, like
foo { ... $_ ...} list
- Some regexes may run much more slowly when run in a child thread compared with the thread the pattern was compiled into [RT #55600].
- Things like
""\N{LATIN SMALL LIGATURE FF}" =~ /\N{LATIN SMALL LETTER F}+/"will appear to hang as they get into a very long running loop [RT #72998]. yeah that one just sits there vibing forever, do not do that π - Several porters have reported mysterious crashes when Perl's entire test suite is run after a build on certain Windows 2000 systems. When run by hand, the individual tests reportedly work fine. spooky π»
π Errata π
- This one is actually a change introduced in 5.10.0, but it was missed from that release's perldelta, so it is mentioned here instead.
A bugfix related to the handling of the /m modifier and qr resulted in a change of behaviour between 5.8.x and 5.10.0:
# matches in 5.8.x, doesn't match in 5.10.0
$re = qr/^bar/; "foo\nbar" =~ /$re/m;
π ACKNOWLEDGEMENTS π
okay so real talk, bestie: Perl 5.12.0 is like two whole years of development since Perl 5.10.0, and it's packing over 750,000 lines of changes across over 3,000 files from over 200 authors and committers. that's not a patch, that's a glow up. β¨
Perl keeps flourishing into its third decade (iconic behavior, honestly) thanks to a vibrant community of users and developers. the following people are known to have contributed the improvements that became Perl 5.12.0 β shoutout to every single one of them, no cap:
- Aaron Crane, Abe Timmerman, Abhijit Menon-Sen, Abigail, Adam Russell, Adriano Ferreira, Γvar ArnfjΓΆrΓ° Bjarmason, Alan Grover, Alexandr Ciornii, Alex Davies, Alex Vandiver, Andreas Koenig, Andrew Rodland, andrew@sundale.net, Andy Armstrong, Andy Dougherty, Jose AUGUSTE-ETIENNE
- Benjamin Smith, Ben Morrow, bharanee rathna, Bo Borgerson, Bo Lindbergh, Brad Gilbert, Bram, Brendan O'Dea, brian d foy
- Charles Bailey, Chip Salzenberg, Chris 'BinGOs' Williams, Christoph Lamprecht, Chris Williams, chromatic, Claes Jakobsson, Craig A. Berry
- Dan Dascalescu, Daniel Frederick Crisman, Daniel M. Quinlan, Dan Jacobson, Dan Kogai, Dave Mitchell, Dave Rolsky, David Cantrell, David Dick, David Golden, David Mitchell, David M. Syzdek, David Nicol, David Wheeler, Dennis Kaarsemaker, Dintelmann, Peter, Dominic Dunlop, Dr.Ruud, Duke Leto
- Enrico Sorcinelli, Eric Brine, Father Chrysostomos, Florian Ragwitz, Frank Wiegand
- Gabor Szabo, Gene Sullivan, Geoffrey T. Dairiki, George Greer, Gerard Goossen, Gisle Aas, Goro Fuji, Graham Barr, Green, Paul
- Hans Dieter Pearcey, Harmen, H. Merijn Brand, Hugo van der Sanden
- Ian Goodacre, Igor Sutton, Ingo Weinhold
- James Bence, James Mastros, Jan Dubois, Jari Aalto, Jarkko Hietaniemi, Jay Hannah, Jerry Hedden, Jesse Vincent, Jim Cromie, Jody Belka, John E. Malmberg, John Malmberg, John Peacock, John Peacock via RT, John P. Linderman, John Wright, Josh ben Jore, Jos I. Boumans
- Karl Williamson, Kenichi Ishigaki, Ken Williams, Kevin Brintnall, Kevin Ryde, Kurt Starsinic
- Leon Brocard, Lubomir Rintel, Luke Ross
- Marcel GrΓΌnauer, Marcus Holland-Moritz, Mark Jason Dominus, Marko Asplund, Martin Hasch, Mashrab Kuvatov, Matt Kraai, Matt S Trout, Max Maischein, Michael Breen, Michael Cartmell, Michael G Schwern, Michael Witten, Mike Giroux, Milosz Tanski, Moritz Lenz
- Nicholas Clark, Nick Cleaton, Niko Tyni
- Offer Kaye, Osvaldo Villalon
- Paul Fenwick, Paul Gaborit, Paul Green, Paul Johnson, Paul Marquess, Philip Hazel, Philippe Bruhat
- Rafael Garcia-Suarez, Rainer Tammer, Rajesh Mandalemula, Reini Urban, RenΓ©e BΓ€cker, Ricardo Signes, Ricardo SIGNES, Richard Foley, Rich Rauenzahn, Rick Delaney, Risto Kankkunen, Robert May, Roberto C. Sanchez, Robin Barker
- SADAHIRO Tomoyuki, Salvador Ortiz Garcia, Sam Vilain, Scott Lanning, SΓ©bastien Aperghis-Tramoni, SΓ©rgio Durigan JΓΊnior, Shlomi Fish, Simon 'corecode' Schubert, Sisyphus, Slaven Rezic, Smylers, Steffen MΓΌller, Steffen Ullrich, Stepan Kasal, Steve Hay, Steven Schubiger, Steve Peters
- Tels, The Doctor, Tim Bunce, Tim Jenness, Todd Rinaldo, Tom Christiansen, Tom Hukins, Tom Wyant, Tony Cook, Torsten Schoenfeld, Tye McQueen
- Vadim Konovalov, Vincent Pit
- Hio YAMASHINA, Yasuhiro Matsumoto, Yitzchak Scott-Thoennes, Yuval Kogman, Yves Orton
- Zefram, Zsban Ambrus
ngl, this list is woefully incomplete β it's automatically generated from version control history, so it's literally missing people by accident. in particular, it doesn't include the names of the (very much appreciated π«Ά) contributors who reported issues in previous versions of Perl that helped make Perl 5.12.0 better. for a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl 5.12.0 distribution.
our "retired" pumpkings Nicholas Clark and Rafael Garcia-Suarez deserve special thanks for their brilliant and substantive ongoing contributions. Nicholas personally authored over 30% of the patches since 5.10.0. Rafael comes in second in patch authorship with 11%, but is first by a long shot in committing patches authored by others, pushing 44% of the commits since 5.10.0 in this category, often after providing considerable coaching to the patch authors. these statistics in no way comprise all of their contributions, but express in shorthand that we couldn't have done it without them. π
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. πΈ
π REPORTING BUGS π
if you find what you think is a bug, bestie, 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. go look, it's giving research era π
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 β like, tiny. a minimal repro is the whole vibe. your bug report, along with the output of perl -V, will be sent off to perlbug@perl.org to be analyzed by the Perl porting team. π¨
β οΈ if the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then 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. like fr fr, don't put your random CPAN module drama there π
π 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. http://dev.perl.org/perl5/errata.htmlfor a list of issues found after this release, as well as a list of CPAN modules known to be incompatible with this release.
and that's a wrap on the whole delta, bestie!! π this page was perl v5.42.3, dated 2026-08-03, and it's the PERL5120DELTA(1) manual page β go forth and write some absolutely unhinged but correct Perl. mwah π
β¨π¦
π¦ where this page comes from
- fedora 43: perl-doc 5.42.3-524.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- fedora 44: perl-doc 5.42.3-525.fc44 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND Unicode-3.0 AND LicenseRef-Fedora-UltraPermissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms