"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pod/perldelta.pod" between
perl-5.32.0-RC0.tar.xz and perl-5.32.0-RC1.tar.xz

About: Perl (Practical Extraction and Report Language) is a high-level, general-purpose, interpreted, dynamic programming language. Release candidate.

perldelta.pod  (perl-5.32.0-RC0.tar.xz):perldelta.pod  (perl-5.32.0-RC1.tar.xz)
=pod
=encoding utf8 =encoding utf8
=head1 NAME =head1 NAME
perldelta - what is new for perl v5.32.0 perldelta - what is new for perl v5.32.0
=head1 DESCRIPTION =head1 DESCRIPTION
This document describes differences between the 5.30.0 release and the 5.32.0 This document describes differences between the 5.30.0 release and the 5.32.0
release. release.
If you are upgrading from an earlier release such as 5.28.0, first read If you are upgrading from an earlier release such as 5.28.0, first read
L<perl5300delta>, which describes differences between 5.28.0 and 5.30.0. L<perl5300delta>, which describes differences between 5.28.0 and 5.30.0.
=head1 Core Enhancements =head1 Core Enhancements
=head2 Unicode 13.0 is supported =head2 The isa Operator
See L<https://www.unicode.org/versions/Unicode13.0.0/> for details. A new experimental infix operator called C<isa> tests whether a given object
is an instance of a given class or a class derived from it:
=head2 It is now possible to write C<qr/\p{Name=...}/>, or if( $obj isa Package::Name ) { ... }
C<qr!\p{na=/(SMILING|GRINNING) FACE/}!>
The Unicode Name property is now accessible in regular expression For more detail see L<perlop/Class Instance Operator>.
patterns, as an alternative to C<\N{...}>.
A comparison of the two methods is given in
L<perlunicode/Comparison of \N{...} and \p{name=...}>.
The second example above shows that wildcard subpatterns are also usable =head2 Unicode 13.0 is supported
in this property. See L<perlunicode/Wildcards in Property Values>.
See L<https://www.unicode.org/versions/Unicode13.0.0/> for details.
=head2 Chained comparisons capability =head2 Chained comparisons capability
Some comparison operators, as their associativity, I<chain> with some Some comparison operators, as their associativity, I<chain> with some
operators of the same precedence (but never with operators of different operators of the same precedence (but never with operators of different
precedence). precedence).
if ( $x < $y <= $z ) {...} if ( $x < $y <= $z ) {...}
behaves exactly like: behaves exactly like:
if ( $x < $y && $y <= $z ) {...} if ( $x < $y && $y <= $z ) {...}
(assuming that C<"$y"> is as simple a scalar as it looks.) (assuming that C<"$y"> is as simple a scalar as it looks.)
You can read more about this in L<perlop> under You can read more about this in L<perlop> under
L<perlop/Operator Precedence and Associativity>. L<perlop/Operator Precedence and Associativity>.
=head2 Unicode 13.0 (beta) is supported
Using the beta causes us to participate in the soak cycle for
Unicode. Final approval for the existing changes has been made by the
Unicode consortium, and there are few possibilities that this could
break existing programs, as there are few changes to already existing
characters.
Information about the changes is at
L<https://unicode.org/versions/beta-13.0.0.html>.
=head2 New Unicode properties C<Identifier_Status> and C<Identifier_Type> suppor ted =head2 New Unicode properties C<Identifier_Status> and C<Identifier_Type> suppor ted
Unicode is in the process of revising its regular expression Unicode is in the process of revising its regular expression
requirements: L<https://www.unicode.org/draft/reports/tr18/tr18.html>. requirements: L<https://www.unicode.org/draft/reports/tr18/tr18.html>.
As part of that they are wanting more properties to be exposed, ones As part of that they are wanting more properties to be exposed, ones
that aren't part of the strict UCD (Unicode character database). These that aren't part of the strict UCD (Unicode character database). These
two are used for examining inputs for security purposes. Details on two are used for examining inputs for security purposes. Details on
their usage is at L<https://www.unicode.org/reports/tr39/proposed.html>. their usage is at L<https://www.unicode.org/reports/tr39/proposed.html>.
=head2 It is now possible to write C<qr/\p{Name=...}/>, or C<\p{Na=...}> =head2 It is now possible to write C<qr/\p{Name=...}/>, or
C<qr!\p{na=/(SMILING|GRINNING) FACE/}!>
The Unicode Name property is now accessible in regular expression The Unicode Name property is now accessible in regular expression
patterns using the above syntaxes, as an alternative to C<\N{...}>. patterns, as an alternative to C<\N{...}>.
A comparison of the two methods is given in A comparison of the two methods is given in
L<perlunicode/Comparison of \N{...} and \p{name=...}>. L<perlunicode/Comparison of \N{...} and \p{name=...}>.
The second example above shows that wildcard subpatterns are also usable
in this property. See L<perlunicode/Wildcards in Property Values>.
=head2 The C<POSIX::mblen()>, C<mbtowc>, and C<wctomb> functions now =head2 The C<POSIX::mblen()>, C<mbtowc>, and C<wctomb> functions now
work on shift state locales and are thread-safe on C99 and above work on shift state locales and are thread-safe on C99 and above
compilers when executed on a platform that has locale thread-safety; the compilers when executed on a platform that has locale thread-safety; the
length parameters are now optional. length parameters are now optional.
These functions are always executed under the current C language locale. These functions are always executed under the current C language locale.
(See L<perllocale>.) Most locales are stateless, but a few, notably the (See L<perllocale>.) Most locales are stateless, but a few, notably the
very rarely encountered ISO 2022, maintain a state between calls to very rarely encountered ISO 2022, maintain a state between calls to
these functions. Previously the state was cleared on every call, but these functions. Previously the state was cleared on every call, but
now the state is not reset unless the appropriate parameter is C<undef>. now the state is not reset unless the appropriate parameter is C<undef>.
On threaded perls, the C99 functions L<mbrlen(3)>, L<mbrtowc(3)>, and On threaded perls, the C99 functions L<mbrlen(3)>, L<mbrtowc(3)>, and
L<wcrtomb(3)>, when available, are substituted for the plain functions. L<wcrtomb(3)>, when available, are substituted for the plain functions.
This makes these functions thread-safe when executing on a locale This makes these functions thread-safe when executing on a locale
thread-safe platform. thread-safe platform.
The string length parameters in C<mblen> and C<mbtowc> are now optional; The string length parameters in C<mblen> and C<mbtowc> are now optional;
useful only if you wish to restrict the length parsed in the source useful only if you wish to restrict the length parsed in the source
string to less than the actual length. string to less than the actual length.
=head2 The isa Operator
A new experimental infix operator called C<isa> tests whether a given object
is an instance of a given class or a class derived from it:
if( $obj isa Package::Name ) { ... }
For more detail see L<perlop/Class Instance Operator>.
=head2 Alpha assertions are no longer experimental =head2 Alpha assertions are no longer experimental
See L<perlre/(*pla:pattern)>, L<perlre/(*plb:pattern)>, See L<perlre/(*pla:pattern)>, L<perlre/(*plb:pattern)>,
L<perlre/(*nla:pattern)>>, and L<perlre/(*nlb:pattern)>. L<perlre/(*nla:pattern)>>, and L<perlre/(*nlb:pattern)>.
Use of these no longer generates a warning; existing code that disables Use of these no longer generates a warning; existing code that disables
the warning category C<experimental::script_run> will continue to work the warning category C<experimental::alpha_assertions> will continue to work
without any changes needed. Enabling the category has no effect. without any changes needed. Enabling the category has no effect.
=head2 Script runs are no longer experimental =head2 Script runs are no longer experimental
See L<perlre/Script Runs>. Use of these no longer generates a warning; See L<perlre/Script Runs>. Use of these no longer generates a warning;
existing code that disables the warning category existing code that disables the warning category
C<experimental::alpha_assertions> will continue to work without any C<experimental::script_run> will continue to work without any
changes needed. Enabling the category has no effect. changes needed. Enabling the category has no effect.
=head2 Feature checks are now faster =head2 Feature checks are now faster
Previously feature checks in the parser required a hash lookup when Previously feature checks in the parser required a hash lookup when
features we set outside of a feature bundle, this has been optimized features were set outside of a feature bundle, this has been optimized
to a bit mask check. [#17229] to a bit mask check. [L<GH #17229|https://github.com/Perl/perl5/issues/17229>]
=head2 Perl is now developed on GitHub =head2 Perl is now developed on GitHub
Perl is now developed on Github, you can find us at Perl is now developed on GitHub. You can find us at
L<https://github.com/Perl/perl5>. L<https://github.com/Perl/perl5>.
Non-security bugs should now be reported via Github. Non-security bugs should now be reported via GitHub. Security issues should
continue to be reported as documented in L<perlsec>.
=head2 Now can dump compiled patterns before optimization =head2 Compiled patterns can now be dumped before optimization
This is primarily useful for tracking down bugs in the regular This is primarily useful for tracking down bugs in the regular
expression compiler. This dump happens on C<-DDEBUGGING> perls, if you expression compiler. This dump happens on C<-DDEBUGGING> perls, if you
specify C<-Drv> on the command line; or on any perl if the pattern is specify C<-Drv> on the command line; or on any perl if the pattern is
compiled within the scope of S<C<use re qw(Debug DUMP_PRE_OPTIMIZE)>> or compiled within the scope of S<C<use re qw(Debug DUMP_PRE_OPTIMIZE)>> or
S<C<use re qw(Debug COMPILE EXTRA)>>. (All but the 2nd case display S<C<use re qw(Debug COMPILE EXTRA)>>. (All but the second case display
other information as well.) other information as well.)
=head1 Security =head1 Security
No security-related changes. =head2 [CVE-2020-10543] Buffer overflow caused by a crafted regular expression
A signed C<size_t> integer overflow in the storage space calculations for
nested regular expression quantifiers could cause a heap buffer overflow in
Perl's regular expression compiler that overwrites memory allocated after the
regular expression storage space with attacker supplied data.
The target system needs a sufficient amount of memory to allocate partial
expansions of the nested quantifiers prior to the overflow occurring. This
requirement is unlikely to be met on 64-bit systems.
Discovered by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup).
=head2 [CVE-2020-10878] Integer overflow via malformed bytecode produced by a cr
afted regular expression
Integer overflows in the calculation of offsets between instructions for the
regular expression engine could cause corruption of the intermediate language
state of a compiled regular expression. An attacker could abuse this behaviour
to insert instructions into the compiled form of a Perl regular expression.
Discovered by: Hugo van der Sanden and Slaven Rezic.
=head2 [CVE-2020-12723] Buffer overflow caused by a crafted regular expression
Recursive calls to C<S_study_chunk()> by Perl's regular expression compiler to
optimize the intermediate language representation of a regular expression could
cause corruption of the intermediate language state of a compiled regular
expression.
Discovered by: Sergey Aleynikov.
=head2 Additional Note
An application written in Perl would only be vulnerable to any of the above
flaws if it evaluates regular expressions supplied by the attacker. Evaluating
regular expressions in this fashion is known to be dangerous since the regular
expression engine does not protect against denial of service attacks in this
usage scenario.
=head1 Incompatible Changes =head1 Incompatible Changes
=head2 Certain pattern matching features are now prohibited in compiling =head2 Certain pattern matching features are now prohibited in compiling
Unicode property value wildcard subpatterns Unicode property value wildcard subpatterns
These few features are either inappropriate or interfere with the These few features are either inappropriate or interfere with the
algorithm used to accomplish this task. The complete list is in algorithm used to accomplish this task. The complete list is in
L<perlunicode/Wildcards in Property Values>. L<perlunicode/Wildcards in Property Values>.
=head2 Stop pretending C<POSIX::mbstowcs> and C<POSIX::wcstombs> are =head2 Unused functions C<POSIX::mbstowcs> and C<POSIX::wcstombs> are removed
supported
These functions could never have worked due to a defective interface These functions could never have worked due to a defective interface
specification. There is clearly no demand for them, given that no one specification. There is clearly no demand for them, given that no one
has ever complained in the many years the functions were claimed to be has ever complained in the many years the functions were claimed to be
available, hence so-called "support" for them is now dropped. available, hence so-called "support" for them is now dropped.
=head2 A bug fix for C<(?[...])> may have caused some patterns to no =head2 A bug fix for C<(?[...])> may have caused some patterns to no
longer compile longer compile
See L</Selected Bug Fixes>. The heuristics previously used may have let See L</Selected Bug Fixes>. The heuristics previously used may have let
some constructs compile (perhaps not with the programmer's intended some constructs compile (perhaps not with the programmer's intended
effect) that should have been errors. None are known, but it is effect) that should have been errors. None are known, but it is
possible that some erroneous constructs no longer compile. possible that some erroneous constructs no longer compile.
=head2 C<\p{I<user-defined>}> properties now always override official =head2 C<\p{I<user-defined>}> properties now always override official
Unicode ones Unicode ones
Previously, if and only if a user-defined property was declared prior to Previously, if and only if a user-defined property was declared prior to
the compilation of the regular expression pattern containing it, its the compilation of the regular expression pattern that contains it, its
definition was used instead of any official Unicode property with the definition was used instead of any official Unicode property with the
same name. Now, it always overrides the official property. This same name. Now, it always overrides the official property. This
change could break existing code that relied (likely unwittingly) on the change could break existing code that relied (likely unwittingly) on the
previous behavior. Without this fix, if Unicode released a new version previous behavior. Without this fix, if Unicode released a new version
with a new property that happens to have the same name as the one you with a new property that happens to have the same name as the one you
had long been using, your program would break when you upgraded to a had long been using, your program would break when you upgraded to a
perl that used that new Unicode version. See L<perlunicode/User-Defined perl that used that new Unicode version. See L<perlunicode/User-Defined
Character Properties>. [L<GH #17205|https://github.com/Perl/perl5/issues/17205> Character Properties>. [L<GH #17205|https://github.com/Perl/perl5/issues/17205>]
]
=head2 Modifiable variables are no longer permitted in constants =head2 Modifiable variables are no longer permitted in constants
Code like: Code like:
my $var; my $var;
$sub = sub () { $var }; $sub = sub () { $var };
where C<$var> is referenced elsewhere in some sort of modifiable context now where C<$var> is referenced elsewhere in some sort of modifiable context now
produces an exception when the sub is defined. produces an exception when the sub is defined.
This error can be avoided by adding a return to the sub definition: This error can be avoided by adding a return to the sub definition:
$sub = sub () { return $var }; $sub = sub () { return $var };
This has been deprecated since Perl 5.22. This has been deprecated since Perl 5.22.
[L<perl #131138|https://rt.perl.org/Ticket/Display.html?id=131138>]
L<[perl #131138]|https://rt.perl.org/Ticket/Display.html?id=131138>.
=head2 Use of L<C<vec>|perlfunc/vec EXPR,OFFSET,BITS> on strings with code point s above 0xFF is forbidden =head2 Use of L<C<vec>|perlfunc/vec EXPR,OFFSET,BITS> on strings with code point s above 0xFF is forbidden
Such strings are represented internally in UTF-8, and C<vec> is a Such strings are represented internally in UTF-8, and C<vec> is a
bit-oriented operation that will likely give unexpected results on those bit-oriented operation that will likely give unexpected results on those
strings. This was deprecated in perl 5.28.0. strings. This was deprecated in perl 5.28.0.
=head2 Use of code points over 0xFF in string bitwise operators =head2 Use of code points over 0xFF in string bitwise operators
Some uses of these were already illegal after a previous deprecation Some uses of these were already illegal after a previous deprecation
cycle. The remaining uses are now prohibited, having been deprecated in perl cycle. The remaining uses are now prohibited, having been deprecated in perl
5.28.0. See L<perldeprecation>. 5.28.0. See L<perldeprecation>.
=head2 C<Sys::Hostname::hostname()> does not accept arguments =head2 C<Sys::Hostname::hostname()> does not accept arguments
This usage was deprecated in perl 5.28.0 and is now fatal. This usage was deprecated in perl 5.28.0 and is now fatal.
=head2 Plain "0" string now treated as a number for range operator =head2 Plain "0" string now treated as a number for range operator
Previously a range C<"0" .. "-1"> would produce a range of numeric Previously a range C<"0" .. "-1"> would produce a range of numeric
strings from "0" through "99"; this now produces an empty list, just strings from "0" through "99"; this now produces an empty list, just
as C<0 .. -1> does. This also means that C<"0" .. "9"> now produces a as C<0 .. -1> does. This also means that C<"0" .. "9"> now produces a
list of integers, where previously it would produce a list of strings. list of integers, where previously it would produce a list of strings.
This was due to a special case that treated strings starting with "0" This was due to a special case that treated strings starting with "0"
as strings so ranges like C<"00" .. "03"> produced C<"00", "01", "02", "03">, as strings so ranges like C<"00" .. "03"> produced C<"00", "01", "02", "03">,
but didn't specially handle the string C<"0">. but didn't specially handle the string C<"0">.
[L<perl #133695|https://rt.perl.org/Ticket/Display.html?id=133695>]
L<[perl #133695]|https://rt.perl.org/Ticket/Display.html?id=133695>
=head2 C<\K> now disallowed in look-ahead and look-behind assertions =head2 C<\K> now disallowed in look-ahead and look-behind assertions
This was disallowed because it causes unexpected behaviour, and no-one This was disallowed because it causes unexpected behaviour, and no-one
could define what the desired behaviour was. could define what the desired behaviour should be.
[L<perl #124256|https://rt.perl.org/Ticket/Display.html?id=124256>]
L<[perl #124256]|https://rt.perl.org/Ticket/Display.html?id=124256>
=head1 Deprecations
=head2 Module removals
The following modules will be removed from the core distribution in a
future release, and will at that time need to be installed from CPAN.
Distributions on CPAN which require these modules will need to list them as
prerequisites.
The core versions of these modules will now issue C<"deprecated">-category
warnings to alert you to this fact. To silence these deprecation warnings,
install the modules in question from CPAN.
Note that these are (with rare exceptions) fine modules that you are encouraged
to continue to use. Their disinclusion from core primarily hinges on their
necessity to bootstrapping a fully functional, CPAN-capable Perl installation,
not usually on concerns over their design.
=over
=item B::Debug
C<B::Debug> is no longer shipped with Perl, you can still install it from CPAN.
=back
=head1 Performance Enhancements =head1 Performance Enhancements
=over 4 =over 4
=item * =item *
C<my_strnlen> has been sped up for systems that don't have their own C<my_strnlen> has been sped up for systems that don't have their own
C<strnlen> implementation. C<strnlen> implementation.
=item * =item *
C<grok_bin_oct_hex> (and so, C<grok_bin>, C<grok_oct>, and C<grok_hex>) C<grok_bin_oct_hex> (and so, C<grok_bin>, C<grok_oct>, and C<grok_hex>)
have been sped up. have been sped up.
=item * =item *
C<grok_number_flags> has been sped up. C<grok_number_flags> has been sped up.
=item *
C<sort> is now noticeably faster in cases such as C<< sort {$a <=> $b} >> or
C<< sort {$b <=> $a} >>. [L<GH #17608|https://github.com/Perl/perl5/pull/17608>]
=back =back
=head1 Modules and Pragmata =head1 Modules and Pragmata
The list of new and updated modules is modified automatically as part of
preparing a Perl release, so the only reason to manually add entries here is if
you're summarising the important changes in the module update. (Also, if the
manually-added details don't match the automatically-generated ones, the
release manager will have to investigate the situation carefully.)
=head2 Updated Modules and Pragmata =head2 Updated Modules and Pragmata
=over 4 =over 4
=item * =item *
L<Archive::Tar> has been upgraded from version 2.32 to 2.36. L<Archive::Tar> has been upgraded from version 2.32 to 2.36.
=item * =item *
skipping to change at line 361 skipping to change at line 352
=item * =item *
L<Digest::MD5> has been upgraded from version 2.55 to 2.55_01. L<Digest::MD5> has been upgraded from version 2.55 to 2.55_01.
=item * =item *
L<Dumpvalue> has been upgraded from version 1.18 to 1.21. L<Dumpvalue> has been upgraded from version 1.18 to 1.21.
Previously, when dumping elements of an array and encountering an undefined Previously, when dumping elements of an array and encountering an undefined
value, the string printed would have been C<empty array>. This has been value, the string printed would have been C<empty array>. This has been
changed to what was apparently originally intended: C<empty slot>. changed to what was apparently originally intended: C<empty slot>.
=item * =item *
L<DynaLoader> has been upgraded from version 1.45 to 1.47. L<DynaLoader> has been upgraded from version 1.45 to 1.47.
=item * =item *
L<Encode> has been upgraded from version 3.01 to 3.06. L<Encode> has been upgraded from version 3.01 to 3.06.
skipping to change at line 429 skipping to change at line 420
=item * =item *
L<Getopt::Long> has been upgraded from version 2.5 to 2.51. L<Getopt::Long> has been upgraded from version 2.5 to 2.51.
=item * =item *
L<Hash::Util> has been upgraded from version 0.22 to 0.23. L<Hash::Util> has been upgraded from version 0.22 to 0.23.
The Synopsis has been updated as the example code stopped working with The Synopsis has been updated as the example code stopped working with
newer perls. newer perls.
[L<GH #17399|https://github.com/Perl/perl5/issues/17399>] [L<GH #17399|https://github.com/Perl/perl5/issues/17399>]
=item * =item *
L<I18N::Langinfo> has been upgraded from version 0.18 to 0.19. L<I18N::Langinfo> has been upgraded from version 0.18 to 0.19.
=item * =item *
L<I18N::LangTags> has been upgraded from version 0.43 to 0.44. L<I18N::LangTags> has been upgraded from version 0.43 to 0.44.
Document the C<IGNORE_WIN32_LOCALE> environment variable. Document the C<IGNORE_WIN32_LOCALE> environment variable.
=item * =item *
L<IO> has been upgraded from version 1.40 to 1.43. L<IO> has been upgraded from version 1.40 to 1.43.
L<IO::Socket> no longer caches a zero protocol value, since this L<IO::Socket> no longer caches a zero protocol value, since this
indicates that the implementation will select a protocol. This means indicates that the implementation will select a protocol. This means
that on platforms that don't implement C<SO_PROTOCOL> for a given that on platforms that don't implement C<SO_PROTOCOL> for a given
socket type the protocol method may return C<undef>. socket type the protocol method may return C<undef>.
The supplied I<TO> is now always honoured on calls to the send() The supplied I<TO> is now always honoured on calls to the C<send()>
method. L<[perl #133936]|https://rt.perl.org/Ticket/Display.html?id=133936> method. [L<perl #133936|https://rt.perl.org/Ticket/Display.html?id=133936>]
=item * =item *
IO-Compress has been upgraded from version 2.084 to 2.093. IO-Compress has been upgraded from version 2.084 to 2.093.
=item * =item *
L<IPC::Cmd> has been upgraded from version 1.02 to 1.04. L<IPC::Cmd> has been upgraded from version 1.02 to 1.04.
=item * =item *
skipping to change at line 556 skipping to change at line 546
=item * =item *
L<re> has been upgraded from version 0.37 to 0.40. L<re> has been upgraded from version 0.37 to 0.40.
=item * =item *
L<Safe> has been upgraded from version 2.40 to 2.41. L<Safe> has been upgraded from version 2.40 to 2.41.
=item * =item *
L<Scalar::Util> has been upgraded from version 1.50 to 1.53. L<Scalar::Util> has been upgraded from version 1.50 to 1.55.
=item * =item *
L<SelfLoader> has been upgraded from version 1.25 to 1.26. L<SelfLoader> has been upgraded from version 1.25 to 1.26.
=item * =item *
L<Socket> has been upgraded from version 2.027 to 2.029. L<Socket> has been upgraded from version 2.027 to 2.029.
=item * =item *
L<Storable> has been upgraded from version 3.15 to 3.21. L<Storable> has been upgraded from version 3.15 to 3.21.
Use of C<note()> from L<Test::More> is now optional in tests. This works Use of C<note()> from L<Test::More> is now optional in tests. This works
around a circular dependency with L<Test::More> when installing on very around a circular dependency with L<Test::More> when installing on very
old perls from CPAN. old perls from CPAN.
Fix to disallow vstring magic strings over 2GB. Vstring magic strings over 2GB are now disallowed.
Regular expressions objects weren't properly counted for object id Regular expressions objects weren't properly counted for object id
purposes on retrieve. This would corrupt the resulting structure, or purposes on retrieve. This would corrupt the resulting structure, or
cause a runtime error in some cases. L<[perl #134179]|https://rt.perl.org/Ticke cause a runtime error in some cases. [L<perl #134179|https://rt.perl.org/Ticket/
t/Display.html?id=134179> Display.html?id=134179>]
=item * =item *
L<Sys::Hostname> has been upgraded from version 1.22 to 1.23. L<Sys::Hostname> has been upgraded from version 1.22 to 1.23.
=item * =item *
L<Sys::Syslog> has been upgraded from version 0.35 to 0.36. L<Sys::Syslog> has been upgraded from version 0.35 to 0.36.
=item * =item *
skipping to change at line 633 skipping to change at line 623
=item * =item *
L<Tie::StdHandle> has been upgraded from version 4.5 to 4.6. L<Tie::StdHandle> has been upgraded from version 4.5 to 4.6.
=item * =item *
L<Time::HiRes> has been upgraded from version 1.9760 to 1.9764. L<Time::HiRes> has been upgraded from version 1.9760 to 1.9764.
Removed obsolete code such as support for pre-5.6 perl and classic Removed obsolete code such as support for pre-5.6 perl and classic
MacOS. L<[perl #134288]|https://rt.perl.org/Ticket/Display.html?id=134288> MacOS. [L<perl #134288|https://rt.perl.org/Ticket/Display.html?id=134288>]
=item * =item *
L<Time::Piece> has been upgraded from version 1.33 to 1.3401. L<Time::Piece> has been upgraded from version 1.33 to 1.3401.
=item * =item *
L<Unicode::Normalize> has been upgraded from version 1.26 to 1.27. L<Unicode::Normalize> has been upgraded from version 1.26 to 1.27.
=item * =item *
skipping to change at line 676 skipping to change at line 666
=back =back
=head2 Removed Modules and Pragmata =head2 Removed Modules and Pragmata
=over 4 =over 4
=item * =item *
Pod::Parser has been removed from the core distribution. Pod::Parser has been removed from the core distribution.
It still is available for download from CPAN. This resolves L<[perl It still is available for download from CPAN. This resolves [L<perl
#119439]|https://rt.perl.org/Ticket/Display.html?id=119439>. #119439|https://rt.perl.org/Ticket/Display.html?id=119439>].
=back =back
=head1 Documentation =head1 Documentation
=head2 Changes to Existing Documentation =head2 Changes to Existing Documentation
We have attempted to update the documentation to reflect the changes We have attempted to update the documentation to reflect the changes
listed in this document. If you find any we have missed, open an issue listed in this document. If you find any we have missed, open an issue
at L<https://github.com/Perl/perl5/issues>. at L<https://github.com/Perl/perl5/issues>.
Additionally, the following selected changes have been made: Additionally, the following selected changes have been made:
=head3 L<perldebguts> =head3 L<perldebguts>
=over 4 =over 4
=item Simplify a couple regnode definitions =item *
Update BOUND and NBOUND definitions. Simplify a few regnode definitions
=item Add ANYOFHs regnode Update C<BOUND> and C<NBOUND> definitions.
This node is like ANYOFHb, but is used when more than one leading byte =item *
Add ANYOFHs regnode
This node is like C<ANYOFHb>, but is used when more than one leading byte
is the same in all the matched code points. is the same in all the matched code points.
ANYOFHb is used to avoid having to convert from UTF-8 to code point for C<ANYOFHb> is used to avoid having to convert from UTF-8 to code point for
something that won't match. It checks that the first byte in the UTF-8 something that won't match. It checks that the first byte in the UTF-8
encoded target is the desired one, thus ruling out most of the possible encoded target is the desired one, thus ruling out most of the possible
code points. code points.
=back =back
=head3 L<perlapi> =head3 L<perlapi>
=over 4 =over 4
=item * =item *
skipping to change at line 740 skipping to change at line 734
The documentation for C<grok_bin>, C<grok_oct>, and C<grok_hex> has been The documentation for C<grok_bin>, C<grok_oct>, and C<grok_hex> has been
updated and clarified. updated and clarified.
=back =back
=head3 L<perldiag> =head3 L<perldiag>
=over 4 =over 4
=item Add documentation for experimental 'isa' operator =item *
Add documentation for experimental 'isa' operator
(S experimental::isa) This warning is emitted if you use the (C<isa>) (S experimental::isa) This warning is emitted if you use the (C<isa>)
operator. This operator is currently experimental and its behaviour may operator. This operator is currently experimental and its behaviour may
change in future releases of Perl. change in future releases of Perl.
=back =back
=head3 L<perlfunc> =head3 L<perlfunc>
=over 4 =over 4
skipping to change at line 770 skipping to change at line 766
It can be altered by the mechanism described at It can be altered by the mechanism described at
L<perlsyn/"Plain Old Comments (Not!)">. L<perlsyn/"Plain Old Comments (Not!)">.
=item C<__LINE__> =item C<__LINE__>
It can be altered by the mechanism described at It can be altered by the mechanism described at
L<perlsyn/"Plain Old Comments (Not!)">. L<perlsyn/"Plain Old Comments (Not!)">.
=item C<return> =item C<return>
Mention that you cannot return from do BLOCK Now mentions that you cannot return from C<do BLOCK>.
=item C<open> =item C<open>
The C<open()> section had been renovated significantly. The C<open()> section had been renovated significantly.
=back =back
=head3 L<perlguts> =head3 L<perlguts>
=over 4 =over 4
=item * =item *
Don't suggest using perl's C<malloc> anymore. Modern system C<malloc> is No longer suggesting using perl's C<malloc>. Modern system C<malloc> is
assumed to be much better than perl's implementation at this point. assumed to be much better than perl's implementation now.
=item * =item *
Documentation about embed.fnc flags has been removed. F<embed.fnc> now has Documentation about F<embed.fnc> flags has been removed. F<embed.fnc> now has
sufficient comments within it. Anyone changing that file will see those sufficient comments within it. Anyone changing that file will see those
comments first, so entries here are now redundant. comments first, so entries here are now redundant.
=item * =item *
Update documentation for UTF8f Updated documentation for C<UTF8f>
=item * =item *
Add missing '=for apidoc' lines Added missing C<=for apidoc> lines
=back =back
=head3 L<perlhacktips> =head3 L<perlhacktips>
=over 4 =over 4
=item * =item *
Perl strings are NOT the same as C strings The differences between Perl strings and C strings are now detailed.
=back =back
=head3 L<perlintro> =head3 L<perlintro>
=over 4 =over 4
=item * =item *
The docs for the repetition operator C<x> have been clarified The documentation for the repetition operator C<x> have been clarified.
[L<GH #17335|https://github.com/Perl/perl5/issues/17335>] [L<GH #17335|https://github.com/Perl/perl5/issues/17335>]
=back =back
=head3 L<perlipc> =head3 L<perlipc>
=over 4 =over 4
=item * =item *
skipping to change at line 845 skipping to change at line 840
Various updates and fixes including making all examples strict-safe and Various updates and fixes including making all examples strict-safe and
replacing C<-w> with C<use warnings>. replacing C<-w> with C<use warnings>.
=back =back
=head3 L<perlop> =head3 L<perlop>
=over 4 =over 4
=item 'isa' operator is experimental =item *
'isa' operator is experimental
This is an experimental feature and is available from Perl 5.31.7 when enabled This is an experimental feature and is available when enabled
by C<use feature 'isa'>. It emits a warning in the C<experimental::isa> by C<use feature 'isa'>. It emits a warning in the C<experimental::isa>
category. category.
=back =back
=head3 L<perlpod> =head3 L<perlpod>
=over 4 =over 4
=item * =item *
skipping to change at line 874 skipping to change at line 871
Advice has been added regarding the usage of C<< ZE<lt>E<gt> >>. Advice has been added regarding the usage of C<< ZE<lt>E<gt> >>.
=back =back
=head3 L<perlport> =head3 L<perlport>
=over 4 =over 4
=item * =item *
Update C<timegm> example to use correct year format I<1970> instead of I<70>. Update C<timegm> example to use the correct year format I<1970> instead of I<70>
.
[L<GH #16431|https://github.com/Perl/perl5/issues/16431>] [L<GH #16431|https://github.com/Perl/perl5/issues/16431>]
=back =back
=head3 L<perlreref> =head3 L<perlreref>
=over 4 =over 4
=item * =item *
Fix some typos. Fix some typos.
=back =back
=head3 L<perlvar> =head3 L<perlvar>
=over 4 =over 4
=item * =item *
Recommend stringifying C<$]> and comparing it numerically. Now recommends stringifying C<$]> and comparing it numerically.
=item *
Remove C<${^FEATURE_BITS}>.
=back =back
=head3 L<perlapi>, L<perlintern> =head3 L<perlapi>, L<perlintern>
=over 4 =over 4
=item * =item *
Documentation has been added for a dozen or two functions that were Documentation has been added for several functions that were
lacking it before. lacking it before.
=back =back
=head3 L<perlxs> =head3 L<perlxs>
=over 4 =over 4
=item * =item *
Suggest using libffi for simple library bindings. Suggest using C<libffi> for simple library bindings.
=back =back
=head3 L<POSIX> =head3 L<POSIX>
=over 4 =over 4
=item * =item *
C<setlocale> warning about threaded builds updated to note it does not C<setlocale> warning about threaded builds updated to note it does not
skipping to change at line 950 skipping to change at line 942
Additionally, the following selected changes have been made: Additionally, the following selected changes have been made:
=head3 Updating of links =head3 Updating of links
=over 4 =over 4
=item * =item *
Links to the now defunct L<https://search.cpan.org> site now point at Links to the now defunct L<https://search.cpan.org> site now point at
the equivalent L<https://metacpan.org> URL. [L<GH #17393|https://github.com/Per l/perl5/issues/17393>] the equivalent L<https://metacpan.org> URL. [L<GH #17393|https://github.com/Perl /perl5/issues/17393>]
=item * =item *
The man page for L<ExtUtils::XSSymSet> is now only installed on VMS, The man page for L<ExtUtils::XSSymSet> is now only installed on VMS,
which is the only platform the module is installed on. [L<GH #17424|https://git hub.com/Perl/perl5/issues/17424>] which is the only platform the module is installed on. [L<GH #17424|https://gith ub.com/Perl/perl5/issues/17424>]
=item * =item *
URLs have been changed to https:// and stale links have been updated. URLs have been changed to C<https://> and stale links have been updated.
Where applicable, the URLs in the documentation have been moved from using the Where applicable, the URLs in the documentation have been moved from using the
http:// protocol to https:// . This also affects the location of the bug C<http://> protocol to C<https://>. This also affects the location of the bug
tracker at L<https://rt.perl.org>. tracker at L<https://rt.perl.org>.
=item * =item *
Some links to OS/2 libraries, Address Sanitizer and other system tools had gone Some links to OS/2 libraries, Address Sanitizer and other system tools had gone
stale. These have been updated with working links. stale. These have been updated with working links.
=item * =item *
Some links to old mails on perl5-porters had gone stale. These have been Some links to old email addresses on perl5-porters had gone stale. These have be en
updated with working links. updated with working links.
=back =back
=head1 Diagnostics =head1 Diagnostics
The following additions or changes have been made to diagnostic output, The following additions or changes have been made to diagnostic output,
including warnings and fatal error messages. For the complete list of including warnings and fatal error messages. For the complete list of
diagnostic messages, see L<perldiag>. diagnostic messages, see L<perldiag>.
=head2 New Diagnostics =head2 New Diagnostics
=head3 New Errors =head3 New Errors
=over 4 =over 4
=item * =item *
skipping to change at line 1026 skipping to change at line 1018
When raised during regular expression pattern compilation, the warning When raised during regular expression pattern compilation, the warning
has extra text added at the end marking where precisely in the pattern has extra text added at the end marking where precisely in the pattern
it occurred. it occurred.
=item * =item *
L<Non-hex character '%c' terminates \x early. Resolved as "%s"|perldiag/"Non-he x character '%c' terminates \x early. Resolved as "%s""> L<Non-hex character '%c' terminates \x early. Resolved as "%s"|perldiag/"Non-he x character '%c' terminates \x early. Resolved as "%s"">
This replaces a warning that was much less specific, and which gave This replaces a warning that was much less specific, and which gave
false information. This new warning parallels the similar false information. This new warning parallels the similar
already-existing one raised for C<\o{}>. already-existing one raised for C<\o{}>.
=back =back
=head2 Changes to Existing Diagnostics =head2 Changes to Existing Diagnostics
=over 4 =over 4
=item * =item *
L<Character following "\c" must be printable ASCII|perldiag/"Character following "\c" must be printable ASCII"> L<Character following "\c" must be printable ASCII|perldiag/"Character following "\c" must be printable ASCII">
now has extra text added at the end, when raised during regular ...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern expression pattern compilation, marking where precisely in the pattern
it occured. it occurred.
=item * =item *
L<Use "%s" instead of "%s"|perldiag/"Use "%s" instead of "%s""> L<Use "%s" instead of "%s"|perldiag/"Use "%s" instead of "%s"">
now has extra text added at the end, when raised during regular ...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern expression pattern compilation, marking where precisely in the pattern
it occured. it occurred.
=item * =item *
L<Sequence "\c{" invalid|perldiag/"Sequence "\c{" invalid"> L<Sequence "\c{" invalid|perldiag/"Sequence "\c{" invalid">
now has extra text added at the end, when raised during regular ...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern expression pattern compilation, marking where precisely in the pattern
it occured. it occurred.
=item * =item *
L<"\c%c" is more clearly written simply as "%s"|perldiag/""\c%c" is more clearly written simply as "%s""> L<"\c%c" is more clearly written simply as "%s"|perldiag/""\c%c" is more clearly written simply as "%s"">
now has extra text added at the end, when raised during regular ...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern expression pattern compilation, marking where precisely in the pattern
it occured. it occurred.
=item * =item *
L<Non-octal character '%c' terminates \o early. Resolved as "%s"|perldiag/"Non- octal character '%c' terminates \o early. Resolved as "%s""> L<Non-octal character '%c' terminates \o early. Resolved as "%s"|perldiag/"Non- octal character '%c' terminates \o early. Resolved as "%s"">
now includes the phrase "terminates \o early", and has extra text added ...now includes the phrase "terminates \o early", and has extra text added
at the end, when raised during regular expression pattern compilation, at the end, when raised during regular expression pattern compilation,
marking where precisely in the pattern it occured. In some instances marking where precisely in the pattern it occurred. In some instances
the text of the resolution has been clarified. the text of the resolution has been clarified.
=item * =item *
L<'%s' resolved to '\o{%s}%d'|perldiag/'%s' resolved to '\o{%s}%d'> L<'%s' resolved to '\o{%s}%d'|perldiag/'%s' resolved to '\o{%s}%d'>
As of Perl 5.32, this message is no longer generated. Instead, As of Perl 5.32, this message is no longer generated. Instead,
L<perldiag/Non-octal character '%c' terminates \o early. Resolved as "%s"> L<perldiag/Non-octal character '%c' terminates \o early. Resolved as "%s">
is. is used instead.
=item * =item *
L<Use of code point 0x%s is not allowed; the permissible max is 0x%X|perldiag/"U se of code point 0x%s is not allowed; the permissible max is 0x%X"> L<Use of code point 0x%s is not allowed; the permissible max is 0x%X|perldiag/"U se of code point 0x%s is not allowed; the permissible max is 0x%X">
Some instances of this message previously output the hex digits C<A>, Some instances of this message previously output the hex digits C<A>,
C<B>, C<C>, C<D>, C<E>, and C<F> in lower case. Now they are all C<B>, C<C>, C<D>, C<E>, and C<F> in lower case. Now they are all
consistently upper case. consistently upper case.
=item * =item *
The following three diagnostics have been removed, and replaced by The following three diagnostics have been removed, and replaced by
L<C<Expecting interpolated extended charclass in regex; marked by <-- HERE in mE <sol>%sE<sol>> L<C<Expecting interpolated extended charclass in regex; marked by <-- HERE in mE <sol>%sE<sol>>
|perldiag/"Expecting interpolated extended charclass in regex; marked by <-- HER E in mE<sol>%sE<sol>">: |perldiag/"Expecting interpolated extended charclass in regex; marked by <-- HER E in mE<sol>%sE<sol>">:
C<Expecting close paren for nested extended charclass in regex; marked C<Expecting close paren for nested extended charclass in regex; marked
by <-- HERE in mE<sol>%sE<sol>>, by <-- HERE in mE<sol>%sE<sol>>,
C<Expecting close paren for wrapper for nested extended charclass in C<Expecting close paren for wrapper for nested extended charclass in
skipping to change at line 1124 skipping to change at line 1116
This error message has been slightly reformatted from the original C<Can't use This error message has been slightly reformatted from the original C<Can't use
global %s in "%s">, and in particular misleading error messages like C<Can't global %s in "%s">, and in particular misleading error messages like C<Can't
use global $_ in "my"> are now rendered as C<Can't use global $_ in subroutine use global $_ in "my"> are now rendered as C<Can't use global $_ in subroutine
signature>. signature>.
=item * =item *
L<Constants from lexical variables potentially modified elsewhere are no longer permitted|perldiag/"Constants from lexical variables potentially modified elsewh ere are no longer permitted"> L<Constants from lexical variables potentially modified elsewhere are no longer permitted|perldiag/"Constants from lexical variables potentially modified elsewh ere are no longer permitted">
This error message replaces the former C<Constants from lexical variables This error message replaces the former C<Constants from lexical variables
potentially modified elsewhere are deprecated. This will not be allowed in Perl potentially modified elsewhere are deprecated. This will not be allowed in Perl
5.32> to reflect the fact that this previously deprecated usage has now been 5.32> to reflect the fact that this previously deprecated usage has now been
transformed into an exception. The message's classification has also been transformed into an exception. The message's classification has also been
updated from D (deprecated) to F (fatal). updated from D (deprecated) to F (fatal).
See also L</Incompatible Changes>. See also L</Incompatible Changes>.
=item * =item *
C<\N{} here is restricted to one character> is now emitted in the same C<\N{} here is restricted to one character> is now emitted in the same
circumstances where previously C<\N{} in inverted character class or as a range circumstances where previously C<\N{} in inverted character class or as a range
end-point is restricted to one character> was. end-point is restricted to one character> was.
skipping to change at line 1148 skipping to change at line 1140
covered by the earlier wording. covered by the earlier wording.
=back =back
=head1 Utility Changes =head1 Utility Changes
=head2 L<perlbug> =head2 L<perlbug>
=over 4 =over 4
=item Adjust bug tracker homepage URL to point to GitHub. =item * The bug tracker homepage URL now points to GitHub.
=back
=head2 L<streamzip>
=over 4
=item *
This is a new utility, included as part of an
L<IO::Compress::Base> upgrade.
L<streamzip> creates a zip file from stdin. The program will read data
from stdin, compress it into a zip container and, by default, write a
streamed zip file to stdout.
=back =back
=head1 Configuration and Compilation =head1 Configuration and Compilation
=head2 F<Configure> =head2 F<Configure>
=over 4 =over 4
=item * =item *
skipping to change at line 1183 skipping to change at line 1190
compilation instead of just warning. compilation instead of just warning.
=item * =item *
Check if the compiler can handle inline attribute. Check if the compiler can handle inline attribute.
=item * =item *
Check for character data alignment. Check for character data alignment.
=back
=head2 L<streamzip>
=over 4
=item *
This is a new utility, included as part of an
L<IO::Compress::Base> upgrade.
L<streamzip> creates a zip file from stdin. The program will read data
from stdin, compress it into a zip container and, by default, write a
streamed zip file to stdout.
=item * =item *
F<Configure> now correctly handles gcc-10. Previously it was interpreting it F<Configure> now correctly handles gcc-10. Previously it was interpreting it
as gcc-1 and turned on C<-fpcc-struct-return>. as gcc-1 and turned on C<-fpcc-struct-return>.
=item * =item *
Perl now no longer probes for C<d_u32align>, defaulting to C<define> on all Perl now no longer probes for C<d_u32align>, defaulting to C<define> on all
platforms. This check was error prone when it was done, which was on 32-bit platforms. This check was error-prone when it was done, which was on 32-bit
platforms only. platforms only.
L<[perl #133495]|https://rt.perl.org/Ticket/Display.html?id=133495>. [L<perl #133495|https://rt.perl.org/Ticket/Display.html?id=133495>]
=item * =item *
Documentation and hints for building perl on Z/OS (native EBCDIC) have been Documentation and hints for building perl on Z/OS (native EBCDIC) have been
updated. Still work in progress. updated. This is still a work in progress.
=item * =item *
A new probe for C<malloc_usable_size> has been added. A new probe for C<malloc_usable_size> has been added.
=item * =item *
Improvements in F<Configure> to detection in C++ and clang++. Work ongoing by Improvements in F<Configure> to detection in C++ and clang++. Work ongoing by
Andy Dougherty. [perl #134171] Andy Dougherty. [L<perl #134171|https://rt.perl.org/Ticket/Display.html?id=13417
1>]
=item * =item *
F<autodoc.pl> F<autodoc.pl>
This tool that regenerates L<perlintern> and L<perlapi> has been overhauled This tool that regenerates L<perlintern> and L<perlapi> has been overhauled
significantly, restoring consistency in flags used in F<embed.fnc> and significantly, restoring consistency in flags used in F<embed.fnc> and
L<Devel::PPPort> and allowing removal of many redundant C<=for apidoc> L<Devel::PPPort> and allowing removal of many redundant C<=for apidoc>
entries in code. entries in code.
=item * =item *
The C<ECHO> macro is now defined. This is used in a C<dtrace> rule that was The C<ECHO> macro is now defined. This is used in a C<dtrace> rule that was
originally changed for FreeBSD, and the FreeBSD make apparently predefines it. originally changed for FreeBSD, and the FreeBSD make apparently predefines it.
The Solaris make does not predefine C<ECHO> which broke this rule on Solaris. The Solaris make does not predefine C<ECHO> which broke this rule on Solaris.
L<[perl #134218]|https://rt.perl.org/Ticket/Display.html?id=134218> [L<perl #134218|https://rt.perl.org/Ticket/Display.html?id=134218>]
=item * =item *
Bison versions 3.1 through 3.4 are now supported. Bison versions 3.1 through 3.4 are now supported.
=back =back
=head1 Testing =head1 Testing
Tests were added and changed to reflect the other additions and Tests were added and changed to reflect the other additions and
changes in this release. Furthermore, these significant changes were changes in this release. Furthermore, these significant changes were
made: made:
=over 4 =over 4
=item * =item *
F<t/run/switches.t> no longer uses (and re-uses) the F<tmpinplace/> F<t/run/switches.t> no longer uses (and re-uses) the F<tmpinplace/>
directory under F<t/>. This may prevent spurious failures. [L<GH #17424|https:/ /github.com/Perl/perl5/issues/17424>] directory under F<t/>. This may prevent spurious failures. [L<GH #17424|https:// github.com/Perl/perl5/issues/17424>]
=item * =item *
Various bugs in C<POSIX::mbtowc> were fixed. Potential races with Various bugs in C<POSIX::mbtowc> were fixed. Potential races with
other threads are now avoided, and previously the returned wide other threads are now avoided, and previously the returned wide
character could well be garbage. character could well be garbage.
=item * =item *
Various bugs in C<POSIX::wctomb> were fixed. Potential races with other Various bugs in C<POSIX::wctomb> were fixed. Potential races with other
threads are now avoided, and previously it would segfault if the string threads are now avoided, and previously it would segfault if the string
parameter was shared or hadn't been pre-allocated with a string of parameter was shared or hadn't been pre-allocated with a string of
sufficient length to hold the result. sufficient length to hold the result.
skipping to change at line 1310 skipping to change at line 1302
=back =back
=head2 Platform-Specific Notes =head2 Platform-Specific Notes
=over 4 =over 4
=item Linux =item Linux
C<cc> will be used to populate C<plibpth> if C<cc> is C<clang>. C<cc> will be used to populate C<plibpth> if C<cc> is C<clang>.
L<[perl #134189]|https://rt.perl.org/Ticket/Display.html?id=134189> [L<perl #134189|https://rt.perl.org/Ticket/Display.html?id=134189>]
=item NetBSD 8.0 =item NetBSD 8.0
Fix compilation of Perl on NetBSD 8.0 with g++. Fix compilation of Perl on NetBSD 8.0 with g++.
[L<GH #17381|https://github.com/Perl/perl5/issues/17381>] [L<GH #17381|https://github.com/Perl/perl5/issues/17381>]
=item Windows =item Windows
=over 4 =over 4
=item * =item *
The configuration for C<ccflags> and C<optimize> are now separate, as The configuration for C<ccflags> and C<optimize> are now separate, as
with POSIX platforms. [#17156] with POSIX platforms. [L<GH #17156|https://github.com/Perl/perl5/issues/17156>]
=item * =item *
Support for building perl with Visual C++ 6.0 has now been removed. Support for building perl with Visual C++ 6.0 has now been removed.
=item * =item *
The locale tests could crash on Win32 due to a Windows bug, and The locale tests could crash on Win32 due to a Windows bug, and
separately due to the CRT throwing an exception if the locale name separately due to the CRT throwing an exception if the locale name
wasn't validly encoded in the current code page. wasn't validly encoded in the current code page.
For the second we now decode the locale name ourselves, and always For the second we now decode the locale name ourselves, and always
decode it as UTF-8. [perl #133981] decode it as UTF-8. [L<perl #133981|https://rt.perl.org/Ticket/Display.html?id=1 33981>]
=item * =item *
F<t/op/magic.t> could fail if environment variables starting with F<t/op/magic.t> could fail if environment variables starting with
C<FOO> already existed. C<FOO> already existed.
=item *
MYMALLOC (PERL_MALLOC) build has been fixed.
=back =back
=item Solaris =item Solaris
=over 4 =over 4
=item * =item *
C<Configure> will now find recent versions of the Oracle Developer Studio C<Configure> will now find recent versions of the Oracle Developer Studio
compiler, which are found under C</opt/developerstudio*>. compiler, which are found under C</opt/developerstudio*>.
skipping to change at line 1370 skipping to change at line 1365
=back =back
=item VMS =item VMS
=over 4 =over 4
=item * =item *
With the release of the patch kit C99 V2.0, VSI has provided support for a With the release of the patch kit C99 V2.0, VSI has provided support for a
number of previously-missing C99 features. On systems with that patch kit number of previously-missing C99 features. On systems with that patch kit
installed, Perl's configuration process will now detect the presence of the installed, Perl's configuration process will now detect the presence of the
header C<stdint.h> and the following functions: C<fpclassify>, C<isblank>, C<isl ess>, header C<stdint.h> and the following functions: C<fpclassify>, C<isblank>, C<isl ess>,
C<llrint>, C<llrintl>, C<llround>, C<llroundl>, C<nearbyint>, C<round>, C<scalbn >, C<llrint>, C<llrintl>, C<llround>, C<llroundl>, C<nearbyint>, C<round>, C<scalbn >,
and C<scalbnl>. and C<scalbnl>.
=item * =item *
C<-Duse64bitint> is now the default on VMS. C<-Duse64bitint> is now the default on VMS.
=back =back
=item z/OS
Perl 5.32 has been tested on z/OS 2.4, with the following caveats:
=over 4
=item *
Only static builds (the default) build reliably
=item *
Threaded builds have problems with mutexes during critical sections, so
use at your own risk
=item *
Some CPAN modules that are shipped with perl fail at least one of their
self-tests. These are:
Archive::Tar,
Config::Perl::V,
CPAN::Meta,
CPAN::Meta::YAML,
Digest::MD5,
Digest::SHA,
Encode,
ExtUtils::MakeMaker,
ExtUtils::Manifest,
HTTP::Tiny,
IO::Compress,
IPC::Cmd,
JSON::PP,
libnet,
MIME::Base64,
Module::Metadata,
PerlIO::via-QuotedPrint,
Pod::Checker,
podlators,
Pod::Simple,
Socket,
and Test::Harness.
The causes of the failures range from the self-test itself is flawed,
and the module actually works fine, up to the module doesn't work at all
on EBCDIC platforms.
=back
=back =back
=head1 Internal Changes =head1 Internal Changes
=over 4 =over 4
=item * =item *
C<savepvn>'s len parameter is now a C<Size_t> instead of an C<I32> since we C<savepvn>'s len parameter is now a C<Size_t> instead of an C<I32> since we
can handle longer strings than 31 bits. can handle longer strings than 31 bits.
skipping to change at line 1415 skipping to change at line 1458
The OS-level signal handlers and type (Sighandler_t) used by the perl core The OS-level signal handlers and type (Sighandler_t) used by the perl core
were declared as having three parameters, but the OS was always told to were declared as having three parameters, but the OS was always told to
call them with one argument. This has been fixed by declaring them to have call them with one argument. This has been fixed by declaring them to have
one parameter. See the merge commit C<v5.31.5-346-g116e19abbf> for full one parameter. See the merge commit C<v5.31.5-346-g116e19abbf> for full
details. details.
=item * =item *
The code that handles C<tr///> has been extensively revised, fixing The code that handles C<tr///> has been extensively revised, fixing
various bugs, especially when the source and/or replacement strings various bugs, especially when the source and/or replacement strings
contain characters whose code points are above 255. Some of the bugs contain characters whose code points are above 255. Some of the bugs
were undocumented, one being that under some circumstances (but not all) were undocumented, one being that under some circumstances (but not all)
with C</s>, the squeezing was done based on the source, rather than the with C</s>, the squeezing was done based on the source, rather than the
replacement. A documented bug that got fixed was [perl RT #125493]. replacement. A documented bug that got fixed was
[L<perl #125493|https://rt.perl.org/Ticket/Display.html?id=125493>].
=item * =item *
A new macro for XS writers dealing with UTF-8-encoded Unicode strings A new macro for XS writers dealing with UTF-8-encoded Unicode strings
has been created L<perlapi/C<UTF8_CHK_SKIP>> that is safer in the face has been created L<perlapi/C<UTF8_CHK_SKIP>> that is safer in the face
of malformed UTF-8 input than L<perlapi/C<UTF8_SKIP>> (but not as safe of malformed UTF-8 input than L<perlapi/C<UTF8_SKIP>> (but not as safe
as L<perlapi/C<UTF8_SAFE_SKIP>>). It won't read past a NUL character. as L<perlapi/C<UTF8_SAFE_SKIP>>). It won't read past a NUL character.
It has been backported in L<Devel::PPPort> 3.55 and later. It has been backported in L<Devel::PPPort> 3.55 and later.
=item * =item *
Added the C<<PL_curstackinfo->si_cxsubix>> field. This records the stack index Added the C<< PL_curstackinfo->si_cxsubix >> field. This records the stack index
of the most recently pushed sub/format/eval context. It is set and restored of the most recently pushed sub/format/eval context. It is set and restored
automatically by C<cx_pushsub()>, C<cx_popsub()> etc., but would need to be automatically by C<cx_pushsub()>, C<cx_popsub()> etc., but would need to be
manually managed if you do any unusual manipulation of the context stack. manually managed if you do any unusual manipulation of the context stack.
=item * =item *
Various macros dealing with character type classification and changing case Various macros dealing with character type classification and changing case
where the input is encoded in UTF-8 now require an extra parameter to prevent where the input is encoded in UTF-8 now require an extra parameter to prevent
potential reads beyond the end of the buffer. Use of these has generated a potential reads beyond the end of the buffer. Use of these has generated a
deprecation warning since Perl 5.26. Details are in deprecation warning since Perl 5.26. Details are in
L<perldeprecation/In XS code, use of various macros dealing with UTF-8.> L<perldeprecation/In XS code, use of various macros dealing with UTF-8.>
=item * =item *
A new parser function L<parse_subsignature()|perlapi/parse_subsignature> A new parser function L<parse_subsignature()|perlapi/parse_subsignature>
allows a keyword plugin to parse a subroutine signature while C<use feature allows a keyword plugin to parse a subroutine signature while C<use feature
'signatures'> is in effect. This allows custom keywords to implement 'signatures'> is in effect. This allows custom keywords to implement
semantics similar to regular C<sub> declarations that include signatures. semantics similar to regular C<sub> declarations that include signatures.
L<[perl #132474]|https://rt.perl.org/Ticket/Display.html?id=132474> [L<perl #132474|https://rt.perl.org/Ticket/Display.html?id=132474>]
=item * =item *
Since on some platforms we need to hold a mutex when temporarily Since on some platforms we need to hold a mutex when temporarily
switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>, switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>,
C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>) C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>)
have been added to make it easier to do this safely and efficiently have been added to make it easier to do this safely and efficiently
as part of L<[perl #134172]|https://rt.perl.org/Ticket/Display.html?id=134172>. as part of [L<perl #134172|https://rt.perl.org/Ticket/Display.html?id=134172>].
=item * =item *
The memory bookkeeping overhead for allocating an OP structure has been The memory bookkeeping overhead for allocating an OP structure has been
reduced by 8 bytes per OP on 64-bit systems. reduced by 8 bytes per OP on 64-bit systems.
=item * =item *
L<eval_pv()|perlapi/eval_pv> no longer stringifies the exception when L<eval_pv()|perlapi/eval_pv> no longer stringifies the exception when
C<croak_on_error> is true. L<[perl #134175]|https://rt.perl.org/Ticket/Display. html?id=134175> C<croak_on_error> is true. [L<perl #134175|https://rt.perl.org/Ticket/Display.ht ml?id=134175>]
=item * =item *
The PERL_DESTRUCT_LEVEL environment variable was formerly only honoured on perl The PERL_DESTRUCT_LEVEL environment variable was formerly only honoured on perl
binaries built with DEBUGGING support. It is now checked on all perl builds. binaries built with DEBUGGING support. It is now checked on all perl builds.
Its normal use is to force perl to individually free every block of memory Its normal use is to force perl to individually free every block of memory
which it has allocated before exiting, which is useful when using automated which it has allocated before exiting, which is useful when using automated
leak detection tools such as valgrind. leak detection tools such as valgrind.
=item * =item *
The API eval_sv() now accepts a C<G_RETHROW> flag. If this flag is set and an The API eval_sv() now accepts a C<G_RETHROW> flag. If this flag is set and an
exception is thrown while compiling or executing the supplied code, it will be exception is thrown while compiling or executing the supplied code, it will be
rethrown, and eval_sv() will not return. rethrown, and eval_sv() will not return.
L<[perl #134177]|https://rt.perl.org/Ticket/Display.html?id=134177> [L<perl #134177|https://rt.perl.org/Ticket/Display.html?id=134177>]
=item * =item *
As part of the fix for As part of the fix for
L<[perl #2754]|https://rt.perl.org/Ticket/Display.html?id=2754> perl_parse() [L<perl #2754|https://rt.perl.org/Ticket/Display.html?id=2754>] perl_parse()
now returns non-zero if exit(0) is called in a C<BEGIN>, C<UNITCHECK> or now returns non-zero if exit(0) is called in a C<BEGIN>, C<UNITCHECK> or
C<CHECK> block. C<CHECK> block.
=item * =item *
Most functions which recursively walked an op tree during compilation have been Most functions which recursively walked an op tree during compilation have been
made non-recursive. This avoids SEGVs from stack overflow when the op tree is made non-recursive. This avoids SEGVs from stack overflow when the op tree is
deeply nested, such as C<$n == 1 ? "one" : $n == 2 ? "two" : ....> (especially deeply nested, such as C<$n == 1 ? "one" : $n == 2 ? "two" : ....> (especially
in code which is auto-generated). in code which is auto-generated).
This is particularly noticeable where the code is compiled within a separate This is particularly noticeable where the code is compiled within a separate
thread, as threads tend to have small stacks by default. thread, as threads tend to have small stacks by default.
=back =back
=head1 Selected Bug Fixes =head1 Selected Bug Fixes
=over 4 =over 4
=item * =item *
Previously L<perlfunc/require> would only treat the special built-in Previously L<perlfunc/require> would only treat the special built-in
SV C<&PL_sv_undef> as a value in C<%INC> as if a previous C<require> SV C<&PL_sv_undef> as a value in C<%INC> as if a previous C<require>
has failed, treating other undefined SVs as if the previous C<require> has failed, treating other undefined SVs as if the previous C<require>
has succeeded. This could cause unexpected success from C<require> has succeeded. This could cause unexpected success from C<require>
e.g., on C<local %INC = %INC;>. This has been fixed [L<GH #17428|https://github e.g., on C<local %INC = %INC;>. This has been fixed. [L<GH #17428|https://github
.com/Perl/perl5/issues/17428>] .com/Perl/perl5/issues/17428>]
=item * =item *
C<(?{...})> eval groups in regular expressions no longer unintentionally C<(?{...})> eval groups in regular expressions no longer unintentionally
trigger "EVAL without pos change exceeded limit in regex" [L<GH #17490|https://g ithub.com/Perl/perl5/issues/17490>]. trigger "EVAL without pos change exceeded limit in regex" [L<GH #17490|https://g ithub.com/Perl/perl5/issues/17490>].
=item * =item *
C<(?[...])> extended bracketed character classes do not wrongly raise an C<(?[...])> extended bracketed character classes do not wrongly raise an
error on some cases where a previously-compiled such class is error on some cases where a previously-compiled such class is
interpolated into another. The heuristics previously used have been interpolated into another. The heuristics previously used have been
replaced by a reliable method, and hence the diagnostics generated have replaced by a reliable method, and hence the diagnostics generated have
changed. See L</Diagnostics>. changed. See L</Diagnostics>.
=item * =item *
The debug display (say by specifying C<-Dr> or S<C<use re>> (with The debug display (say by specifying C<-Dr> or S<C<use re>> (with
appropriate options) of compiled Unicode property wildcard subpatterns no appropriate options) of compiled Unicode property wildcard subpatterns no
longer has extraneous output. longer has extraneous output.
=item * =item *
A heap-buffer-overflow has been fixed in the regular expression engine.
[L<GH #17384|https://github.com/Perl/perl5/issues/17384>]
=item *
Fix an assertion failure in the regular expression engine. Fix an assertion failure in the regular expression engine.
[L<GH #17372|https://github.com/Perl/perl5/issues/17372>] [L<GH #17372|https://github.com/Perl/perl5/issues/17372>]
=item * =item *
Fix regression in C<tr///> added somewhere in v5.31.6.
[L<GH #17391|https://github.com/Perl/perl5/issues/17391>]
=item *
Fix coredump in pp_hot.c after C<B::UNOP_AUX::aux_list()>. Fix coredump in pp_hot.c after C<B::UNOP_AUX::aux_list()>.
[L<GH #17301|https://github.com/Perl/perl5/issues/17301>] [L<GH #17301|https://github.com/Perl/perl5/issues/17301>]
=item * =item *
Commit bc62bf8519 ("Add some defensive coding to av_store()" has been
reverted as it broke I<List-UtilsBy-XS-0.05> in v5.31.2.
[L<GH #17265|https://github.com/Perl/perl5/issues/17265>]
=item *
Loading IO is now threadsafe. Loading IO is now threadsafe.
[L<GH #14816|https://github.com/Perl/perl5/issues/14816>] [L<GH #14816|https://github.com/Perl/perl5/issues/14816>]
=item * =item *
Fix MYMALLOC (PERL_MALLOC) build on Windows
=item *
C<\p{user-defined}> overrides official Unicode [L<GH #17025|https://github.com/P erl/perl5/issues/17025>] C<\p{user-defined}> overrides official Unicode [L<GH #17025|https://github.com/P erl/perl5/issues/17025>]
Prior to this patch, they only sometimes overrode. Prior to this patch, the override was only sometimes in effect.
=item * =item *
Properly handle filled C</il> regnodes and multi-char folds Properly handle filled C</il> regnodes and multi-char folds
=item * =item *
Compilation error during make minitest [L<GH #17293|https://github.com/Perl/perl 5/issues/17293>] Compilation error during make minitest [L<GH #17293|https://github.com/Perl/perl 5/issues/17293>]
=item * =item *
skipping to change at line 1604 skipping to change at line 1622
Read beyond buffer in C<grok_inf_nan> [L<GH #17370|https://github.com/Perl/perl5 /issues/17370>] Read beyond buffer in C<grok_inf_nan> [L<GH #17370|https://github.com/Perl/perl5 /issues/17370>]
=item * =item *
Workaround glibc bug with C<LC_MESSAGES> [L<GH #17081|https://github.com/Perl/pe rl5/issues/17081>] Workaround glibc bug with C<LC_MESSAGES> [L<GH #17081|https://github.com/Perl/pe rl5/issues/17081>]
=item * =item *
C<printf()> or C<sprintf()> with the C<%n> format could cause a panic on C<printf()> or C<sprintf()> with the C<%n> format could cause a panic on
debugging builds, or report an incorrectly cached length value when debugging builds, or report an incorrectly cached length value when
producing C<SVfUTF8> flagged strings. [#17221] producing C<SVfUTF8> flagged strings. [L<GH #17221|https://github.com/Perl/perl5 /issues/17221>]
=item * =item *
The tokenizer has been extensively refactored. [#17241][#17189] The tokenizer has been extensively refactored.
[L<GH #17241|https://github.com/Perl/perl5/issues/17241>]
[L<GH #17189|https://github.com/Perl/perl5/issues/17189>]
=item * =item *
C<use strict "subs"> is now enforced for bareword constants optimized C<use strict "subs"> is now enforced for bareword constants optimized
into a C<multiconcat> operator. [#17254] into a C<multiconcat> operator. [L<GH #17254|https://github.com/Perl/perl5/issue s/17254>]
=item * =item *
A memory leak in regular expression patterns has been fixed [#17218]. A memory leak in regular expression patterns has been fixed. [L<GH #17218|https: //github.com/Perl/perl5/issues/17218>]
=item * =item *
Perl no longer treats strings starting with "0x" or "0b" as hex or Perl no longer treats strings starting with "0x" or "0b" as hex or
binary numbers respectively when converting a string to a number. binary numbers respectively when converting a string to a number.
This reverts a change in behaviour inadvertently introduced in perl This reverts a change in behaviour inadvertently introduced in perl
5.30.0 intended to improve precision when converting a string to a 5.30.0 intended to improve precision when converting a string to a
floating point number. [perl #134230] floating point number. [L<perl #134230|https://rt.perl.org/Ticket/Display.html?i d=134230>]
=item * =item *
Matching a non-C<SVf_UTF8> string against a regular expression Matching a non-C<SVf_UTF8> string against a regular expression
containing unicode literals could leak a SV on each match attempt. containing unicode literals could leak a SV on each match attempt.
[perl #134390] [L<perl #134390|https://rt.perl.org/Ticket/Display.html?id=134390>]
=item * =item *
Overloads for octal and binary floating point literals were always Overloads for octal and binary floating point literals were always
passed a string with a C<0x> prefix instead of the appropriate C<0> or passed a string with a C<0x> prefix instead of the appropriate C<0> or
C<0b> prefix. [perl #125557] C<0b> prefix. [L<perl #125557|https://rt.perl.org/Ticket/Display.html?id=125557> ]
=item * =item *
C<< $@ = 100; die; >> now correctly propagates the 100 as an exception C<< $@ = 100; die; >> now correctly propagates the 100 as an exception
instead of ignoring it. L<[perl #134291]|https://rt.perl.org/Ticket/Display.htm l?id=134291> instead of ignoring it. [L<perl #134291|https://rt.perl.org/Ticket/Display.html? id=134291>]
=item * =item *
C<< 0 0x@ >> no longer asserts in S_no_op(). L<[perl #134310]|https://rt.perl.o rg/Ticket/Display.html?id=134310> C<< 0 0x@ >> no longer asserts in S_no_op(). [L<perl #134310|https://rt.perl.org /Ticket/Display.html?id=134310>]
=item * =item *
Exceptions thrown while C<$@> is read-only could result in infinite Exceptions thrown while C<$@> is read-only could result in infinite
recursion as perl tried to update C<$@>, which throws another recursion as perl tried to update C<$@>, which throws another
exception, resulting in a stack overflow. Perl now replaces C<$@> exception, resulting in a stack overflow. Perl now replaces C<$@>
with a copy if it's not a simple writable SV. L<[perl #134266]|https://rt.perl. with a copy if it's not a simple writable SV. [L<perl #134266|https://rt.perl.or
org/Ticket/Display.html?id=134266> g/Ticket/Display.html?id=134266>]
=item * =item *
Setting C<$)> now properly sets supplementary group ids if you have Setting C<$)> now properly sets supplementary group ids if you have
the necessary privileges. L<[perl #134169]|https://rt.perl.org/Ticket/Display.h tml?id=134169> the necessary privileges. [L<perl #134169|https://rt.perl.org/Ticket/Display.htm l?id=134169>]
=item * =item *
close() on a pipe now preemptively clears the PerlIO object from the close() on a pipe now preemptively clears the PerlIO object from the
IO SV. This prevents a second attempt to close the already closed IO SV. This prevents a second attempt to close the already closed
PerlIO object if a signal handler calls die() or exit() while close() PerlIO object if a signal handler calls die() or exit() while close()
is waiting for the child process to complete. L<[perl #122112]|https://rt.perl. org/Ticket/Display.html?id=122112> is waiting for the child process to complete. [L<perl #122112|https://rt.perl.or g/Ticket/Display.html?id=122112>]
=item * =item *
C<< sprintf("%.*a", -10000, $x) >> would cause a buffer overflow due C<< sprintf("%.*a", -10000, $x) >> would cause a buffer overflow due
to mishandling of the negative precision value. L<[perl #134008]|https://rt.per l.org/Ticket/Display.html?id=134008> to mishandling of the negative precision value. [L<perl #134008|https://rt.perl. org/Ticket/Display.html?id=134008>]
=item * =item *
scalar() on a reference could cause an erroneous assertion failure scalar() on a reference could cause an erroneous assertion failure
during compilation. L<[perl #134045]|https://rt.perl.org/Ticket/Display.html?id =134045> during compilation. [L<perl #134045|https://rt.perl.org/Ticket/Display.html?id=1 34045>]
=item * =item *
C<%{^CAPTURE_ALL}> is now an alias to C<%-> as documented, rather than C<%{^CAPTURE_ALL}> is now an alias to C<%-> as documented, rather than
incorrectly an alias for C<%+>. L<[perl #131867]|https://rt.perl.org/Ticket/Dis play.html?id=131867> incorrectly an alias for C<%+>. [L<perl #131867|https://rt.perl.org/Ticket/Displ ay.html?id=131867>]
=item * =item *
C<%{^CAPTURE}> didn't work if C<@{^CAPTURE}> was mentioned first. C<%{^CAPTURE}> didn't work if C<@{^CAPTURE}> was mentioned first.
Similarly for C<%{^CAPTURE_ALL}> and C<@{^CAPTURE_ALL}>, though Similarly for C<%{^CAPTURE_ALL}> and C<@{^CAPTURE_ALL}>, though
C<@{^CAPTURE_ALL}> currently isn't used. L<[perl #131193]|https://rt.perl.org/T icket/Display.html?id=131193> C<@{^CAPTURE_ALL}> currently isn't used. [L<perl #131193|https://rt.perl.org/Tic ket/Display.html?id=131193>]
=item * =item *
Extraordinarily large (over 2GB) floating point format widths could Extraordinarily large (over 2GB) floating point format widths could
cause an integer overflow in the underlying call to snprintf(), cause an integer overflow in the underlying call to snprintf(),
resulting in an assertion. Formatted floating point widths are now resulting in an assertion. Formatted floating point widths are now
limited to the range of int, the return value of snprintf(). L<[perl limited to the range of int, the return value of snprintf(). [L<perl
#133913]|https://rt.perl.org/Ticket/Display.html?id=133913> #133913|https://rt.perl.org/Ticket/Display.html?id=133913>]
=item * =item *
Parsing the following constructs within a sub-parse (such as with Parsing the following constructs within a sub-parse (such as with
C<"${code here}"> or C<s/.../code here/e>) has changed to match how C<"${code here}"> or C<s/.../code here/e>) has changed to match how
they're parsed normally: they're parsed normally:
=over =over
=item * =item *
skipping to change at line 1720 skipping to change at line 1740
Code like C<s/.../ ${time} /e> now properly produces an "Ambiguous use Code like C<s/.../ ${time} /e> now properly produces an "Ambiguous use
of ${time} resolved to $time at ..." warning when warnings are enabled. of ${time} resolved to $time at ..." warning when warnings are enabled.
=item * =item *
C<@x {"a"}> (with the space) in a sub-parse now properly produces a C<@x {"a"}> (with the space) in a sub-parse now properly produces a
"better written as" warning when warnings are enabled. "better written as" warning when warnings are enabled.
=item * =item *
attributes can now be used in a sub-parse. Attributes can now be used in a sub-parse.
[L<perl #133850|https://rt.perl.org/Ticket/Display.html?id=133850>]
=back =back
L<[perl #133850]|https://rt.perl.org/Ticket/Display.html?id=133850>
=item * =item *
Incomplete hex and binary literals like C<0x> and C<0b> are now Incomplete hex and binary literals like C<0x> and C<0b> are now
treated as if the C<x> or C<b> is part of the next token. L<[perl treated as if the C<x> or C<b> is part of the next token. [L<perl
#134125]|https://rt.perl.org/Ticket/Display.html?id=134125> #134125|https://rt.perl.org/Ticket/Display.html?id=134125>]
=item * =item *
A spurious C<)> in a subparse, such as in C<s/.../code here/e> or A spurious C<)> in a subparse, such as in C<s/.../code here/e> or
C<"...${code here}">, no longer confuses the parser. C<"...${code here}">, no longer confuses the parser.
Previously a subparse was bracketed with generated C<(> and C<)> Previously a subparse was bracketed with generated C<(> and C<)>
tokens, so a spurious C<)> would close the construct without doing the tokens, so a spurious C<)> would close the construct without doing the
normal subparse clean up, confusing the parser and possible causing an normal subparse clean up, confusing the parser and possible causing an
assertion failure. assertion failure.
Such constructs are now surrounded by artificial tokens that can't be Such constructs are now surrounded by artificial tokens that can't be
included in the source. L<[perl #130585]|https://rt.perl.org/Ticket/Display.htm l?id=130585> included in the source. [L<perl #130585|https://rt.perl.org/Ticket/Display.html? id=130585>]
=item * =item *
Reference assignment of a sub, such as C<\&foo = \&bar;>, silently did Reference assignment of a sub, such as C<\&foo = \&bar;>, silently did
nothing in the C<main::> package. L<[perl #134072]|https://rt.perl.org/Ticket/D isplay.html?id=134072> nothing in the C<main::> package. [L<perl #134072|https://rt.perl.org/Ticket/Dis play.html?id=134072>]
=item * =item *
sv_gets() now recovers better if the target SV is modified by a signal sv_gets() now recovers better if the target SV is modified by a signal
handler. L<[perl #134035]|https://rt.perl.org/Ticket/Display.html?id=134035> handler. [L<perl #134035|https://rt.perl.org/Ticket/Display.html?id=134035>]
=item * =item *
C<readline @foo> now evaluates C<@foo> in scalar context. Previously C<readline @foo> now evaluates C<@foo> in scalar context. Previously
it would be evaluated in list context, and since readline() pops only it would be evaluated in list context, and since readline() pops only
one argument from the stack, the stack could underflow, or be left one argument from the stack, the stack could underflow, or be left
with unexpected values on the stack. L<[perl #133989]|https://rt.perl.org/Ticke t/Display.html?id=133989> with unexpected values on the stack. [L<perl #133989|https://rt.perl.org/Ticket/ Display.html?id=133989>]
=item * =item *
Parsing incomplete hex or binary literals was changed in 5.31.1 to treat such a Parsing incomplete hex or binary literals was changed in 5.31.1 to treat such a
literal as just the 0, leaving the following C<x> or C<b> to be parsed as part literal as just the 0, leaving the following C<x> or C<b> to be parsed as part
of the next token. This could lead to some silent changes in behaviour, so now of the next token. This could lead to some silent changes in behaviour, so now
incomplete hex or binary literals produce a fatal error. incomplete hex or binary literals produce a fatal error.
L<[perl #134125]|https://rt.perl.org/Ticket/Display.html?id=134125> [L<perl #134125|https://rt.perl.org/Ticket/Display.html?id=134125>]
=item * =item *
eval_pv()'s I<croak_on_error> flag will now throw even if the exception is a eval_pv()'s I<croak_on_error> flag will now throw even if the exception is a
false overloaded value. false overloaded value.
L<[perl #134177]|https://rt.perl.org/Ticket/Display.html?id=134177> [L<perl #134177|https://rt.perl.org/Ticket/Display.html?id=134177>]
=item * =item *
C<INIT> blocks and the program itself are no longer run if exit(0) is called C<INIT> blocks and the program itself are no longer run if exit(0) is called
within a C<BEGIN>, C<UNITCHECK> or C<CHECK> block. within a C<BEGIN>, C<UNITCHECK> or C<CHECK> block.
L<[perl #2754]|https://rt.perl.org/Ticket/Display.html?id=2754> [L<perl #2754|https://rt.perl.org/Ticket/Display.html?id=2754>]
=item * =item *
C<<< open my $fh, ">>+", undef >>> now opens the temporary file in append mode C<< open my $fh, ">>+", undef >> now opens the temporary file in append mode:
- writes will seek to the end of file before writing. writes will seek to the end of file before writing.
L<[perl #134221]|https://rt.perl.org/Ticket/Display.html?id=134221> [L<perl #134221|https://rt.perl.org/Ticket/Display.html?id=134221>]
=item * =item *
Fixed a SEGV when searching for the source of an uninitialized value warning on Fixed a SEGV when searching for the source of an uninitialized value warning on
an op whose subtree includes an OP_MULTIDEREF. an op whose subtree includes an OP_MULTIDEREF.
L<[perl #134275]|https://rt.perl.org/Ticket/Display.html?id=134275> [L<perl #134275|https://rt.perl.org/Ticket/Display.html?id=134275>]
=back =back
=head1 Obituary =head1 Obituary
Jeff Goff (JGOFF or DrForr), an integral part of the Perl and Raku Jeff Goff (JGOFF or DrForr), an integral part of the Perl and Raku
communities and a dear friend to all of us, has passed away on March communities and a dear friend to all of us, has passed away on March
13th, 2020. DrForr was a prominent member of the communities, attending 13th, 2020. DrForr was a prominent member of the communities, attending
and speaking at countless events, contributing to numerous projects, and speaking at countless events, contributing to numerous projects,
and assisting and helping in any way he could. and assisting and helping in any way he could.
His passing leaves a hole in our hearts and in our communities and he His passing leaves a hole in our hearts and in our communities and he
will be sorely missed. will be sorely missed.
=head1 Acknowledgements =head1 Acknowledgements
Perl 5.32.0 represents approximately 12 months of development since Perl Perl 5.32.0 represents approximately 13 months of development since Perl
5.30.0 and contains approximately 220,000 lines of changes across 1,800 5.30.0 and contains approximately 220,000 lines of changes across 1,800
files from 86 authors. files from 86 authors.
Excluding auto-generated files, documentation and release tools, there were Excluding auto-generated files, documentation and release tools, there were
approximately 140,000 lines of changes to 860 .pm, .t, .c and .h files. approximately 140,000 lines of changes to 880 .pm, .t, .c and .h files.
Perl continues to flourish into its fourth decade thanks to a vibrant Perl continues to flourish into its fourth decade thanks to a vibrant
community of users and developers. The following people are known to have community of users and developers. The following people are known to have
contributed the improvements that became Perl 5.32.0: contributed the improvements that became Perl 5.32.0:
Aaron Crane, Alberto Simões, Alexandr Savca, Andreas König, Andrew Fresh, Aaron Crane, Alberto Simões, Alexandr Savca, Andreas König, Andrew Fresh,
Andy Dougherty, Ask Bjørn Hansen, Atsushi Sugawara, Bernhard M. Wiedemann, Andy Dougherty, Ask Bjørn Hansen, Atsushi Sugawara, Bernhard M. Wiedemann,
brian d foy, Bryan Stenson, Chad Granum, Chase Whitener, Chris 'BinGOs' brian d foy, Bryan Stenson, Chad Granum, Chase Whitener, Chris 'BinGOs'
Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Book, Daniel Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Book, Daniel
Dragan, Dan Kogai, Dave Cross, Dave Rolsky, David Cantrell, David Mitchell, Dragan, Dan Kogai, Dave Cross, Dave Rolsky, David Cantrell, David Mitchell,
skipping to change at line 1854 skipping to change at line 1873
Many of the changes included in this version originated in the CPAN modules 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 included in Perl's core. We're grateful to the entire CPAN community for
helping Perl to flourish. helping Perl to flourish.
For a more complete list of all of Perl's historical contributors, please For a more complete list of all of Perl's historical contributors, please
see the F<AUTHORS> file in the Perl source distribution. see the F<AUTHORS> file in the Perl source distribution.
=head1 Reporting Bugs =head1 Reporting Bugs
If you find what you think is a bug, you might check the perl bug database If you find what you think is a bug, you might check the perl bug database
at L<https://github.com/Perl/perl5/issues>. There may also be information at at L<https://github.com/Perl/perl5/issues>. There may also be information at
L<http://www.perl.org/>, the Perl Home Page. L<http://www.perl.org/>, the Perl Home Page.
If you believe you have an unreported bug, please open an issue at If you believe you have an unreported bug, please open an issue at
L<https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a L<https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a
tiny but sufficient test case. tiny but sufficient test case.
If the bug you are reporting has security implications which make it If the bug you are reporting has security implications which make it
inappropriate to send to a public issue tracker, then see inappropriate to send to a public issue tracker, then see
L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION> L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
for details of how to report the issue. for details of how to report the issue.
=head1 Give Thanks =head1 Give Thanks
If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
 End of changes. 171 change blocks. 
291 lines changed or deleted 312 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)