-=over 4
-
-=item *
-
-The description of the C</x> modifier has been clarified to note that
-comments cannot be continued onto the next line by escaping them; and
-there is now a list of all the characters that are considered whitespace
-by this modifier.
-
-=item *
-
-The new C</n> modifier is described.
-
-=item *
-
-A note has been added on how to make bracketed character class ranges
-portable to non-ASCII machines.
-
-=back
-
-=head3 L<perlrebackslash>
-
-=over 4
-
-=item *
-
-Added documentation of C<\b{sb}>, C<\b{wb}>, C<\b{gcb}>, and C<\b{g}>.
-
-=back
-
-=head3 L<perlrecharclass>
-
-=over 4
-
-=item *
-
-Clarifications have been added to L<perlrecharclass/Character Ranges>
-to the effect that Perl guarantees that C<[A-Z]>, C<[a-z]>, C<[0-9]> and
-any subranges thereof in regular expression bracketed character classes
-are guaranteed to match exactly what a naive English speaker would
-expect them to match, even on platforms (such as EBCDIC) where special
-handling is required to accomplish this.
-
-=item *
-
-The documentation of Bracketed Character Classes has been expanded to cover the
-improvements in C<qr/[\N{named sequence}]/> (see under L</Selected Bug Fixes>).
-
-=back
-
-=head3 L<perlref>
-
-=over 4
-
-=item *
-
-A new section has been added
-L<Assigning to References|perlref/Assigning to References>
-
-=back
-
-=head3 L<perlsec>
-
-=over 4
-
-=item *
-
-Comments added on algorithmic complexity and tied hashes.
-
-=back
-
-=head3 L<perlsyn>
-
-=over 4
-
-=item *
-
-An ambiguity in the documentation of the C<...> statement has been corrected.
-L<[perl #122661]|https://rt.perl.org/Ticket/Display.html?id=122661>
-
-=item *
-
-The empty conditional in C<< for >> and C<< while >> is now documented
-in L<< perlsyn >>.
-
-=back
-
-=head3 L<perlunicode>
-
-=over 4
-
-=item *
-
-This has had extensive revisions to bring it up-to-date with current
-Unicode support and to make it more readable. Notable is that Unicode
-7.0 changed what it should do with non-characters. Perl retains the old
-way of handling for reasons of backward compatibility. See
-L<perlunicode/Noncharacter code points>.
-
-=back
-
-=head3 L<perluniintro>
-
-=over 4
-
-=item *
-
-Advice for how to make sure your strings and regular expression patterns are
-interpreted as Unicode has been updated.
-
-=back
-
-=head3 L<perlvar>
-
-=over 4
-
-=item *
-
-C<$]> is no longer listed as being deprecated. Instead, discussion has
-been added on the advantages and disadvantages of using it versus
-C<$^V>.
-
-=item *
-
-C<${^ENCODING}> is now marked as deprecated.
-
-=item *
-
-The entry for C<%^H> has been clarified to indicate it can only handle
-simple values.
-
-=back
-
-=head3 L<perlvms>
-
-=over 4
-
-=item *
-
-Out-of-date and/or incorrect material has been removed.
-
-=item *
-
-Updated documentation on environment and shell interaction in VMS.
-
-=back
-
-=head3 L<perlxs>
-
-=over 4
-
-=item *
-
-Added a discussion of locale issues in XS code.
-
-=back
-
-=head1 Diagnostics
-
-The following additions or changes have been made to diagnostic output,
-including warnings and fatal error messages. For the complete list of
-diagnostic messages, see L<perldiag>.
-
-=head2 New Diagnostics
-
-=head3 New Errors
-
-=over 4
-
-=item *
-
-L<Bad symbol for scalar|perldiag/"Bad symbol for scalar">
-
-(P) An internal request asked to add a scalar entry to something that
-wasn't a symbol table entry.
-
-=item *
-
-L<Can't use a hash as a reference|perldiag/"Can't use a hash as a reference">
-
-(F) You tried to use a hash as a reference, as in
-C<< %foo->{"bar"} >> or C<< %$ref->{"hello"} >>. Versions of perl E<lt>= 5.6.1
-used to allow this syntax, but shouldn't have.
-
-=item *
-
-L<Can't use an array as a reference|perldiag/"Can't use an array as a reference">
-
-(F) You tried to use an array as a reference, as in
-C<< @foo->[23] >> or C<< @$ref->[99] >>. Versions of perl E<lt>= 5.6.1 used to
-allow this syntax, but shouldn't have.
-
-=item *
-
-L<Can't use 'defined(@array)' (Maybe you should just omit the defined()?)|perldiag/"Can't use 'defined(@array)' (Maybe you should just omit the defined()?)">
-
-(F) C<defined()> is not useful on arrays because it
-checks for an undefined I<scalar> value. If you want to see if the
-array is empty, just use S<C<if (@array) { # not empty }>> for example.
-
-=item *
-
-L<Can't use 'defined(%hash)' (Maybe you should just omit the defined()?)|perldiag/"Can't use 'defined(%hash)' (Maybe you should just omit the defined()?)">
-
-(F) C<defined()> is not usually right on hashes.
-
-Although S<C<defined %hash>> is false on a plain not-yet-used hash, it
-becomes true in several non-obvious circumstances, including iterators,
-weak references, stash names, even remaining true after S<C<undef %hash>>.
-These things make S<C<defined %hash>> fairly useless in practice, so it now
-generates a fatal error.
-
-If a check for non-empty is what you wanted then just put it in boolean
-context (see L<perldata/Scalar values>):
-
- if (%hash) {
- # not empty
- }
-
-If you had S<C<defined %Foo::Bar::QUUX>> to check whether such a package
-variable exists then that's never really been reliable, and isn't
-a good way to enquire about the features of a package, or whether
-it's loaded, etc.
-
-=item *
-
-L<Cannot chr %f|perldiag/"Cannot chr %f">
-
-(F) You passed an invalid number (like an infinity or not-a-number) to
-C<chr>.
-
-=item *
-
-L<Cannot compress %f in pack|perldiag/"Cannot compress %f in pack">
-
-(F) You tried converting an infinity or not-a-number to an unsigned
-character, which makes no sense.
-
-=item *
-
-L<Cannot pack %f with '%c'|perldiag/"Cannot pack %f with '%c'">
-
-(F) You tried converting an infinity or not-a-number to a character,
-which makes no sense.
-
-=item *
-
-L<Cannot print %f with '%c'|perldiag/"Cannot printf %f with '%c'">
-
-(F) You tried printing an infinity or not-a-number as a character (C<%c>),
-which makes no sense. Maybe you meant C<'%s'>, or just stringifying it?
-
-=item *
-
-L<charnames alias definitions may not contain a sequence of multiple spaces|perldiag/"charnames alias definitions may not contain a sequence of multiple spaces">
-
-(F) You defined a character name which had multiple space
-characters in a row. Change them to single spaces. Usually these
-names are defined in the C<:alias> import argument to C<use charnames>, but
-they could be defined by a translator installed into C<$^H{charnames}>.
-See L<charnames/CUSTOM ALIASES>.
-
-=item *
-
-L<charnames alias definitions may not contain trailing white-space|perldiag/"charnames alias definitions may not contain trailing white-space">
-
-(F) You defined a character name which ended in a space
-character. Remove the trailing space(s). Usually these names are
-defined in the C<:alias> import argument to C<use charnames>, but they
-could be defined by a translator installed into C<$^H{charnames}>.
-See L<charnames/CUSTOM ALIASES>.
-
-=item *
-
-L<:const is not permitted on named subroutines|perldiag/":const is not permitted on named subroutines">
-
-(F) The "const" attribute causes an anonymous subroutine to be run and
-its value captured at the time that it is cloned. Named subroutines are
-not cloned like this, so the attribute does not make sense on them.
-
-=item *
-
-L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
-
-(F) Something went horribly bad in hexadecimal float handling.
-
-=item *
-
-L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
-
-(F) You have configured Perl to use long doubles but
-the internals of the long double format are unknown,
-therefore the hexadecimal float output is impossible.
-
-=item *
-
-L<Illegal suidscript|perldiag/"Illegal suidscript">
-
-(F) The script run under suidperl was somehow illegal.
-
-=item *
-
-L<In '(?...)', the '(' and '?' must be adjacent in regex; marked by S<<-- HERE> in mE<sol>%sE<sol>|perldiag/"In '(?...)', the '(' and '?' must be adjacent in regex; marked by <-- HERE in m/%s/">
-
-(F) The two-character sequence C<"(?"> in
-this context in a regular expression pattern should be an
-indivisible token, with nothing intervening between the C<"(">
-and the C<"?">, but you separated them.
-
-=item *
-
-L<In '(*VERB...)', the '(' and '*' must be adjacent in regex; marked by S<<-- HERE> in mE<sol>%sE<sol>|perldiag/"In '(*VERB...)', the '(' and '*' must be adjacent in regex; marked by <-- HERE in m/%s/">
-
-(F) The two-character sequence C<"(*"> in
-this context in a regular expression pattern should be an
-indivisible token, with nothing intervening between the C<"(">
-and the C<"*">, but you separated them.
-
-=item *
-
-L<Invalid quantifier in {,} in regex; marked by <-- HERE in mE<sol>%sE<sol>|perldiag/"Invalid quantifier in {,} in regex; marked by <-- HERE in m/%s/">
-
-(F) The pattern looks like a {min,max} quantifier, but the min or max could not
-be parsed as a valid number - either it has leading zeroes, or it represents
-too big a number to cope with. The S<<-- HERE> shows where in the regular
-expression the problem was discovered. See L<perlre>.
-
-=back
-
-=head3 New Warnings
-
-=over 4
-
-=item *
-
-L<\C is deprecated in regex|perldiag/"\C is deprecated in regex; marked by <-- HERE in m/%s/">
-
-(D deprecated) The C<< /\C/ >> character class was deprecated in v5.20, and
-now emits a warning. It is intended that it will become an error in v5.24.
-This character class matches a single byte even if it appears within a
-multi-byte character, breaks encapsulation, and can corrupt UTF-8
-strings.
-
-=item *
-
-L<'%s' is an unknown bound type in regex|perldiag/"'%s' is an unknown bound type in regex; marked by <-- HERE in m/%s/">
-
-You used C<\b{...}> or C<\B{...}> and the C<...> is not known to
-Perl. The current valid ones are given in
-L<perlrebackslash/\b{}, \b, \B{}, \B>.
-
-=item *
-
-L<"%s" is more clearly written simply as "%s" in regex; marked by E<lt>-- HERE in mE<sol>%sE<sol>|perldiag/"%s" is more clearly written simply as "%s" in regex; marked by <-- HERE in mE<sol>%sE<sol>>
-
-(W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
-
-You specified a character that has the given plainer way of writing it,
-and which is also portable to platforms running with different character
-sets.
-
-=item *
-
-L<Argument "%s" treated as 0 in increment (++)|perldiag/"Argument "%s" treated
-as 0 in increment (++)">
-
-(W numeric) The indicated string was fed as an argument to the C<++> operator
-which expects either a number or a string matching C</^[a-zA-Z]*[0-9]*\z/>.
-See L<perlop/Auto-increment and Auto-decrement> for details.
-
-=item *
-
-L<Both or neither range ends should be Unicode in regex; marked by E<lt>-- HERE in mE<sol>%sE<sol>|perldiag/"Both or neither range ends should be Unicode in regex; marked by <-- HERE in m/%s/">
-
-(W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
-
-In a bracketed character class in a regular expression pattern, you
-had a range which has exactly one end of it specified using C<\N{}>, and
-the other end is specified using a non-portable mechanism. Perl treats
-the range as a Unicode range, that is, all the characters in it are
-considered to be the Unicode characters, and which may be different code
-points on some platforms Perl runs on. For example, C<[\N{U+06}-\x08]>
-is treated as if you had instead said C<[\N{U+06}-\N{U+08}]>, that is it
-matches the characters whose code points in Unicode are 6, 7, and 8.
-But that C<\x08> might indicate that you meant something different, so
-the warning gets raised.
-
-=item *
-
-L<:const is experimental|perldiag/":const is experimental">
-
-(S experimental::const_attr) The "const" attribute is experimental.
-If you want to use the feature, disable the warning with C<no warnings
-'experimental::const_attr'>, but know that in doing so you are taking
-the risk that your code may break in a future Perl version.
-
-=item *
-
-L<gmtime(%f) failed|perldiag/"gmtime(%f) failed">
-
-(W overflow) You called C<gmtime> with a number that it could not handle:
-too large, too small, or NaN. The returned value is C<undef>.
-
-=item *
-
-L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
-
-(W overflow) The hexadecimal floating point has larger exponent
-than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
-
-(W overflow) The hexadecimal floating point has smaller exponent
-than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
-
-(W overflow) The hexadecimal floating point literal had more bits in
-the mantissa (the part between the 0x and the exponent, also known as
-the fraction or the significand) than the floating point supports.
-
-=item *
-
-L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
-
-(W overflow) The hexadecimal floating point had internally more
-digits than could be output. This can be caused by unsupported
-long double formats, or by 64-bit integers not being available
-(needed to retrieve the digits under some configurations).
-
-=item *
-
-L<localtime(%f) failed|perldiag/"localtime(%f) failed">
-
-(W overflow) You called C<localtime> with a number that it could not handle:
-too large, too small, or NaN. The returned value is C<undef>.
-
-=item *
-
-L<Negative repeat count does nothing|perldiag/"Negative repeat count does nothing">
-
-(W numeric) You tried to execute the
-L<C<x>|perlop/Multiplicative Operators> repetition operator fewer than 0
-times, which doesn't make sense.
-
-=item *
-
-L<NO-BREAK SPACE in a charnames alias definition is deprecated|perldiag/"NO-BREAK SPACE in a charnames alias definition is deprecated">
-
-(D deprecated) You defined a character name which contained a no-break
-space character. Change it to a regular space. Usually these names are
-defined in the C<:alias> import argument to C<use charnames>, but they
-could be defined by a translator installed into C<$^H{charnames}>. See
-L<charnames/CUSTOM ALIASES>.
-
-=item *
-
-L<Non-finite repeat count does nothing|perldiag/"Non-finite repeat count does nothing">
-
-(W numeric) You tried to execute the
-L<C<x>|perlop/Multiplicative Operators> repetition operator C<Inf> (or
-C<-Inf>) or NaN times, which doesn't make sense.
-
-=item *
-
-L<PerlIO layer ':win32' is experimental|perldiag/"PerlIO layer ':win32' is experimental">
-
-(S experimental::win32_perlio) The C<:win32> PerlIO layer is
-experimental. If you want to take the risk of using this layer,
-simply disable this warning:
-
- no warnings "experimental::win32_perlio";
-
-=item *
-
-L<Ranges of ASCII printables should be some subset of "0-9", "A-Z", or "a-z" in regex; marked by E<lt>-- HERE in mE<sol>%sE<sol>|perldiag/"Ranges of ASCII printables should be some subset of "0-9", "A-Z", or "a-z" in regex; marked by <-- HERE in mE<sol>%sE<sol>">
-
-(W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
-
-Stricter rules help to find typos and other errors. Perhaps you didn't
-even intend a range here, if the C<"-"> was meant to be some other
-character, or should have been escaped (like C<"\-">). If you did
-intend a range, the one that was used is not portable between ASCII and
-EBCDIC platforms, and doesn't have an obvious meaning to a casual
-reader.
-
- [3-7] # OK; Obvious and portable
- [d-g] # OK; Obvious and portable
- [A-Y] # OK; Obvious and portable
- [A-z] # WRONG; Not portable; not clear what is meant
- [a-Z] # WRONG; Not portable; not clear what is meant
- [%-.] # WRONG; Not portable; not clear what is meant
- [\x41-Z] # WRONG; Not portable; not obvious to non-geek
-
-(You can force portability by specifying a Unicode range, which means that
-the endpoints are specified by
-L<C<\N{...}>|perlrecharclass/Character Ranges>, but the meaning may
-still not be obvious.)
-The stricter rules require that ranges that start or stop with an ASCII
-character that is not a control have all their endpoints be a literal
-character, and not some escape sequence (like C<"\x41">), and the ranges
-must be all digits, or all uppercase letters, or all lowercase letters.
-
-=item *
-
-L<Ranges of digits should be from the same group in regex; marked by E<lt>-- HERE in mE<sol>%sE<sol>|perldiag/"Ranges of digits should be from the same group in regex; marked by <-- HERE in m/%s/">
-
-(W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
-
-Stricter rules help to find typos and other errors. You included a
-range, and at least one of the end points is a decimal digit. Under the
-stricter rules, when this happens, both end points should be digits in
-the same group of 10 consecutive digits.
-
-=item *
-
-L<Redundant argument in %s|perldiag/Redundant argument in %s>
-
-(W redundant) You called a function with more arguments than were
-needed, as indicated by information within other arguments you supplied
-(e.g. a printf format). Currently only emitted when a printf-type format
-required fewer arguments than were supplied, but might be used in the
-future for e.g. L<perlfunc/pack>.
-
-The warnings category C<< redundant >> is new. See also
-L<[perl #121025]|https://rt.perl.org/Ticket/Display.html?id=121025>.
-
-=item *
-
-L<Use of \b{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale|perldiag/"Use of \b{} for non-UTF-8 locale is wrong. Assuming a UTF-8 locale">
-
-You are matching a regular expression using locale rules,
-and a Unicode boundary is being matched, but the locale is not a Unicode
-one. This doesn't make sense. Perl will continue, assuming a Unicode
-(UTF-8) locale, but the results could well be wrong except if the locale
-happens to be ISO-8859-1 (Latin1) where this message is spurious and can
-be ignored.
-
-=item *
-
-L<< Using E<sol>u for '%s' instead of E<sol>%s in regex; marked by E<lt>-- HERE in mE<sol>%sE<sol>|perldiag/"Using E<sol>u for '%s' instead of E<sol>%s in regex; marked by <-- HERE in mE<sol>%sE<sol>" >>
-
-You used a Unicode boundary (C<\b{...}> or C<\B{...}>) in a
-portion of a regular expression where the character set modifiers C</a>
-or C</aa> are in effect. These two modifiers indicate an ASCII
-interpretation, and this doesn't make sense for a Unicode definition.
-The generated regular expression will compile so that the boundary uses
-all of Unicode. No other portion of the regular expression is affected.
-
-=item *
-
-L<The bitwise feature is experimental|perldiag/"The bitwise feature is experimental">
-
-This warning is emitted if you use bitwise
-operators (C<& | ^ ~ &. |. ^. ~.>) with the "bitwise" feature enabled.
-Simply suppress the warning if you want to use the feature, but know
-that in doing so you are taking the risk of using an experimental
-feature which may change or be removed in a future Perl version:
-
- no warnings "experimental::bitwise";
- use feature "bitwise";
- $x |.= $y;
-
-=item *
-
-L<Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in mE<sol>%sE<sol>|perldiag/"Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%s/">
-
-(D deprecated, regexp) You used a literal C<"{"> character in a regular
-expression pattern. You should change to use C<"\{"> instead, because a future
-version of Perl (tentatively v5.26) will consider this to be a syntax error. If
-the pattern delimiters are also braces, any matching right brace
-(C<"}">) should also be escaped to avoid confusing the parser, for
-example,
-
- qr{abc\{def\}ghi}
-
-=item *
-
-L<Use of literal non-graphic characters in variable names is deprecated|perldiag/"Use of literal non-graphic characters in variable names is deprecated">
-
-(D deprecated) Using literal non-graphic (including control)
-characters in the source to refer to the ^FOO variables, like C<$^X> and
-C<${^GLOBAL_PHASE}> is now deprecated.
-
-=item *
-
-L<Useless use of attribute "const"|perldiag/Useless use of attribute "const">
-
-(W misc) The "const" attribute has no effect except
-on anonymous closure prototypes. You applied it to
-a subroutine via L<attributes.pm|attributes>. This is only useful
-inside an attribute handler for an anonymous subroutine.
-
-=item *
-
-L<E<quot>use re 'strict'E<quot> is experimental|perldiag/"use re 'strict'" is experimental>
-
-(S experimental::re_strict) The things that are different when a regular
-expression pattern is compiled under C<'strict'> are subject to change
-in future Perl releases in incompatible ways. This means that a pattern
-that compiles today may not in a future Perl release. This warning is
-to alert you to that risk.
-
-=item *
-
-L<Warning: unable to close filehandle properly: %s|perldiag/"Warning: unable to close filehandle properly: %s">
-
-L<Warning: unable to close filehandle %s properly: %s|perldiag/"Warning: unable to close filehandle %s properly: %s">
-
-(S io) Previously perl silently ignored any errors when doing an implicit
-close of a filehandle, i.e. where the reference count of the filehandle
-reached zero and the user's code hadn't already called C<close()>; e.g.
-
- {
- open my $fh, '>', $file or die "open: '$file': $!\n";
- print $fh, $data or die;
- } # implicit close here
-
-In a situation such as disk full, due to buffering the error may only be
-detected during the final close, so not checking the result of the close is
-dangerous.
-
-So perl now warns in such situations.
-
-=item *
-
-L<Wide character (U+%X) in %s|perldiag/"Wide character (U+%X) in %s">
-
-(W locale) While in a single-byte locale (I<i.e.>, a non-UTF-8
-one), a multi-byte character was encountered. Perl considers this
-character to be the specified Unicode code point. Combining non-UTF-8
-locales and Unicode is dangerous. Almost certainly some characters
-will have two different representations. For example, in the ISO 8859-7
-(Greek) locale, the code point 0xC3 represents a Capital Gamma. But so
-also does 0x393. This will make string comparisons unreliable.
-
-You likely need to figure out how this multi-byte character got mixed up
-with your single-byte locale (or perhaps you thought you had a UTF-8
-locale, but Perl disagrees).
-
-=item *
-
-The following two warnings for C<tr///> used to be skipped if the
-transliteration contained wide characters, but now they occur regardless of
-whether there are wide characters or not:
-
-L<Useless use of E<sol>d modifier in transliteration operator|perldiag/"Useless use of /d modifier in transliteration operator">
-
-L<Replacement list is longer than search list|perldiag/Replacement list is longer than search list>
-
-=item *
-
-A new C<locale> warning category has been created, with the following warning
-messages currently in it:
-
-=over 4
-
-=item *
-
-L<Locale '%s' may not work well.%s|perldiag/Locale '%s' may not work well.%s>
-
-(W locale) You are using the named locale, which is a non-UTF-8 one, and
-which Perl has determined is not fully compatible with Perl. The second
-C<%s> gives a reason.
-
-=item *
-
-L<Can't do %s("%s") on non-UTF-8 locale; resolved to "%s".|perldiag/Can't do %s("%s") on non-UTF-8 locale; resolved to "%s".>
-
-(W locale) You are 1) running under "C<use locale>"; 2) the current
-locale is not a UTF-8 one; 3) you tried to do the designated case-change
-operation on the specified Unicode character; and 4) the result of this
-operation would mix Unicode and locale rules, which likely conflict.
-
-=back
-
-=item *
-
-L<Missing or undefined argument to require|perldiag/Missing or undefined argument to require>
-
-(F) You tried to call C<require> with no argument or with an undefined
-value as an argument. C<require> expects either a package name or a
-file-specification as an argument. See L<perlfunc/require>.
-
-Formerly, C<require> with no argument or C<undef> warned about a Null filename.
-
-=back
-
-=head2 Changes to Existing Diagnostics
-
-=over 4
-
-=item *
-
-<> should be quotes
-
-This warning has been changed to
-L<< <> at require-statement should be quotes|perldiag/"<> at require-statement should be quotes" >>
-to make the issue more identifiable.
-
-=item *
-
-L<Argument "%s" isn't numeric%s|perldiag/"Argument "%s" isn't numeric%s">
-
-The L<perldiag> entry for this warning has added this clarifying note:
-
- Note that for the Inf and NaN (infinity and not-a-number) the
- definition of "numeric" is somewhat unusual: the strings themselves
- (like "Inf") are considered numeric, and anything following them is
- considered non-numeric.
-
-=item *
-
-L<Global symbol "%s" requires explicit package name|perldiag/"Global symbol "%s" requires explicit package name (did you forget to declare "my %s"?)">
-
-This message has had '(did you forget to declare "my %s"?)' appended to it, to
-make it more helpful to new Perl programmers.
-L<[perl #121638]|https://rt.perl.org/Ticket/Display.html?id=121638>
-
-=item *
-
-'"my" variable &foo::bar can't be in a package' has been reworded to say
-'subroutine' instead of 'variable'.
-
-=item *
-
-L<<< \N{} in character class restricted to one character in regex; marked by
-S<< <-- HERE >> in mE<sol>%sE<sol>|perldiag/"\N{} in inverted character
-class or as a range end-point is restricted to one character in regex;
-marked by <-- HERE in m/%s/" >>>
-
-This message has had I<character class> changed to I<inverted character
-class or as a range end-point is> to reflect improvements in
-C<qr/[\N{named sequence}]/> (see under L</Selected Bug Fixes>).
-
-=item *
-
-L<panic: frexp|perldiag/"panic: frexp: %f">
-
-This message has had ': C<%f>' appended to it, to show what the offending
-floating point number is.
-
-=item *
-
-I<Possible precedence problem on bitwise %c operator> reworded as
-L<Possible precedence problem on bitwise %s operator|perldiag/"Possible precedence problem on bitwise %s operator">.
-
-=item *
-
-L<Unsuccessful %s on filename containing newline|perldiag/"Unsuccessful %s on filename containing newline">
-
-This warning is now only produced when the newline is at the end of
-the filename.
-
-=item *
-
-"Variable C<%s> will not stay shared" has been changed to say "Subroutine"
-when it is actually a lexical sub that will not stay shared.
-
-=item *
-
-L<Variable length lookbehind not implemented in regex mE<sol>%sE<sol>|perldiag/"Variable length lookbehind not implemented in regex m/%s/">
-
-The L<perldiag> entry for this warning has had information about Unicode
-behaviour added.
-
-=back
-
-=head2 Diagnostic Removals
-
-=over
-
-=item *
-
-"Ambiguous use of -foo resolved as -&foo()"
-
-There is actually no ambiguity here, and this impedes the use of negated
-constants; e.g., C<-Inf>.
-
-=item *
-
-"Constant is not a FOO reference"
-
-Compile-time checking of constant dereferencing (e.g., C<< my_constant->() >>)
-has been removed, since it was not taking overloading into account.
-L<[perl #69456]|https://rt.perl.org/Ticket/Display.html?id=69456>
-L<[perl #122607]|https://rt.perl.org/Ticket/Display.html?id=122607>
-
-=back
-
-=head1 Utility Changes
-
-=head2 F<find2perl>, F<s2p> and F<a2p> removal
-
-=over 4
-
-=item *
-
-The F<x2p/> directory has been removed from the Perl core.
-
-This removes find2perl, s2p and a2p. They have all been released to CPAN as
-separate distributions (App::find2perl, App::s2p, App::a2p).
-
-=back
-
-=head2 L<h2ph>
-
-=over 4
-
-=item *
-
-F<h2ph> now handles hexadecimal constants in the compiler's predefined
-macro definitions, as visible in C<$Config{cppsymbols}>.
-L<[perl #123784]|https://rt.perl.org/Ticket/Display.html?id=123784>.
-
-=back
-
-=head2 L<encguess>
-
-=over 4
-
-=item *
-
-No longer depends on non-core modules.
-
-=back
-
-=head1 Configuration and Compilation
-
-=over 4
-
-=item *
-
-F<Configure> now checks for C<lrintl()>, C<lroundl()>, C<llrintl()>, and
-C<llroundl()>.
-
-=item *
-
-F<Configure> with C<-Dmksymlinks> should now be faster.
-L<[perl #122002]|https://rt.perl.org/Ticket/Display.html?id=122002>.
-
-=item *
-
-The C<pthreads> and C<cl> libraries will be linked by default if present.
-This allows XS modules that require threading to work on non-threaded
-perls. Note that you must still pass C<-Dusethreads> if you want a
-threaded perl.
-
-=item *
-
-For long doubles (to get more precision and range for floating point numbers)
-one can now use the GCC quadmath library which implements the quadruple
-precision floating point numbers on x86 and IA-64 platforms. See
-F<INSTALL> for details.
-
-=item *
-
-MurmurHash64A and MurmurHash64B can now be configured as the internal hash
-function.
-
-=item *
-
-C<make test.valgrind> now supports parallel testing.
-
-For example:
-
- TEST_JOBS=9 make test.valgrind
-
-See L<perlhacktips/valgrind> for more information.
-
-L<[perl #121431]|https://rt.perl.org/Ticket/Display.html?id=121431>
-
-=item *
-
-The MAD (Misc Attribute Decoration) build option has been removed
-
-This was an unmaintained attempt at preserving
-the Perl parse tree more faithfully so that automatic conversion of
-Perl 5 to Perl 6 would have been easier.
-
-This build-time configuration option had been unmaintained for years,
-and had probably seriously diverged on both Perl 5 and Perl 6 sides.
-
-=item *
-
-A new compilation flag, C<< -DPERL_OP_PARENT >> is available. For details,
-see the discussion below at L<< /Internal Changes >>.
-
-=item *
-
-Pathtools no longer tries to load XS on miniperl. This speeds up building perl
-slightly.
-
-=back
-
-=head1 Testing
-
-=over 4
-
-=item *
-
-F<t/porting/re_context.t> has been added to test that L<utf8> and its
-dependencies only use the subset of the C<$1..$n> capture vars that
-C<Perl_save_re_context()> is hard-coded to localize, because that function
-has no efficient way of determining at runtime what vars to localize.
-
-=item *
-
-Tests for performance issues have been added in the file F<t/perf/taint.t>.
-
-=item *
-
-Some regular expression tests are written in such a way that they will
-run very slowly if certain optimizations break. These tests have been
-moved into new files, F<< t/re/speed.t >> and F<< t/re/speed_thr.t >>,
-and are run with a C<< watchdog() >>.
-
-=item *
-
-C<< test.pl >> now allows C<< plan skip_all => $reason >>, to make it
-more compatible with C<< Test::More >>.
-
-=item *
-
-A new test script, F<op/infnan.t>, has been added to test if Inf and NaN are
-working correctly. See L</Infinity and NaN (not-a-number) handling improved>.
-
-=back
-
-=head1 Platform Support
-
-=head2 Regained Platforms
-
-=over 4
-
-=item IRIX and Tru64 platforms are working again.
-
-(Some C<make test> failures remain.)
-
-=item z/OS running EBCDIC Code Page 1047
-
-Core perl now works on this EBCDIC platform. Earlier perls also worked, but,
-even though support wasn't officially withdrawn, recent perls would not compile
-and run well. Perl 5.20 would work, but had many bugs which have now been
-fixed. Many CPAN modules that ship with Perl still fail tests, including
-Pod::Simple. However the version of Pod::Simple currently on CPAN should work;
-it was fixed too late to include in Perl 5.22. Work is under way to fix many
-of the still-broken CPAN modules, which likely will be installed on CPAN when
-completed, so that you may not have to wait until Perl 5.24 to get a working
-version.
-
-=back
-
-=head2 Discontinued Platforms
-
-=over 4
-
-=item NeXTSTEP/OPENSTEP
-
-NeXTSTEP was a proprietary operating system bundled with NeXT's
-workstations in the early to mid 90s; OPENSTEP was an API specification
-that provided a NeXTSTEP-like environment on a non-NeXTSTEP system. Both
-are now long dead, so support for building Perl on them has been removed.
-
-=back
-
-=head2 Platform-Specific Notes
-
-=over 4
-
-=item EBCDIC
-
-Special handling is required on EBCDIC platforms to get C<qr/[i-j]/> to
-match only C<"i"> and C<"j">, since there are 7 characters between the
-code points for C<"i"> and C<"j">. This special handling had only been
-invoked when both ends of the range are literals. Now it is also
-invoked if any of the C<\N{...}> forms for specifying a character by
-name or Unicode code point is used instead of a literal. See
-L<perlrecharclass/Character Ranges>.
-
-=item HP-UX
-
-The archname now distinguishes use64bitint from use64bitall.
-
-=item Android
-
-Build support has been improved for cross-compiling in general and for
-Android in particular.
-
-=item VMS
-
-=over 4
-
-=item *
-
-When spawning a subprocess without waiting, the return value is now
-the correct PID.
-
-=item *
-
-Fix a prototype so linking doesn't fail under the VMS C++ compiler.
-
-=item *
-
-C<finite>, C<finitel>, and C<isfinite> detection has been added to
-C<configure.com>, environment handling has had some minor changes, and
-a fix for legacy feature checking status.
-
-=back
-
-=item Win32
-
-=over 4
-
-=item *
-
-F<miniperl.exe> is now built with C<-fno-strict-aliasing>, allowing 64-bit
-builds to complete on GCC 4.8.
-L<[perl #123976]|https://rt.perl.org/Ticket/Display.html?id=123976>
-
-=item *
-
-C<nmake minitest> now works on Win32. Due to dependency issues you
-need to build C<nmake test-prep> first, and a small number of the
-tests fail.
-L<[perl #123394]|https://rt.perl.org/Ticket/Display.html?id=123394>
-
-=item *
-
-Perl can now be built in C++ mode on Windows by setting the makefile macro
-C<USE_CPLUSPLUS> to the value "define".
-
-=item *
-
-The list form of piped open has been implemented for Win32. Note: unlike
-C<system LIST> this does not fall back to the shell.
-L<[perl #121159]|https://rt.perl.org/Ticket/Display.html?id=121159>
-
-=item *
-
-New C<DebugSymbols> and C<DebugFull> configuration options added to
-Windows makefiles.
-
-=item *
-
-Previously compiling XS modules (including CPAN ones) using Visual C++ for
-Win64 resulted in around a dozen warnings per file from F<hv_func.h>. These
-warnings have been silenced.
-
-=item *
-
-Support for building without PerlIO has been removed from the Windows
-makefiles. Non-PerlIO builds were all but deprecated in Perl 5.18.0 and are
-already not supported by F<Configure> on POSIX systems.
-
-=item *
-
-Between 2 and 6 milliseconds and seven I/O calls have been saved per attempt
-to open a perl module for each path in C<@INC>.
-
-=item *
-
-Intel C builds are now always built with C99 mode on.
-
-=item *
-
-C<%I64d> is now being used instead of C<%lld> for MinGW.
-
-=item *
-
-In the experimental C<:win32> layer, a crash in C<open> was fixed. Also
-opening F</dev/null> (which works under Win32 Perl's default C<:unix>
-layer) was implemented for C<:win32>.
-L<[perl #122224]|https://rt.perl.org/Ticket/Display.html?id=122224>
-
-=item *
-
-A new makefile option, C<USE_LONG_DOUBLE>, has been added to the Windows
-dmake makefile for gcc builds only. Set this to "define" if you want perl to
-use long doubles to give more accuracy and range for floating point numbers.
-
-=back
-
-=item OpenBSD
-
-On OpenBSD, Perl will now default to using the system C<malloc> due to the
-security features it provides. Perl's own malloc wrapper has been in use
-since v5.14 due to performance reasons, but the OpenBSD project believes
-the tradeoff is worth it and would prefer that users who need the speed
-specifically ask for it.
-
-L<[perl #122000]|https://rt.perl.org/Ticket/Display.html?id=122000>.
-
-=item Solaris
-
-=over 4
-
-=item *
-
-We now look for the Sun Studio compiler in both F</opt/solstudio*> and
-F</opt/solarisstudio*>.
-
-=item *
-
-Builds on Solaris 10 with C<-Dusedtrace> would fail early since make
-didn't follow implied dependencies to build C<perldtrace.h>. Added an
-explicit dependency to C<depend>.
-L<[perl #120120]|https://rt.perl.org/Ticket/Display.html?id=120120>
-
-=item *
-
-C<c99> options have been cleaned up; hints look for C<solstudio>
-as well as C<SUNWspro>; and support for native C<setenv> has been added.
-
-=back
-
-=back
-
-=head1 Internal Changes
-
-=over 4
-
-=item *
-
-Experimental support has been added to allow ops in the optree to locate
-their parent, if any. This is enabled by the non-default build option
-C<-DPERL_OP_PARENT>. It is envisaged that this will eventually become
-enabled by default, so XS code which directly accesses the C<op_sibling>
-field of ops should be updated to be future-proofed.
-
-On C<PERL_OP_PARENT> builds, the C<op_sibling> field has been renamed
-C<op_sibparent> and a new flag, C<op_moresib>, added. On the last op in a
-sibling chain, C<op_moresib> is false and C<op_sibparent> points to the
-parent (if any) rather than being C<NULL>.
-
-To make existing code work transparently whether using C<PERL_OP_PARENT>
-or not, a number of new macros and functions have been added that should
-be used, rather than directly manipulating C<op_sibling>.
-
-For the case of just reading C<op_sibling> to determine the next sibling,
-two new macros have been added. A simple scan through a sibling chain
-like this:
-
- for (; kid->op_sibling; kid = kid->op_sibling) { ... }
-
-should now be written as:
-
- for (; OpHAS_SIBLING(kid); kid = OpSIBLING(kid)) { ... }
-
-For altering optrees, a general-purpose function C<op_sibling_splice()>
-has been added, which allows for manipulation of a chain of sibling ops.
-By analogy with the Perl function C<splice()>, it allows you to cut out
-zero or more ops from a sibling chain and replace them with zero or more
-new ops. It transparently handles all the updating of sibling, parent,
-op_last pointers etc.
-
-If you need to manipulate ops at a lower level, then three new macros,
-C<OpMORESIB_set>, C<OpLASTSIB_set> and C<OpMAYBESIB_set> are intended to
-be a low-level portable way to set C<op_sibling> / C<op_sibparent> while
-also updating C<op_moresib>. The first sets the sibling pointer to a new
-sibling, the second makes the op the last sibling, and the third
-conditionally does the first or second action. Note that unlike
-C<op_sibling_splice()> these macros won't maintain consistency in the
-parent at the same time (e.g. by updating C<op_first> and C<op_last> where
-appropriate).
-
-A C-level C<Perl_op_parent()> function and a Perl-level C<B::OP::parent()>
-method have been added. The C function only exists under
-C<PERL_OP_PARENT> builds (using it is build-time error on vanilla
-perls). C<B::OP::parent()> exists always, but on a vanilla build it
-always returns C<NULL>. Under C<PERL_OP_PARENT>, they return the parent
-of the current op, if any. The variable C<$B::OP::does_parent> allows you
-to determine whether C<B> supports retrieving an op's parent.
-
-C<PERL_OP_PARENT> was introduced in 5.21.2, but the interface was
-changed considerably in 5.21.11. If you updated your code before the
-5.21.11 changes, it may require further revision. The main changes after
-5.21.2 were:
-
-=over 4
-
-=item *
-
-The C<OP_SIBLING> and C<OP_HAS_SIBLING> macros have been renamed
-C<OpSIBLING> and C<OpHAS_SIBLING> for consistency with other
-op-manipulating macros.
-
-=item *
-
-The C<op_lastsib> field has been renamed C<op_moresib>, and its meaning
-inverted.
-
-=item *
-
-The macro C<OpSIBLING_set> has been removed, and has been superseded by
-C<OpMORESIB_set> et al.
-
-=item *
-
-The C<op_sibling_splice()> function now accepts a null C<parent> argument
-where the splicing doesn't affect the first or last ops in the sibling
-chain
-
-=back
-
-=item *
-
-Macros have been created to allow XS code to better manipulate the POSIX locale
-category C<LC_NUMERIC>. See L<perlapi/Locale-related functions and macros>.
-
-=item *
-
-The previous C<atoi> et al replacement function, C<grok_atou>, has now been
-superseded by C<grok_atoUV>. See L<perlclib> for details.
-
-=item *
-
-A new function, C<Perl_sv_get_backrefs()>, has been added which allows you
-retrieve the weak references, if any, which point at an SV.
-
-=item *
-
-The C<screaminstr()> function has been removed. Although marked as
-public API, it was undocumented and had no usage in CPAN modules. Calling
-it has been fatal since 5.17.0.
-
-=item *
-
-The C<newDEFSVOP()>, C<block_start()>, C<block_end()> and C<intro_my()>
-functions have been added to the API.
-
-=item *
-
-The internal C<convert> function in F<op.c> has been renamed
-C<op_convert_list> and added to the API.
-
-=item *
-
-The C<sv_magic()> function no longer forbids "ext" magic on read-only
-values. After all, perl can't know whether the custom magic will modify
-the SV or not.
-L<[perl #123103]|https://rt.perl.org/Ticket/Display.html?id=123103>.
-
-=item *
-
-Accessing L<perlapi/CvPADLIST> on an XSUB is now forbidden.
-
-The C<CvPADLIST> field has been reused for a different internal purpose
-for XSUBs. So in particular, you can no longer rely on it being NULL as a
-test of whether a CV is an XSUB. Use C<CvISXSUB()> instead.
-
-=item *
-
-SVs of type C<SVt_NV> are now sometimes bodiless when the build
-configuration and platform allow it: specifically, when C<< sizeof(NV) <=
-sizeof(IV) >>. "Bodiless" means that the NV value is stored directly in
-the head of an SV, without requiring a separate body to be allocated. This
-trick has already been used for IVs since 5.9.2 (though in the case of
-IVs, it is always used, regardless of platform and build configuration).
-
-=item *
-
-The C<$DB::single>, C<$DB::signal> and C<$DB::trace> variables now have set- and
-get-magic that stores their values as IVs, and those IVs are used when
-testing their values in C<pp_dbstate()>. This prevents perl from
-recursing infinitely if an overloaded object is assigned to any of those
-variables.
-L<[perl #122445]|https://rt.perl.org/Ticket/Display.html?id=122445>.
-
-=item *
-
-C<Perl_tmps_grow()>, which is marked as public API but is undocumented, has
-been removed from the public API. This change does not affect XS code that
-uses the C<EXTEND_MORTAL> macro to pre-extend the mortal stack.
-
-=item *
-
-Perl's internals no longer sets or uses the C<SVs_PADMY> flag.
-C<SvPADMY()> now returns a true value for anything not marked C<PADTMP>
-and C<SVs_PADMY> is now defined as 0.
-
-=item *
-
-The macros C<SETsv> and C<SETsvUN> have been removed. They were no longer used
-in the core since commit 6f1401dc2a five years ago, and have not been
-found present on CPAN.
-
-=item *
-
-The C<< SvFAKE >> bit (unused on HVs) got informally reserved by
-David Mitchell for future work on vtables.
-
-=item *
-
-The C<sv_catpvn_flags()> function accepts C<SV_CATBYTES> and C<SV_CATUTF8>
-flags, which specify whether the appended string is bytes or UTF-8,
-respectively. (These flags have in fact been present since 5.16.0, but
-were formerly not regarded as part of the API.)
-
-=item *
-
-A new opcode class, C<< METHOP >>, has been introduced. It holds
-information used at runtime for improve the performance
-of class/object method calls.
-
-C<< OP_METHOD >> and C<< OP_METHOD_NAMED >> have changed from being
-C<< UNOP/SVOP >> to being C<< METHOP >>.
-
-=item *
-
-C<cv_name()> is a new API function that can be passed a CV or GV. It
-returns an SV containing the name of the subroutine, for use in
-diagnostics.
-
-L<[perl #116735]|https://rt.perl.org/Ticket/Display.html?id=116735>
-L<[perl #120441]|https://rt.perl.org/Ticket/Display.html?id=120441>
-
-=item *
-
-C<cv_set_call_checker_flags()> is a new API function that works like
-C<cv_set_call_checker()>, except that it allows the caller to specify
-whether the call checker requires a full GV for reporting the subroutine's
-name, or whether it could be passed a CV instead. Whatever value is
-passed will be acceptable to C<cv_name()>. C<cv_set_call_checker()>
-guarantees there will be a GV, but it may have to create one on the fly,
-which is inefficient.
-L<[perl #116735]|https://rt.perl.org/Ticket/Display.html?id=116735>
-
-=item *
-
-C<CvGV> (which is not part of the API) is now a more complex macro, which may
-call a function and reify a GV. For those cases where it has been used as a
-boolean, C<CvHASGV> has been added, which will return true for CVs that
-notionally have GVs, but without reifying the GV. C<CvGV> also returns a GV
-now for lexical subs.
-L<[perl #120441]|https://rt.perl.org/Ticket/Display.html?id=120441>
-
-=item *
-
-The L<perlapi/sync_locale> function has been added to the public API.
-Changing the program's locale should be avoided by XS code. Nevertheless,
-certain non-Perl libraries called from XS need to do so, such as C<Gtk>.
-When this happens, Perl needs to be told that the locale has
-changed. Use this function to do so, before returning to Perl.
-
-=item *
-
-The defines and labels for the flags in the C<op_private> field of OPs are now
-auto-generated from data in F<regen/op_private>. The noticeable effect of this
-is that some of the flag output of C<Concise> might differ slightly, and the
-flag output of S<C<perl -Dx>> may differ considerably (they both use the same set
-of labels now). Also, debugging builds now have a new assertion in
-C<op_free()> to ensure that the op doesn't have any unrecognized flags set in
-C<op_private>.
-
-=item *
-
-The deprecated variable C<PL_sv_objcount> has been removed.
-
-=item *
-
-Perl now tries to keep the locale category C<LC_NUMERIC> set to "C"
-except around operations that need it to be set to the program's
-underlying locale. This protects the many XS modules that cannot cope
-with the decimal radix character not being a dot. Prior to this
-release, Perl initialized this category to "C", but a call to
-C<POSIX::setlocale()> would change it. Now such a call will change the
-underlying locale of the C<LC_NUMERIC> category for the program, but the
-locale exposed to XS code will remain "C". There are new macros
-to manipulate the LC_NUMERIC locale, including
-C<STORE_LC_NUMERIC_SET_TO_NEEDED> and
-C<STORE_LC_NUMERIC_FORCE_TO_UNDERLYING>.
-See L<perlapi/Locale-related functions and macros>.
-
-=item *
-
-A new macro L<C<isUTF8_CHAR>|perlapi/isUTF8_CHAR> has been written which
-efficiently determines if the string given by its parameters begins
-with a well-formed UTF-8 encoded character.
-
-=item *
-
-The following private API functions had their context parameter removed:
-C<Perl_cast_ulong>, C<Perl_cast_i32>, C<Perl_cast_iv>, C<Perl_cast_uv>,
-C<Perl_cv_const_sv>, C<Perl_mg_find>, C<Perl_mg_findext>, C<Perl_mg_magical>,
-C<Perl_mini_mktime>, C<Perl_my_dirfd>, C<Perl_sv_backoff>, C<Perl_utf8_hop>.
-
-Note that the prefix-less versions of those functions that are part of the
-public API, such as C<cast_i32()>, remain unaffected.
-
-=item *
-
-The C<PADNAME> and C<PADNAMELIST> types are now separate types, and no
-longer simply aliases for SV and AV.
-L<[perl #123223]|https://rt.perl.org/Ticket/Display.html?id=123223>.
-
-=item *
-
-Pad names are now always UTF-8. The C<PadnameUTF8> macro always returns
-true. Previously, this was effectively the case already, but any support
-for two different internal representations of pad names has now been
-removed.
-
-=item *
-
-A new op class, C<UNOP_AUX>, has been added. This is a subclass of
-C<UNOP> with an C<op_aux> field added, which points to an array of unions
-of C<UV>, C<SV*> etc. It is intended for where an op needs to store more data
-than a simple C<op_sv> or whatever. Currently the only op of this type is
-C<OP_MULTIDEREF> (see below).
-
-=item *
-
-A new op has been added, C<OP_MULTIDEREF>, which performs one or more
-nested array and hash lookups where the key is a constant or simple
-variable. For example the expression C<$a[0]{$k}[$i]>, which previously
-involved ten C<rv2Xv>, C<Xelem>, C<gvsv> and C<const> ops is now performed
-by a single C<multideref> op. It can also handle C<local>, C<exists> and
-C<delete>. A non-simple index expression, such as C<[$i+1]> is still done
-using C<aelem>/C<helem>, and single-level array lookup with a small constant
-index is still done using C<aelemfast>.
-
-=back
-
-=head1 Selected Bug Fixes
-
-=over 4
-
-=item *
-
-C<pack("D", $x)> and C<pack("F", $x)> now zero the padding on x86 long
-double builds. Under some build options on GCC 4.8 and later, they used
-to either overwrite the zero-initialized padding, or bypass the
-initialized buffer entirely. This caused F<op/pack.t> to fail.
-L<[perl #123971]|https://rt.perl.org/Ticket/Display.html?id=123971>
-
-=item *
-
-Extending an array cloned from a parent thread could result in "Modification of
-a read-only value attempted" errors when attempting to modify the new elements.
-L<[perl #124127]|https://rt.perl.org/Ticket/Display.html?id=124127>
-
-=item *
-
-An assertion failure and subsequent crash with C<< *x=<y> >> has been fixed.
-L<[perl #123790]|https://rt.perl.org/Ticket/Display.html?id=123790>
-
-=item *
-
-A possible crashing/looping bug related to compiling lexical subs has been
-fixed.
-L<[perl #124099]|https://rt.perl.org/Ticket/Display.html?id=124099>
-
-=item *
-
-UTF-8 now works correctly in function names, in unquoted HERE-document
-terminators, and in variable names used as array indexes.
-L<[perl #124113]|https://rt.perl.org/Ticket/Display.html?id=124113>
-
-=item *
-
-Repeated global pattern matches in scalar context on large tainted strings were
-exponentially slow depending on the current match position in the string.
-L<[perl #123202]|https://rt.perl.org/Ticket/Display.html?id=123202>
-
-=item *
-
-Various crashes due to the parser getting confused by syntax errors have been
-fixed.
-L<[perl #123801]|https://rt.perl.org/Ticket/Display.html?id=123801>
-L<[perl #123802]|https://rt.perl.org/Ticket/Display.html?id=123802>
-L<[perl #123955]|https://rt.perl.org/Ticket/Display.html?id=123955>
-L<[perl #123995]|https://rt.perl.org/Ticket/Display.html?id=123995>
-
-=item *
-
-C<split> in the scope of lexical C<$_> has been fixed not to fail assertions.
-L<[perl #123763]|https://rt.perl.org/Ticket/Display.html?id=123763>
-
-=item *
-
-C<my $x : attr> syntax inside various list operators no longer fails
-assertions.
-L<[perl #123817]|https://rt.perl.org/Ticket/Display.html?id=123817>
-
-=item *
-
-An C<@> sign in quotes followed by a non-ASCII digit (which is not a valid
-identifier) would cause the parser to crash, instead of simply trying the
-C<@> as literal. This has been fixed.
-L<[perl #123963]|https://rt.perl.org/Ticket/Display.html?id=123963>
-
-=item *
-
-C<*bar::=*foo::=*glob_with_hash> has been crashing since Perl 5.14, but no
-longer does.
-L<[perl #123847]|https://rt.perl.org/Ticket/Display.html?id=123847>
-
-=item *
-
-C<foreach> in scalar context was not pushing an item on to the stack, resulting
-in bugs. (S<C<print 4, scalar do { foreach(@x){} } + 1>> would print 5.)
-It has been fixed to return C<undef>.
-L<[perl #124004]|https://rt.perl.org/Ticket/Display.html?id=124004>
-
-=item *
-
-Several cases of data used to store environment variable contents in core C
-code being potentially overwritten before being used have been fixed.
-L<[perl #123748]|https://rt.perl.org/Ticket/Display.html?id=123748>
-
-=item *
-
-Some patterns starting with C</.*..../> matched against long strings have
-been slow since v5.8, and some of the form C</.*..../i> have been slow
-since v5.18. They are now all fast again.
-L<[perl #123743]|https://rt.perl.org/Ticket/Display.html?id=123743>.
-
-=item *
-
-The original visible value of C<$/> is now preserved when it is set to
-an invalid value. Previously if you set C<$/> to a reference to an
-array, for example, perl would produce a runtime error and not set
-C<PL_rs>, but perl code that checked C<$/> would see the array
-reference.
-L<[perl #123218]|https://rt.perl.org/Ticket/Display.html?id=123218>.
-
-=item *
-
-In a regular expression pattern, a POSIX class, like C<[:ascii:]>, must
-be inside a bracketed character class, like C<qr/[[:ascii:]]/>. A
-warning is issued when something looking like a POSIX class is not
-inside a bracketed class. That warning wasn't getting generated when
-the POSIX class was negated: C<[:^ascii:]>. This is now fixed.
-
-=item *
-
-Perl 5.14.0 introduced a bug whereby S<C<eval { LABEL: }>> would crash. This
-has been fixed.
-L<[perl #123652]|https://rt.perl.org/Ticket/Display.html?id=123652>.
-
-=item *
-
-Various crashes due to the parser getting confused by syntax errors have
-been fixed.
-L<[perl #123617]|https://rt.perl.org/Ticket/Display.html?id=123617>.
-L<[perl #123737]|https://rt.perl.org/Ticket/Display.html?id=123737>.
-L<[perl #123753]|https://rt.perl.org/Ticket/Display.html?id=123753>.
-L<[perl #123677]|https://rt.perl.org/Ticket/Display.html?id=123677>.
-
-=item *
-
-Code like C</$a[/> used to read the next line of input and treat it as
-though it came immediately after the opening bracket. Some invalid code
-consequently would parse and run, but some code caused crashes, so this is
-now disallowed.
-L<[perl #123712]|https://rt.perl.org/Ticket/Display.html?id=123712>.
-
-=item *
-
-Fix argument underflow for C<pack>.
-L<[perl #123874]|https://rt.perl.org/Ticket/Display.html?id=123874>.
-
-=item *
-
-Fix handling of non-strict C<\x{}>. Now C<\x{}> is equivalent to C<\x{0}>
-instead of faulting.
-
-=item *
-
-C<stat -t> is now no longer treated as stackable, just like C<-t stat>.
-L<[perl #123816]|https://rt.perl.org/Ticket/Display.html?id=123816>.
-
-=item *
-
-The following no longer causes a SEGV: C<qr{x+(y(?0))*}>.
-
-=item *
-
-Fixed infinite loop in parsing backrefs in regexp patterns.
-
-=item *
-
-Several minor bug fixes in behavior of Inf and NaN, including
-warnings when stringifying Inf-like or NaN-like strings. For example,
-"NaNcy" doesn't numify to NaN anymore.
-
-=item *
-
-A bug in regular expression patterns that could lead to segfaults and
-other crashes has been fixed. This occurred only in patterns compiled
-with C</i> while taking into account the current POSIX locale (which usually
-means they have to be compiled within the scope of C<S<use locale>>),
-and there must be a string of at least 128 consecutive bytes to match.
-L<[perl #123539]|https://rt.perl.org/Ticket/Display.html?id=123539>.
-
-=item *
-
-C<s///g> now works on very long strings (where there are more than 2
-billion iterations) instead of dying with 'Substitution loop'.
-L<[perl #103260]|https://rt.perl.org/Ticket/Display.html?id=103260>.
-L<[perl #123071]|https://rt.perl.org/Ticket/Display.html?id=123071>.
-
-=item *
-
-C<gmtime> no longer crashes with not-a-number values.
-L<[perl #123495]|https://rt.perl.org/Ticket/Display.html?id=123495>.
-
-=item *
-
-C<\()> (a reference to an empty list), and C<y///> with lexical C<$_> in
-scope, could both do a bad write past the end of the stack. They have
-both been fixed to extend the stack first.
-
-=item *
-
-C<prototype()> with no arguments used to read the previous item on the
-stack, so S<C<print "foo", prototype()>> would print foo's prototype.
-It has been fixed to infer C<$_> instead.
-L<[perl #123514]|https://rt.perl.org/Ticket/Display.html?id=123514>.
-
-=item *
-
-Some cases of lexical state subs declared inside predeclared subs could
-crash, for example when evalling a string including the name of an outer
-variable, but no longer do.
-
-=item *
-
-Some cases of nested lexical state subs inside anonymous subs could cause
-'Bizarre copy' errors or possibly even crashes.
-
-=item *
-
-When trying to emit warnings, perl's default debugger (F<perl5db.pl>) was
-sometimes giving 'Undefined subroutine &DB::db_warn called' instead. This
-bug, which started to occur in Perl 5.18, has been fixed.
-L<[perl #123553]|https://rt.perl.org/Ticket/Display.html?id=123553>.
-
-=item *
-
-Certain syntax errors in substitutions, such as C<< s/${<>{})// >>, would
-crash, and had done so since Perl 5.10. (In some cases the crash did not
-start happening till 5.16.) The crash has, of course, been fixed.
-L<[perl #123542]|https://rt.perl.org/Ticket/Display.html?id=123542>.
-
-=item *
-
-Fix a couple of string grow size calculation overflows; in particular,
-a repeat expression like S<C<33 x ~3>> could cause a large buffer
-overflow since the new output buffer size was not correctly handled by
-C<SvGROW()>. An expression like this now properly produces a memory wrap
-panic.
-L<[perl #123554]|https://rt.perl.org/Ticket/Display.html?id=123554>.
-
-=item *
-
-C<< formline("@...", "a"); >> would crash. The C<FF_CHECKNL> case in
-pp_formline() didn't set the pointer used to mark the chop position,
-which led to the C<FF_MORE> case crashing with a segmentation fault.
-This has been fixed.
-L<[perl #123538]|https://rt.perl.org/Ticket/Display.html?id=123538>.
-
-=item *
-
-A possible buffer overrun and crash when parsing a literal pattern during
-regular expression compilation has been fixed.
-L<[perl #123604]|https://rt.perl.org/Ticket/Display.html?id=123604>.
-
-=item *
-
-C<fchmod()> and C<futimes()> now set C<$!> when they fail due to being
-passed a closed file handle.
-L<[perl #122703]|https://rt.perl.org/Ticket/Display.html?id=122703>.
-
-=item *
-
-C<op_free()> and C<scalarvoid()> no longer crash due to a stack overflow
-when freeing a deeply recursive op tree.
-L<[perl #108276]|https://rt.perl.org/Ticket/Display.html?id=108276>.
-
-=item *
-
-In Perl 5.20.0, C<$^N> accidentally had the internal UTF-8 flag turned off
-if accessed from a code block within a regular expression, effectively
-UTF-8-encoding the value. This has been fixed.
-L<[perl #123135]|https://rt.perl.org/Ticket/Display.html?id=123135>.
-
-=item *
-
-A failed C<semctl> call no longer overwrites existing items on the stack,
-which means that C<(semctl(-1,0,0,0))[0]> no longer gives an
-"uninitialized" warning.
-
-=item *
-
-C<else{foo()}> with no space before C<foo> is now better at assigning the
-right line number to that statement.
-L<[perl #122695]|https://rt.perl.org/Ticket/Display.html?id=122695>.
-
-=item *
-
-Sometimes the assignment in C<@array = split> gets optimised so that C<split>
-itself writes directly to the array. This caused a bug, preventing this
-assignment from being used in lvalue context. So
-C<(@a=split//,"foo")=bar()> was an error. (This bug probably goes back to
-Perl 3, when the optimisation was added.) It has now been fixed.
-L<[perl #123057]|https://rt.perl.org/Ticket/Display.html?id=123057>.
-
-=item *
-
-When an argument list fails the checks specified by a subroutine
-signature (which is still an experimental feature), the resulting error
-messages now give the file and line number of the caller, not of the
-called subroutine.
-L<[perl #121374]|https://rt.perl.org/Ticket/Display.html?id=121374>.
-
-=item *
-
-The flip-flop operators (C<..> and C<...> in scalar context) used to maintain
-a separate state for each recursion level (the number of times the
-enclosing sub was called recursively), contrary to the documentation. Now
-each closure has one internal state for each flip-flop.
-L<[perl #122829]|https://rt.perl.org/Ticket/Display.html?id=122829>.
-
-=item *
-
-The flip-flop operator (C<..> in scalar context) would return the same
-scalar each time, unless the containing subroutine was called recursively.
-Now it always returns a new scalar.
-L<[perl #122829]|https://rt.perl.org/Ticket/Display.html?id=122829>.
-
-=item *
-
-C<use>, C<no>, statement labels, special blocks (C<BEGIN>) and pod are now
-permitted as the first thing in a C<map> or C<grep> block, the block after
-C<print> or C<say> (or other functions) returning a handle, and within
-C<${...}>, C<@{...}>, etc.
-L<[perl #122782]|https://rt.perl.org/Ticket/Display.html?id=122782>.
-
-=item *
-
-The repetition operator C<x> now propagates lvalue context to its left-hand
-argument when used in contexts like C<foreach>. That allows
-S<C<for(($#that_array)x2) { ... }>> to work as expected if the loop modifies
-$_.
-
-=item *
-
-C<(...) x ...> in scalar context used to corrupt the stack if one operand
-was an object with "x" overloading, causing erratic behaviour.
-L<[perl #121827]|https://rt.perl.org/Ticket/Display.html?id=121827>.
-
-=item *
-
-Assignment to a lexical scalar is often optimised away; for example in
-C<my $x; $x = $y + $z>, the assign operator is optimised away and the add
-operator writes its result directly to C<$x>. Various bugs related to
-this optimisation have been fixed. Certain operators on the right-hand
-side would sometimes fail to assign the value at all or assign the wrong
-value, or would call STORE twice or not at all on tied variables. The
-operators affected were C<$foo++>, C<$foo-->, and C<-$foo> under C<use
-integer>, C<chomp>, C<chr> and C<setpgrp>.
-
-=item *
-
-List assignments were sometimes buggy if the same scalar ended up on both
-sides of the assignment due to use of C<tied>, C<values> or C<each>. The
-result would be the wrong value getting assigned.
-
-=item *
-
-C<setpgrp($nonzero)> (with one argument) was accidentally changed in 5.16
-to mean C<setpgrp(0)>. This has been fixed.
-
-=item *
-
-C<__SUB__> could return the wrong value or even corrupt memory under the
-debugger (the C<-d> switch) and in subs containing C<eval $string>.
-
-=item *
-
-When S<C<sub () { $var }>> becomes inlinable, it now returns a different
-scalar each time, just as a non-inlinable sub would, though Perl still
-optimises the copy away in cases where it would make no observable
-difference.
-
-=item *
-
-S<C<my sub f () { $var }>> and S<C<sub () : attr { $var }>> are no longer
-eligible for inlining. The former would crash; the latter would just
-throw the attributes away. An exception is made for the little-known
-":method" attribute, which does nothing much.
-
-=item *
-
-Inlining of subs with an empty prototype is now more consistent than
-before. Previously, a sub with multiple statements, of which all but the last
-were optimised away, would be inlinable only if it were an anonymous sub
-containing a string C<eval> or C<state> declaration or closing over an
-outer lexical variable (or any anonymous sub under the debugger). Now any
-sub that gets folded to a single constant after statements have been
-optimised away is eligible for inlining. This applies to things like C<sub
-() { jabber() if DEBUG; 42 }>.
-
-Some subroutines with an explicit C<return> were being made inlinable,
-contrary to the documentation, Now C<return> always prevents inlining.
-
-=item *
-
-On some systems, such as VMS, C<crypt> can return a non-ASCII string. If a
-scalar assigned to had contained a UTF-8 string previously, then C<crypt>
-would not turn off the UTF-8 flag, thus corrupting the return value. This
-would happen with S<C<$lexical = crypt ...>>.
-
-=item *
-
-C<crypt> no longer calls C<FETCH> twice on a tied first argument.
-
-=item *
-
-An unterminated here-doc on the last line of a quote-like operator
-(C<qq[${ <<END }]>, C</(?{ <<END })/>) no longer causes a double free. It
-started doing so in 5.18.
-
-=item *
-
-C<index()> and C<rindex()> no longer crash when used on strings over 2GB in
-size.
-L<[perl #121562]|https://rt.perl.org/Ticket/Display.html?id=121562>.
-
-=item *
-
-A small previously intentional memory leak in PERL_SYS_INIT/PERL_SYS_INIT3 on
-Win32 builds was fixed. This might affect embedders who repeatedly create and
-destroy perl engines within the same process.
-
-=item *
-
-C<POSIX::localeconv()> now returns the data for the program's underlying
-locale even when called from outside the scope of S<C<use locale>>.
-
-=item *
-
-C<POSIX::localeconv()> now works properly on platforms which don't have
-C<LC_NUMERIC> and/or C<LC_MONETARY>, or for which Perl has been compiled
-to disregard either or both of these locale categories. In such
-circumstances, there are now no entries for the corresponding values in
-the hash returned by C<localeconv()>.
-
-=item *
-
-C<POSIX::localeconv()> now marks appropriately the values it returns as
-UTF-8 or not. Previously they were always returned as bytes, even if
-they were supposed to be encoded as UTF-8.
-
-=item *
-
-On Microsoft Windows, within the scope of C<S<use locale>>, the following
-POSIX character classes gave results for many locales that did not
-conform to the POSIX standard:
-C<[[:alnum:]]>,
-C<[[:alpha:]]>,
-C<[[:blank:]]>,
-C<[[:digit:]]>,
-C<[[:graph:]]>,
-C<[[:lower:]]>,
-C<[[:print:]]>,
-C<[[:punct:]]>,
-C<[[:upper:]]>,
-C<[[:word:]]>,
-and
-C<[[:xdigit:]]>.
-This was because the underlying Microsoft implementation does not
-follow the standard. Perl now takes special precautions to correct for
-this.
-
-=item *
-
-Many issues have been detected by L<Coverity|http://www.coverity.com/> and
-fixed.
-
-=item *
-
-C<system()> and friends should now work properly on more Android builds.
-
-Due to an oversight, the value specified through C<-Dtargetsh> to F<Configure>
-would end up being ignored by some of the build process. This caused perls
-cross-compiled for Android to end up with defective versions of C<system()>,
-C<exec()> and backticks: the commands would end up looking for C</bin/sh>
-instead of C</system/bin/sh>, and so would fail for the vast majority
-of devices, leaving C<$!> as C<ENOENT>.
-
-=item *
-
-C<qr(...\(...\)...)>,
-C<qr[...\[...\]...]>,
-and
-C<qr{...\{...\}...}>
-now work. Previously it was impossible to escape these three
-left-characters with a backslash within a regular expression pattern
-where otherwise they would be considered metacharacters, and the pattern
-opening delimiter was the character, and the closing delimiter was its
-mirror character.
-
-=item *
-
-C<< s///e >> on tainted UTF-8 strings corrupted C<< pos() >>. This bug,
-introduced in 5.20, is now fixed.
-L<[perl #122148]|https://rt.perl.org/Ticket/Display.html?id=122148>.
-
-=item *
-
-A non-word boundary in a regular expression (C<< \B >>) did not always
-match the end of the string; in particular C<< q{} =~ /\B/ >> did not
-match. This bug, introduced in perl 5.14, is now fixed.
-L<[perl #122090]|https://rt.perl.org/Ticket/Display.html?id=122090>.
-
-=item *
-
-C<< " P" =~ /(?=.*P)P/ >> should match, but did not. This is now fixed.
-L<[perl #122171]|https://rt.perl.org/Ticket/Display.html?id=122171>.
-
-=item *
-
-Failing to compile C<use Foo> in an C<eval> could leave a spurious
-C<BEGIN> subroutine definition, which would produce a "Subroutine
-BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
-block.
-L<[perl #122107]|https://rt.perl.org/Ticket/Display.html?id=122107>.
-
-=item *
-
-C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
-begin with an opening brace.
-L<[perl #46947]|https://rt.perl.org/Ticket/Display.html?id=46947>.
-
-=item *
-
-External libraries and Perl may have different ideas of what the locale is.
-This is problematic when parsing version strings if the locale's numeric
-separator has been changed. Version parsing has been patched to ensure
-it handles the locales correctly.
-L<[perl #121930]|https://rt.perl.org/Ticket/Display.html?id=121930>.
-
-=item *
-
-A bug has been fixed where zero-length assertions and code blocks inside of a
-regex could cause C<pos> to see an incorrect value.
-L<[perl #122460]|https://rt.perl.org/Ticket/Display.html?id=122460>.
-
-=item *
-
-Constant dereferencing now works correctly for typeglob constants. Previously
-the glob was stringified and its name looked up. Now the glob itself is used.
-L<[perl #69456]|https://rt.perl.org/Ticket/Display.html?id=69456>
-
-=item *
-
-When parsing a sigil (C<$> C<@> C<%> C<&)> followed by braces,
-the parser no
-longer tries to guess whether it is a block or a hash constructor (causing a
-syntax error when it guesses the latter), since it can only be a block.
-
-=item *
-
-S<C<undef $reference>> now frees the referent immediately, instead of hanging on
-to it until the next statement.
-L<[perl #122556]|https://rt.perl.org/Ticket/Display.html?id=122556>
-
-=item *
-
-Various cases where the name of a sub is used (autoload, overloading, error
-messages) used to crash for lexical subs, but have been fixed.
-
-=item *
-
-Bareword lookup now tries to avoid vivifying packages if it turns out the
-bareword is not going to be a subroutine name.
-
-=item *
-
-Compilation of anonymous constants (e.g., C<sub () { 3 }>) no longer deletes
-any subroutine named C<__ANON__> in the current package. Not only was
-C<*__ANON__{CODE}> cleared, but there was a memory leak, too. This bug goes
-back to Perl 5.8.0.
-
-=item *
-
-Stub declarations like C<sub f;> and C<sub f ();> no longer wipe out constants
-of the same name declared by C<use constant>. This bug was introduced in Perl
-5.10.0.
-
-=item *
-
-C<qr/[\N{named sequence}]/> now works properly in many instances.
-
-Some names
-known to C<\N{...}> refer to a sequence of multiple characters, instead of the
-usual single character. Bracketed character classes generally only match
-single characters, but now special handling has been added so that they can
-match named sequences, but not if the class is inverted or the sequence is
-specified as the beginning or end of a range. In these cases, the only
-behavior change from before is a slight rewording of the fatal error message
-given when this class is part of a C<?[...])> construct. When the C<[...]>
-stands alone, the same non-fatal warning as before is raised, and only the
-first character in the sequence is used, again just as before.
-
-=item *
-
-Tainted constants evaluated at compile time no longer cause unrelated
-statements to become tainted.
-L<[perl #122669]|https://rt.perl.org/Ticket/Display.html?id=122669>
-
-=item *
-
-S<C<open $$fh, ...>>, which vivifies a handle with a name like
-C<"main::_GEN_0">, was not giving the handle the right reference count, so
-a double free could happen.
-
-=item *
-
-When deciding that a bareword was a method name, the parser would get confused
-if an C<our> sub with the same name existed, and look up the method in the
-package of the C<our> sub, instead of the package of the invocant.
-
-=item *
-
-The parser no longer gets confused by C<\U=> within a double-quoted string. It
-used to produce a syntax error, but now compiles it correctly.
-L<[perl #80368]|https://rt.perl.org/Ticket/Display.html?id=80368>
-
-=item *
-
-It has always been the intention for the C<-B> and C<-T> file test operators to
-treat UTF-8 encoded files as text. (L<perlfunc|perlfunc/-X FILEHANDLE> has
-been updated to say this.) Previously, it was possible for some files to be
-considered UTF-8 that actually weren't valid UTF-8. This is now fixed. The
-operators now work on EBCDIC platforms as well.
-
-=item *
-
-Under some conditions warning messages raised during regular expression pattern
-compilation were being output more than once. This has now been fixed.
-
-=item *
-
-Perl 5.20.0 introduced a regression in which a UTF-8 encoded regular
-expression pattern that contains a single ASCII lowercase letter did not
-match its uppercase counterpart. That has been fixed in both 5.20.1 and
-5.22.0.
-L<[perl #122655]|https://rt.perl.org/Ticket/Display.html?id=122655>
-
-=item *
-
-Constant folding could incorrectly suppress warnings if lexical warnings
-(C<use warnings> or C<no warnings>) were not in effect and C<$^W> were
-false at compile time and true at run time.
-
-=item *
-
-Loading UTF-8 tables during a regular expression match could cause assertion
-failures under debugging builds if the previous match used the very same
-regular expression.
-L<[perl #122747]|https://rt.perl.org/Ticket/Display.html?id=122747>
-
-=item *
-
-Thread cloning used to work incorrectly for lexical subs, possibly causing
-crashes or double frees on exit.
-
-=item *
-
-Since Perl 5.14.0, deleting C<$SomePackage::{__ANON__}> and then undefining an
-anonymous subroutine could corrupt things internally, resulting in
-L<Devel::Peek> crashing or L<B.pm|B> giving nonsensical data. This has been
-fixed.
-
-=item *
-
-S<C<(caller $n)[3]>> now reports names of lexical subs, instead of
-treating them as C<"(unknown)">.
-
-=item *
-
-C<sort subname LIST> now supports using a lexical sub as the comparison
-routine.
-
-=item *
-
-Aliasing (e.g., via S<C<*x = *y>>) could confuse list assignments that mention the
-two names for the same variable on either side, causing wrong values to be
-assigned.
-L<[perl #15667]|https://rt.perl.org/Ticket/Display.html?id=15667>
-
-=item *
-
-Long here-doc terminators could cause a bad read on short lines of input. This
-has been fixed. It is doubtful that any crash could have occurred. This bug
-goes back to when here-docs were introduced in Perl 3.000 twenty-five years
-ago.
-
-=item *
-
-An optimization in C<split> to treat S<C<split /^/>> like S<C<split /^/m>> had the
-unfortunate side-effect of also treating S<C<split /\A/>> like S<C<split /^/m>>,
-which it should not. This has been fixed. (Note, however, that S<C<split /^x/>>
-does not behave like S<C<split /^x/m>>, which is also considered to be a bug and
-will be fixed in a future version.)
-L<[perl #122761]|https://rt.perl.org/Ticket/Display.html?id=122761>
-
-=item *
-
-The little-known S<C<my Class $var>> syntax (see L<fields> and L<attributes>)
-could get confused in the scope of C<use utf8> if C<Class> were a constant
-whose value contained Latin-1 characters.
-
-=item *
-
-Locking and unlocking values via L<Hash::Util> or C<Internals::SvREADONLY>
-no longer has any effect on values that were read-only to begin with.
-Previously, unlocking such values could result in crashes, hangs or
-other erratic behaviour.
-
-=item *
-
-Some unterminated C<(?(...)...)> constructs in regular expressions would
-either crash or give erroneous error messages. C</(?(1)/> is one such
-example.
-
-=item *
-
-S<C<pack "w", $tied>> no longer calls FETCH twice.
-
-=item *
-
-List assignments like S<C<($x, $z) = (1, $y)>> now work correctly if C<$x> and
-C<$y> have been aliased by C<foreach>.
-
-=item *
-
-Some patterns including code blocks with syntax errors, such as
-S<C</ (?{(^{})/>>, would hang or fail assertions on debugging builds. Now
-they produce errors.
-
-=item *
-
-An assertion failure when parsing C<sort> with debugging enabled has been
-fixed.
-L<[perl #122771]|https://rt.perl.org/Ticket/Display.html?id=122771>.
-
-=item *
-
-S<C<*a = *b; @a = split //, $b[1]>> could do a bad read and produce junk
-results.
-
-=item *
-
-In S<C<() = @array = split>>, the S<C<() =>> at the beginning no longer confuses
-the optimizer into assuming a limit of 1.
-
-=item *
-
-Fatal warnings no longer prevent the output of syntax errors.
-L<[perl #122966]|https://rt.perl.org/Ticket/Display.html?id=122966>.
-
-=item *
-
-Fixed a NaN double-to-long-double conversion error on VMS. For quiet NaNs
-(and only on Itanium, not Alpha) negative infinity instead of NaN was
-produced.
-
-=item *
-
-Fixed the issue that caused C<< make distclean >> to incorrectly leave some
-files behind.
-L<[perl #122820]|https://rt.perl.org/Ticket/Display.html?id=122820>.
-
-=item *
-
-AIX now sets the length in C<< getsockopt >> correctly.
-L<[perl #120835]|https://rt.perl.org/Ticket/Display.html?id=120835>.
-L<[cpan #91183]|https://rt.cpan.org/Ticket/Display.html?id=91183>.
-L<[cpan #85570]|https://rt.cpan.org/Ticket/Display.html?id=85570>.
-
-=item *
-
-The optimization phase of a regexp compilation could run "forever" and
-exhaust all memory under certain circumstances; now fixed.
-L<[perl #122283]|https://rt.perl.org/Ticket/Display.html?id=122283>.
-
-=item *
-
-The test script F<< t/op/crypt.t >> now uses the SHA-256 algorithm if the
-default one is disabled, rather than giving failures.
-L<[perl #121591]|https://rt.perl.org/Ticket/Display.html?id=121591>.
-
-=item *
-
-Fixed an off-by-one error when setting the size of a shared array.
-L<[perl #122950]|https://rt.perl.org/Ticket/Display.html?id=122950>.
-
-=item *
-
-Fixed a bug that could cause perl to enter an infinite loop during
-compilation. In particular, for a C<while(1)> within a sublist, e.g.
-
- sub foo { () = ($a, my $b, ($c, do { while(1) {} })) }
-
-The bug was introduced in 5.20.0
-L<[perl #122995]|https://rt.perl.org/Ticket/Display.html?id=122995>.
-
-=item *
-
-On Win32, if a variable was C<local>-ized in a pseudo-process that later
-forked, restoring the original value in the child pseudo-process caused
-memory corruption and a crash in the child pseudo-process (and therefore the
-OS process).
-L<[perl #40565]|https://rt.perl.org/Ticket/Display.html?id=40565>.
-
-=item *
-
-Calling C<write> on a format with a C<^**> field could produce a panic
-in C<sv_chop()> if there were insufficient arguments or if the variable
-used to fill the field was empty.
-L<[perl #123245]|https://rt.perl.org/Ticket/Display.html?id=123245>.
-
-=item *
-
-Non-ASCII lexical sub names now appear without trailing junk when they
-appear in error messages.
-
-=item *
-
-The C<\@> subroutine prototype no longer flattens parenthesized arrays
-(taking a reference to each element), but takes a reference to the array
-itself.
-L<[perl #47363]|https://rt.perl.org/Ticket/Display.html?id=47363>.
-
-=item *
-
-A block containing nothing except a C-style C<for> loop could corrupt the
-stack, causing lists outside the block to lose elements or have elements
-overwritten. This could happen with C<map { for(...){...} } ...> and with
-lists containing C<do { for(...){...} }>.
-L<[perl #123286]|https://rt.perl.org/Ticket/Display.html?id=123286>.
-
-=item *
-
-C<scalar()> now propagates lvalue context, so that
-S<C<for(scalar($#foo)) { ... }>> can modify C<$#foo> through C<$_>.
-
-=item *
-
-C<qr/@array(?{block})/> no longer dies with "Bizarre copy of ARRAY".
-L<[perl #123344]|https://rt.perl.org/Ticket/Display.html?id=123344>.
-
-=item *
-
-S<C<eval '$variable'>> in nested named subroutines would sometimes look up a
-global variable even with a lexical variable in scope.
-
-=item *
-
-In perl 5.20.0, C<sort CORE::fake> where 'fake' is anything other than a
-keyword, started chopping off the last 6 characters and treating the result
-as a sort sub name. The previous behaviour of treating "CORE::fake" as a
-sort sub name has been restored.
-L<[perl #123410]|https://rt.perl.org/Ticket/Display.html?id=123410>.
-
-=item *
-
-Outside of C<use utf8>, a single-character Latin-1 lexical variable is
-disallowed. The error message for it, "Can't use global C<$foo>...", was
-giving garbage instead of the variable name.
-
-=item *
-
-C<readline> on a nonexistent handle was causing C<${^LAST_FH}> to produce a
-reference to an undefined scalar (or fail an assertion). Now
-C<${^LAST_FH}> ends up undefined.
-
-=item *
-
-C<(...) x ...> in void context now applies scalar context to the left-hand
-argument, instead of the context the current sub was called in.
-L<[perl #123020]|https://rt.perl.org/Ticket/Display.html?id=123020>.
-
-=back
-
-=head1 Known Problems
-
-=over 4
-
-=item *
-
-C<pack>-ing a NaN on a perl compiled with Visual C 6 does not behave properly,
-leading to a test failure in F<t/op/infnan.t>.
-L<[perl 125203]|https://rt.perl.org/Ticket/Display.html?id=125203>
-
-=item *
-
-A goal is for Perl to be able to be recompiled to work reasonably well on any
-Unicode version. In Perl 5.22, though, the earliest such version is Unicode
-5.1 (current is 7.0).
-
-=item *
-
-EBCDIC platforms
-
-=over 4
-
-=item *
-
-The C<cmp> (and hence C<sort>) operators do not necessarily give the
-correct results when both operands are UTF-EBCDIC encoded strings and
-there is a mixture of ASCII and/or control characters, along with other
-characters.
-
-=item *
-
-Ranges containing C<\N{...}> in the C<tr///> (and C<y///>)
-transliteration operators are treated differently than the equivalent
-ranges in regular expression patterns. They should, but don't, cause
-the values in the ranges to all be treated as Unicode code points, and
-not native ones. (L<perlre/Version 8 Regular Expressions> gives
-details as to how it should work.)
-
-=item *
-
-Encode and encoding are mostly broken.
-
-=item *
-
-Many CPAN modules that are shipped with core show failing tests.
-
-=item *
-
-C<pack>/C<unpack> with C<"U0"> format may not work properly.
-
-=back
-
-=item *
-
-The following modules are known to have test failures with this version of
-Perl. Patches have been submitted, so there will hopefully be new releases
-soon:
-
-=over
-
-=item *
-
-L<B::Generate> version 1.50
-
-=item *
-
-L<B::Utils> version 0.25
-
-=item *
-
-L<Dancer> version 1.3130
-
-=item *
-
-L<Data::Alias> version 1.18
-
-=item *
-
-L<Data::Util> version 0.63
-
-=item *
-
-L<Devel::Spy> version 0.07
-
-=item *
-
-L<invoker> version 0.34
-
-=item *
-
-L<Lexical::Var> version 0.009
-
-=item *
-
-L<Mason> version 2.22
-
-=item *
-
-L<NgxQueue> version 0.02
-
-=item *
-
-L<Padre> version 1.00
-
-=item *
-
-L<Parse::Keyword> 0.08
-
-=back
-
-=back
-
-=head1 Obituary
-
-Brian McCauley died on May 8, 2015. He was a frequent poster to Usenet, Perl
-Monks, and other Perl forums, and made several CPAN contributions under the
-nick NOBULL, including to the Perl FAQ. He attended almost every
-YAPC::Europe, and indeed, helped organise YAPC::Europe 2006 and the QA
-Hackathon 2009. His wit and his delight in intricate systems were
-particularly apparent in his love of board games; many Perl mongers will
-have fond memories of playing Fluxx and other games with Brian. He will be
-missed.