5 perldelta - what is new for perl v5.22.0
9 This document describes differences between the 5.20.0 release and the 5.22.0
12 If you are upgrading from an earlier release such as 5.18.0, first read
13 L<perl5200delta>, which describes differences between 5.18.0 and 5.20.0.
15 =head1 Core Enhancements
17 =head2 New bitwise operators
19 A new experimental facility has been added that makes the four standard
20 bitwise operators (C<& | ^ ~>) treat their operands consistently as
21 numbers, and introduces four new dotted operators (C<&. |. ^. ~.>) that
22 treat their operands consistently as strings. The same applies to the
23 assignment variants (C<&= |= ^= &.= |.= ^.=>).
25 To use this, enable the "bitwise" feature and disable the
26 "experimental::bitwise" warnings category. See L<perlop/Bitwise String
27 Operators> for details.
28 L<[perl #123466]|https://rt.perl.org/Ticket/Display.html?id=123466>.
30 =head2 New double-diamond operator
32 C<<< <<>> >>> is like C<< <> >> but uses three-argument C<open> to open
33 each file in C<@ARGV>. This means that each element of C<@ARGV> will be treated
34 as an actual file name, and C<"|foo"> won't be treated as a pipe open.
36 =head2 New \b boundaries in regular expressions
40 C<gcb> stands for Grapheme Cluster Boundary. It is a Unicode property
41 that finds the boundary between sequences of characters that look like a
42 single character to a native speaker of a language. Perl has long had
43 the ability to deal with these through the C<\X> regular escape
44 sequence. Now, there is an alternative way of handling these. See
45 L<perlrebackslash/\b{}, \b, \B{}, \B> for details.
49 C<wb> stands for Word Boundary. It is a Unicode property
50 that finds the boundary between words. This is similar to the plain
51 C<\b> (without braces) but is more suitable for natural language
52 processing. It knows, for example, that apostrophes can occur in the
53 middle of words. See L<perlrebackslash/\b{}, \b, \B{}, \B> for details.
57 C<sb> stands for Sentence Boundary. It is a Unicode property
58 to aid in parsing natural language sentences.
59 See L<perlrebackslash/\b{}, \b, \B{}, \B> for details.
61 =head2 Non-Capturing Regular Expression Flag
63 Regular expressions now support a C</n> flag that disables capturing
64 and filling in C<$1>, C<$2>, etc inside of groups:
66 "hello" =~ /(hi|hello)/n; # $1 is not set
68 This is equivalent to putting C<?:> at the beginning of every capturing group.
70 See L<perlre/"n"> for more information.
72 =head2 C<use re 'strict'>
74 This applies stricter syntax rules to regular expression patterns
75 compiled within its scope. This will hopefully alert you to typos and
76 other unintentional behavior that backwards-compatibility issues prevent
77 us from reporting in normal regular expression compilations. Because the
78 behavior of this is subject to change in future Perl releases as we gain
79 experience, using this pragma will raise a warning of category
80 C<experimental::re_strict>.
81 See L<'strict' in re|re/'strict' mode>.
83 =head2 Unicode 7.0 (with correction) is now supported
85 For details on what is in this release, see
86 L<http://www.unicode.org/versions/Unicode7.0.0/>.
87 The version of Unicode 7.0 that comes with Perl includes
88 a correction dealing with glyph shaping in Arabic
89 (see L<http://www.unicode.org/errata/#current_errata>).
92 =head2 S<C<use locale>> can restrict which locale categories are affected
94 It is now possible to pass a parameter to S<C<use locale>> to specify
95 a subset of locale categories to be locale-aware, with the remaining
96 ones unaffected. See L<perllocale/The "use locale" pragma> for details.
98 =head2 Perl now supports POSIX 2008 locale currency additions
100 On platforms that are able to handle POSIX.1-2008, the
102 L<C<POSIX::localeconv()>|perllocale/The localeconv function>
103 includes the international currency fields added by that version of the
104 POSIX standard. These are
105 C<int_n_cs_precedes>,
106 C<int_n_sep_by_space>,
108 C<int_p_cs_precedes>,
109 C<int_p_sep_by_space>,
113 =head2 Better heuristics on older platforms for determining locale UTF-8ness
115 On platforms that implement neither the C99 standard nor the POSIX 2001
116 standard, determining if the current locale is UTF-8 or not depends on
117 heuristics. These are improved in this release.
119 =head2 Aliasing via reference
121 Variables and subroutines can now be aliased by assigning to a reference:
126 Aliasing can also be accomplished
127 by using a backslash before a C<foreach> iterator variable; this is
128 perhaps the most useful idiom this feature provides:
130 foreach \%hash (@array_of_hash_refs) { ... }
132 This feature is experimental and must be enabled via S<C<use feature
133 'refaliasing'>>. It will warn unless the C<experimental::refaliasing>
134 warnings category is disabled.
136 See L<perlref/Assigning to References>
138 =head2 C<prototype> with no arguments
140 C<prototype()> with no arguments now infers C<$_>.
141 L<[perl #123514]|https://rt.perl.org/Ticket/Display.html?id=123514>.
143 =head2 New C<:const> subroutine attribute
145 The C<const> attribute can be applied to an anonymous subroutine. It
146 causes the new sub to be executed immediately whenever one is created
147 (i.e. when the C<sub> expression is evaluated). Its value is captured
148 and used to create a new constant subroutine that is returned. This
149 feature is experimental. See L<perlsub/Constant Functions>.
151 =head2 C<fileno> now works on directory handles
153 When the relevant support is available in the operating system, the
154 C<fileno> builtin now works on directory handles, yielding the
155 underlying file descriptor in the same way as for filehandles. On
156 operating systems without such support, C<fileno> on a directory handle
157 continues to return the undefined value, as before, but also sets C<$!> to
158 indicate that the operation is not supported.
160 Currently, this uses either a C<dd_fd> member in the OS C<DIR>
161 structure, or a C<dirfd(3)> function as specified by POSIX.1-2008.
163 =head2 List form of pipe open implemented for Win32
165 The list form of pipe:
167 open my $fh, "-|", "program", @arguments;
169 is now implemented on Win32. It has the same limitations as C<system
170 LIST> on Win32, since the Win32 API doesn't accept program arguments
173 =head2 Assignment to list repetition
175 C<(...) x ...> can now be used within a list that is assigned to, as long
176 as the left-hand side is a valid lvalue. This allows S<C<(undef,undef,$foo)
177 = that_function()>> to be written as S<C<((undef)x2, $foo) = that_function()>>.
179 =head2 Infinity and NaN (not-a-number) handling improved
181 Floating point values are able to hold the special values infinity, negative
182 infinity, and NaN (not-a-number). Now we more robustly recognize and
183 propagate the value in computations, and on output normalize them to the strings
184 C<Inf>, C<-Inf>, and C<NaN>.
186 See also the L<POSIX> enhancements.
188 =head2 Floating point parsing has been improved
190 Parsing and printing of floating point values has been improved.
192 As a completely new feature, hexadecimal floating point literals
193 (like C<0x1.23p-4>) are now supported, and they can be output with
194 S<C<printf "%a">>. See L<perldata/Scalar value constructors> for more
197 =head2 Packing infinity or not-a-number into a character is now fatal
199 Before, when trying to pack infinity or not-a-number into a
200 (signed) character, Perl would warn, and assumed you tried to
201 pack C<< 0xFF >>; if you gave it as an argument to C<< chr >>,
202 C<< U+FFFD >> was returned.
204 But now, all such actions (C<< pack >>, C<< chr >>, and C<< print '%c' >>)
205 result in a fatal error.
207 =head2 Experimental C Backtrace API
209 Perl now supports (via a C level API) retrieving
210 the C level backtrace (similar to what symbolic debuggers like gdb do).
212 The backtrace returns the stack trace of the C call frames,
213 with the symbol names (function names), the object names (like "perl"),
214 and if it can, also the source code locations (file:line).
216 The supported platforms are Linux and OS X (some *BSD might work at
217 least partly, but they have not yet been tested).
219 The feature needs to be enabled with C<Configure -Dusecbacktrace>.
221 See L<perlhacktips/"C backtrace"> for more information.
225 =head2 Perl is now compiled with -fstack-protector-strong if available
227 Perl has been compiled with the anti-stack-smashing option
228 C<-fstack-protector> since 5.10.1. Now Perl uses the newer variant
229 called C<-fstack-protector-strong>, if available.
231 =head2 The L<Safe> module could allow outside packages to be replaced
233 Critical bugfix: outside packages could be replaced. L<Safe> has
234 been patched to 2.38 to address this.
236 =head2 Perl is now always compiled with -D_FORTIFY_SOURCE=2 if available
238 The 'code hardening' option called C<_FORTIFY_SOURCE>, available in
239 gcc 4.*, is now always used for compiling Perl, if available.
241 Note that this isn't necessarily a huge step since in many platforms
242 the step had already been taken several years ago: many Linux
243 distributions (like Fedora) have been using this option for Perl,
244 and OS X has enforced the same for many years.
246 =head1 Incompatible Changes
248 =head2 Subroutine signatures moved before attributes
250 The experimental sub signatures feature, as introduced in 5.20, parsed
251 signatures after attributes. In this release, following feedback from users
252 of the experimental feature, the positioning has been moved such that
253 signatures occur after the subroutine name (if any) and before the attribute
256 =head2 C<&> and C<\&> prototypes accepts only subs
258 The C<&> prototype character now accepts only anonymous subs (C<sub
259 {...}>), things beginning with C<\&>, or an explicit C<undef>. Formerly
260 it erroneously also allowed references to arrays, hashes, and lists.
261 L<[perl #4539]|https://rt.perl.org/Ticket/Display.html?id=4539>.
262 L<[perl #123062]|https://rt.perl.org/Ticket/Display.html?id=123062>.
263 L<[perl #123062]|https://rt.perl.org/Ticket/Display.html?id=123475>.
265 In addition, the C<\&> prototype was allowing subroutine calls, whereas
266 now it only allows subroutines: C<&foo> is still permitted as an argument,
267 while C<&foo()> and C<foo()> no longer are.
268 L<[perl #77860]|https://rt.perl.org/Ticket/Display.html?id=77860>.
270 =head2 C<use encoding> is now lexical
272 The L<encoding> pragma's effect is now limited to lexical scope. This
273 pragma is deprecated, but in the meantime, it could adversely affect
274 unrelated modules that are included in the same program.
276 =head2 List slices returning empty lists
278 List slices now return an empty list only if the original list was empty
279 (or if there are no indices). Formerly, a list slice would return an empty
280 list if all indices fell outside the original list; now it returns a list
281 of C<undef> values in that case.
282 L<[perl #114498]|https://rt.perl.org/Ticket/Display.html?id=114498>.
284 =head2 C<\N{}> with a sequence of multiple spaces is now a fatal error
286 E.g. S<C<\N{TOOE<nbsp>E<nbsp>MANY SPACES}>> or S<C<\N{TRAILING SPACE }>>.
287 This has been deprecated since v5.18.
289 =head2 S<C<use UNIVERSAL '...'>> is now a fatal error
291 Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and
292 is now a fatal error. S<C<use UNIVERSAL>> without any arguments is still
295 =head2 In double-quotish C<\cI<X>>, I<X> must now be a printable ASCII character
297 In prior releases, failure to do this raised a deprecation warning.
299 =head2 Splitting the tokens C<(?> and C<(*> in regular expressions is now a fatal compilation error.
301 These had been deprecated since v5.18.
303 =head2 C<qr/foo/x> now ignores all Unicode pattern white space
305 The C</x> regular expression modifier allows the pattern to contain
306 white space and comments (both of which are ignored) for improved
307 readability. Until now, not all the white space characters that Unicode
308 designates for this purpose were handled. The additional ones now
312 U+200E LEFT-TO-RIGHT MARK
313 U+200F RIGHT-TO-LEFT MARK
314 U+2028 LINE SEPARATOR
315 U+2029 PARAGRAPH SEPARATOR
317 The use of these characters with C</x> outside bracketed character
318 classes and when not preceded by a backslash has raised a deprecation
319 warning since v5.18. Now they will be ignored.
321 =head2 Comment lines within S<C<(?[ ])>> are now ended only by a C<\n>
323 S<C<(?[ ])>> is an experimental feature, introduced in v5.18. It operates
324 as if C</x> is always enabled. But there was a difference: comment
325 lines (following a C<#> character) were terminated by anything matching
326 C<\R> which includes all vertical whitespace, such as form feeds. For
327 consistency, this is now changed to match what terminates comment lines
328 outside S<C<(?[ ])>>, namely a C<\n> (even if escaped), which is the
329 same as what terminates a heredoc string and formats.
331 =head2 C<(?[...])> operators now follow standard Perl precedence
333 This experimental feature allows set operations in regular expression patterns.
334 Prior to this, the intersection operator had the same precedence as the other
335 binary operators. Now it has higher precedence. This could lead to different
336 outcomes than existing code expects (though the documentation has always noted
337 that this change might happen, recommending fully parenthesizing the
338 expressions). See L<perlrecharclass/Extended Bracketed Character Classes>.
340 =head2 Omitting C<%> and C<@> on hash and array names is no longer permitted
342 Really old Perl let you omit the C<@> on array names and the C<%> on hash
343 names in some spots. This has issued a deprecation warning since Perl
344 5.000, and is no longer permitted.
346 =head2 C<"$!"> text is now in English outside the scope of C<use locale>
348 Previously, the text, unlike almost everything else, always came out
349 based on the current underlying locale of the program. (Also affected
350 on some systems is C<"$^E">.) For programs that are unprepared to
351 handle locale differences, this can cause garbage text to be displayed.
352 It's better to display text that is translatable via some tool than
353 garbage text which is much harder to figure out.
355 =head2 C<"$!"> text will be returned in UTF-8 when appropriate
357 The stringification of C<$!> and C<$^E> will have the UTF-8 flag set
358 when the text is actually non-ASCII UTF-8. This will enable programs
359 that are set up to be locale-aware to properly output messages in the
360 user's native language. Code that needs to continue the 5.20 and
361 earlier behavior can do the stringification within the scopes of both
362 S<C<use bytes>> and S<C<use locale ":messages">>. Within these two
363 scopes, no other Perl operations will
364 be affected by locale; only C<$!> and C<$^E> stringification. The
365 C<bytes> pragma causes the UTF-8 flag to not be set, just as in previous
366 Perl releases. This resolves
367 L<[perl #112208]|https://rt.perl.org/Ticket/Display.html?id=112208>.
369 =head2 Support for C<?PATTERN?> without explicit operator has been removed
371 The C<m?PATTERN?> construct, which allows matching a regex only once,
372 previously had an alternative form that was written directly with a question
373 mark delimiter, omitting the explicit C<m> operator. This usage has produced
374 a deprecation warning since 5.14.0. It is now a syntax error, so that the
375 question mark can be available for use in new operators.
377 =head2 C<defined(@array)> and C<defined(%hash)> are now fatal errors
379 These have been deprecated since v5.6.1 and have raised deprecation
380 warnings since v5.16.
382 =head2 Using a hash or an array as a reference are now fatal errors
384 For example, C<< %foo->{"bar"} >> now causes a fatal compilation
385 error. These have been deprecated since before v5.8, and have raised
386 deprecation warnings since then.
388 =head2 Changes to the C<*> prototype
390 The C<*> character in a subroutine's prototype used to allow barewords to take
391 precedence over most, but not all, subroutine names. It was never
392 consistent and exhibited buggy behaviour.
394 Now it has been changed, so subroutines always take precedence over barewords,
395 which brings it into conformity with similarly prototyped built-in functions:
399 splat(foo); # now always splat(foo())
400 splat(bar); # still splat('bar') as before
401 close(foo); # close(foo())
402 close(bar); # close('bar')
406 =head2 Setting C<${^ENCODING}> to anything but C<undef>
408 This variable allows Perl scripts to be written in an encoding other than
409 ASCII or UTF-8. However, it affects all modules globally, leading
410 to wrong answers and segmentation faults. New scripts should be written
411 in UTF-8; old scripts should be converted to UTF-8, which is easily done
412 with the L<piconv> utility.
414 =head2 Use of non-graphic characters in single-character variable names
416 The syntax for single-character variable names is more lenient than
417 for longer variable names, allowing the one-character name to be a
418 punctuation character or even invisible (a non-graphic). Perl v5.20
419 deprecated the ASCII-range controls as such a name. Now, all
420 non-graphic characters that formerly were allowed are deprecated.
421 The practical effect of this occurs only when not under C<S<use
422 utf8>>, and affects just the C1 controls (code points 0x80 through
423 0xFF), NO-BREAK SPACE, and SOFT HYPHEN.
425 =head2 Inlining of C<sub () { $var }> with observable side-effects
427 In many cases Perl makes S<C<sub () { $var }>> into an inlinable constant
428 subroutine, capturing the value of C<$var> at the time the C<sub> expression
429 is evaluated. This can break the closure behaviour in those cases where
430 C<$var> is subsequently modified, since the subroutine won't return the
431 changed value. (Note that this all only applies to anonymous subroutines
432 with an empty prototype (S<C<sub ()>>).)
434 This usage is now deprecated in those cases where the variable could be
435 modified elsewhere. Perl detects those cases and emits a deprecation
436 warning. Such code will likely change in the future and stop producing a
439 If your variable is only modified in the place where it is declared, then
440 Perl will continue to make the sub inlinable with no warnings.
444 return sub () { $var }; # fine
447 sub make_constant_deprecated {
450 return sub () { $var }; # deprecated
453 sub make_constant_deprecated2 {
455 log_that_value($var); # could modify $var
456 return sub () { $var }; # deprecated
459 In the second example above, detecting that C<$var> is assigned to only once
460 is too hard to detect. That it happens in a spot other than the C<my>
461 declaration is enough for Perl to find it suspicious.
463 This deprecation warning happens only for a simple variable for the body of
464 the sub. (A C<BEGIN> block or C<use> statement inside the sub is ignored,
465 because it does not become part of the sub's body.) For more complex
466 cases, such as S<C<sub () { do_something() if 0; $var }>> the behaviour has
467 changed such that inlining does not happen if the variable is modifiable
468 elsewhere. Such cases should be rare.
470 =head2 Use of multiple /x regexp modifiers
472 It is now deprecated to say something like any of the following:
478 That is, now C<x> should only occur once in any string of contiguous
479 regular expression pattern modifiers. We do not believe there are any
480 occurrences of this in all of CPAN. This is in preparation for a future
481 Perl release having C</xx> permit white-space for readability in
482 bracketed character classes (those enclosed in square brackets:
485 =head2 Using a NO-BREAK space in a character alias for C<\N{...}> is now deprecated
487 This non-graphic character is essentially indistinguishable from a
488 regular space, and so should not be allowed. See
489 L<charnames/CUSTOM ALIASES>.
491 =head2 A literal C<"{"> should now be escaped in a pattern
493 If you want a literal left curly bracket (also called a left brace) in a
494 regular expression pattern, you should now escape it by either
495 preceding it with a backslash (C<"\{">) or enclosing it within square
496 brackets C<"[{]">, or by using C<\Q>; otherwise a deprecation warning
497 will be raised. This was first announced as forthcoming in the v5.16
498 release; it will allow future extensions to the language to happen.
500 =head2 Making all warnings fatal is discouraged
502 The documentation for L<fatal warnings|warnings/Fatal Warnings> notes that
503 C<< use warnings FATAL => 'all' >> is discouraged, and provides stronger
504 language about the risks of fatal warnings in general.
506 =head1 Performance Enhancements
512 If a method or class name is known at compile time, a hash is precomputed
513 to speed up run-time method lookup. Also, compound method names like
514 C<SUPER::new> are parsed at compile time, to save having to parse them at
519 Array and hash lookups (especially nested ones) that use only constants
520 or simple variables as keys, are now considerably faster. See
521 L</Internal Changes> for more details.
525 C<(...)x1>, C<("constant")x0> and C<($scalar)x0> are now optimised in list
526 context. If the right-hand argument is a constant 1, the repetition
527 operator disappears. If the right-hand argument is a constant 0, the whole
528 expression is optimised to the empty list, so long as the left-hand
529 argument is a simple scalar or constant. (That is, C<(foo())x0> is not
530 subject to this optimisation.)
534 C<substr> assignment is now optimised into 4-argument C<substr> at the end
535 of a subroutine (or as the argument to C<return>). Previously, this
536 optimisation only happened in void context.
540 In C<"\L...">, C<"\Q...">, etc., the extra "stringify" op is now optimised
541 away, making these just as fast as C<lcfirst>, C<quotemeta>, etc.
545 Assignment to an empty list is now sometimes faster. In particular, it
546 never calls C<FETCH> on tied arguments on the right-hand side, whereas it
551 There is a performance improvement of up to 20% when C<length> is applied to
552 a non-magical, non-tied string, and either C<use bytes> is in scope or the
553 string doesn't use UTF-8 internally.
557 On most perl builds with 64-bit integers, memory usage for non-magical,
558 non-tied scalars containing only a floating point value has been reduced
559 by between 8 and 32 bytes, depending on OS.
563 In C<@array = split>, the assignment can be optimized away, so that C<split>
564 writes directly to the array. This optimisation was happening only for
565 package arrays other than C<@_>, and only sometimes. Now this
566 optimisation happens almost all the time.
570 C<join> is now subject to constant folding. So for example
571 S<C<join "-", "a", "b">> is converted at compile-time to C<"a-b">.
572 Moreover, C<join> with a scalar or constant for the separator and a
573 single-item list to join is simplified to a stringification, and the
574 separator doesn't even get evaluated.
578 C<qq(@array)> is implemented using two ops: a stringify op and a join op.
579 If the C<qq> contains nothing but a single array, the stringification is
584 S<C<our $var>> and S<C<our($s,@a,%h)>> in void context are no longer evaluated at
585 run time. Even a whole sequence of S<C<our $foo;>> statements will simply be
586 skipped over. The same applies to C<state> variables.
590 Many internal functions have been refactored to improve performance and reduce
591 their memory footprints.
592 L<[perl #121436]|https://rt.perl.org/Ticket/Display.html?id=121436>
593 L<[perl #121906]|https://rt.perl.org/Ticket/Display.html?id=121906>
594 L<[perl #121969]|https://rt.perl.org/Ticket/Display.html?id=121969>
598 C<-T> and C<-B> filetests will return sooner when an empty file is detected.
599 L<[perl #121489]|https://rt.perl.org/Ticket/Display.html?id=121489>
603 Hash lookups where the key is a constant are faster.
607 Subroutines with an empty prototype and a body containing just C<undef> are now
608 eligible for inlining.
609 L<[perl #122728]|https://rt.perl.org/Ticket/Display.html?id=122728>
613 Subroutines in packages no longer need to be stored in typeglobs:
614 declaring a subroutine will now put a simple sub reference directly in the
615 stash if possible, saving memory. The typeglob still notionally exists,
616 so accessing it will cause the stash entry to be upgraded to a typeglob
617 (i.e. this is just an internal implementation detail).
618 This optimization does not currently apply to XSUBs or exported
619 subroutines, and method calls will undo it, since they cache things in
621 L<[perl #120441]|https://rt.perl.org/Ticket/Display.html?id=120441>
625 The functions C<utf8::native_to_unicode()> and C<utf8::unicode_to_native()>
626 (see L<utf8>) are now optimized out on ASCII platforms. There is now not even
627 a minimal performance hit in writing code portable between ASCII and EBCDIC
632 Win32 Perl uses 8 KB less of per-process memory than before for every perl
633 process, because some data is now memory mapped from disk and shared
634 between processes from the same perl binary.
638 =head1 Modules and Pragmata
640 =head2 Updated Modules and Pragmata
642 Many of the libraries distributed with perl have been upgraded since v5.20.0.
643 For a complete list of changes, run:
645 corelist --diff 5.20.0 5.22.0
647 You can substitute your favorite version in place of 5.20.0, too.
649 Some notable changes include:
655 L<Archive::Tar> has been upgraded to version 2.02.
657 Tests can now be run in parallel.
661 L<attributes> has been upgraded to version 0.24.
663 The usage of C<memEQs> in the XS has been corrected.
664 L<[perl #122701]|https://rt.perl.org/Ticket/Display.html?id=122701>
666 Avoid reading beyond the end of a buffer. [perl #122629]
670 L<B> has been upgraded to version 1.55.
672 It provides a new C<B::safename> function, based on the existing
673 C<< B::GV->SAFENAME >>, that converts "\cOPEN" to "^OPEN".
675 Nulled COPs are now of class C<B::COP>, rather than C<B::OP>.
677 C<B::REGEXP> objects now provide a C<qr_anoncv> method for accessing the
678 implicit CV associated with C<qr//> things containing code blocks, and a
679 C<compflags> method that returns the pertinent flags originating from the
682 C<B::PMOP> now provides a C<pmregexp> method returning a C<B::REGEXP> object.
683 Two new classes, C<B::PADNAME> and C<B::PADNAMELIST>, have been introduced.
685 A bug where, after an ithread creation or psuedofork, special/immortal SVs in
686 the child ithread/psuedoprocess did not have the correct class of
687 C<B::SPECIAL>, has been fixed.
688 The C<id> and C<outid> PADLIST methods have been added.
692 L<B::Concise> has been upgraded to version 0.994.
694 Null ops that are part of the execution chain are now given sequence
697 Private flags for nulled ops are now dumped with mnemonics as they would be
698 for the non-nulled counterparts.
702 L<B::Deparse> has been upgraded to version 1.35.
704 It now deparses C<+sub : attr { ... }> correctly at the start of a
705 statement. Without the initial C<+>, C<sub> would be a statement label.
707 C<BEGIN> blocks are now emitted in the right place most of the time, but
708 the change unfortunately introduced a regression, in that C<BEGIN> blocks
709 occurring just before the end of the enclosing block may appear below it
712 C<B::Deparse> no longer puts erroneous C<local> here and there, such as for
713 C<LIST = tr/a//d>. [perl #119815]
715 Adjacent C<use> statements are no longer accidentally nested if one
716 contains a C<do> block. [perl #115066]
718 Parenthesised arrays in lists passed to C<\> are now correctly deparsed
719 with parentheses (e.g., C<\(@a, (@b), @c)> now retains the parentheses
720 around @b), this preserving the flattening behaviour of referenced
721 parenthesised arrays. Formerly, it only worked for one array: C<\(@a)>.
723 C<local our> is now deparsed correctly, with the C<our> included.
725 C<for($foo; !$bar; $baz) {...}> was deparsed without the C<!> (or C<not>).
728 Core keywords that conflict with lexical subroutines are now deparsed with
729 the C<CORE::> prefix.
731 C<foreach state $x (...) {...}> now deparses correctly with C<state> and
734 C<our @array = split(...)> now deparses correctly with C<our> in those
735 cases where the assignment is optimized away.
737 It now deparses C<our(I<LIST>)> and typed lexical (C<my Dog $spot>) correctly.
739 Deparse C<$#_> as that instead of as C<$#{_}>.
740 L<[perl #123947]|https://rt.perl.org/Ticket/Display.html?id=123947>
742 C<< <<>> >> is now correctly deparsed.
744 BEGIN blocks at the end of the enclosing scope are now deparsed in the
745 right place. [perl #77452]
747 BEGIN blocks were sometimes deparsed as __ANON__, but are now always called
750 Lexical subroutines are now fully deparsed. [perl #116553]
752 Deparsing of C<$lexical =~ //> was accidentally broken in 1.30 (perl
753 5.21.6), omitting the C<$lexical =~>, but has now been fixed.
755 C<Anything =~ y///r> with C</r> no longer omits the left-hand operand.
757 The op trees that make up regexp code blocks are now deparsed for real.
758 Formerly, the original string that made up the regular expression was used.
759 That caused problems with C<qr/(?{E<lt>E<lt>heredoc})/> and multiline code blocks,
760 which were deparsed incorrectly. [perl #123217] [perl #115256]
762 C<$;> at the end of a statement no longer loses its semicolon.
765 Some cases of subroutine declarations stored in the stash in shorthand form
768 Non-ASCII characters are now consistently escaped in strings, instead of
769 some of the time. (There are still outstanding problems with regular
770 expressions and identifiers that have not been fixed.)
772 When prototype sub calls are deparsed with C<&> (e.g., under the B<-P>
773 option), C<scalar> is now added where appropriate, to force the scalar
774 context implied by the prototype.
776 C<require(foo())>, C<do(foo())>, C<goto(foo())> and similar constructs with
777 loop controls are now deparsed correctly. The outer parentheses are not
780 Whitespace is no longer escaped in regular expressions, because it was
781 getting erroneously escaped within C<(?x:...)> sections.
783 C<sub foo { foo() }> is now deparsed with those mandatory parentheses.
785 C</@array/> is now deparsed as a regular expression, and not just
788 C</@{-}/>, C</@{+}/> and C<$#{1}> are now deparsed with the braces, which
789 are mandatory in these cases.
791 In deparsing feature bundles, B::Deparse was emitting C<no feature;> first
792 instead of C<no feature ':all';>. This has been fixed.
794 C<chdir FH> is now deparsed without quotation marks.
796 C<\my @a> is now deparsed without parentheses. (Parenthese would flatten
799 C<system> and C<exec> followed by a block are now deparsed correctly.
800 Formerly there was an erroneous C<do> before the block.
802 C<< use constant QR =E<gt> qr/.../flags >> followed by C<"" =~ QR> is no longer
805 Deparsing C<BEGIN { undef &foo }> with the B<-w> switch enabled started to
806 emit 'uninitialized' warnings in Perl 5.14. This has been fixed.
808 Deparsing calls to subs with a C<(;+)> prototype resulted in an infinite
809 loop. The C<(;$>) C<(_)> and C<(;_)> prototypes were given the wrong
810 precedence, causing C<foo($aE<lt>$b)> to be deparsed without the parentheses.
812 Deparse now provides a defined state sub in inner subs.
813 Since version Perl 5.21.6, Deparse would croak on special constants, but
814 this has now been fixed.
818 L<B::Op_private> has been upgraded to version 5.021006.
820 It now includes a hash named C<%ops_using>, list all op types that use a
821 particular private flag.
825 L<bigint>, L<bignum>, L<bigrat> have been upgraded to version 0.39.
827 Document in CAVEATS that using strings as numbers won't always invoke
828 the big number overloading, and how to invoke it. [rt.perl.org #123064]
832 L<Carp> has been upgraded to version 1.35.
834 Carp::Heavy now ignores version mismatches with Carp if Carp is newer
835 than 1.12, since Carp::Heavy's guts were merged into Carp at that
837 L<[perl #121574]|https://rt.perl.org/Ticket/Display.html?id=121574>
839 Carp now handles non-ASCII platforms better.
840 Off-by-one error fix for Perl E<lt> 5.14.
844 L<constant> has been upgraded to version 1.32.
846 It now accepts fully-qualified constant names, allowing constants to be defined
847 in packages other than the caller.
851 L<CPAN> has been upgraded to version 2.10.
853 Add support for C<Cwd::getdcwd()> and introduce workaround for a misbehaviour
854 seen on Strawberry Perl 5.20.1.
856 Fix C<chdir()> after building dependencies bug.
858 Introduce experimental support for plugins/hooks.
860 Integrate the App::Cpan sources.
862 Do not check recursion on optional dependencies.
864 Sanity check F<META.yml> to contain a hash.
865 L<[cpan #95271]|https://rt.cpan.org/Ticket/Display.html?id=95271>
869 L<CPAN::Meta::Requirements> has been upgraded to version 2.128.
871 Works around limitations in version::vpp detecting v-string magic and adds
872 support for forthcoming L<ExtUtils::MakeMaker> bootstrap F<version.pm> for
873 Perls older than 5.10.0.
877 L<Data::Dumper> has been upgraded to version 2.154.
879 Fixes CVE-2014-4330 by adding a configuration variable/option to limit
880 recursion when dumping deep data structures.
882 Changes to resolve Coverity issues.
883 XS dumps incorrectly stored the name of code references stored in a
885 L<[perl #122070]|https://rt.perl.org/Ticket/Display.html?id=122070>
889 L<DynaLoader> has been upgraded to version 1.27.
891 Remove C<dl_nonlazy> global if unused in Dynaloader. [perl #122926]
895 L<Encode> has been upgraded to version 2.70.
897 C<piconv> now has better error handling when the encoding name is nonexistent,
898 and a build breakage when upgrading L<Encode> in perl-5.8.2 and earlier has
901 Building in C++ mode on Windows now works.
905 L<Errno> has been upgraded to version 1.23.
907 Add C<-P> to the preprocessor command-line on GCC 5. GCC added extra
908 line directives, breaking parsing of error code definitions. [rt.perl.org
913 L<experimental> has been upgraded to version 0.010.
915 Hardcodes features for Perls older than 5.15.7.
919 L<ExtUtils::CBuilder> has been upgraded to version 0.280219.
921 Fixes a regression on Android.
922 L<[perl #122675]|https://rt.perl.org/Ticket/Display.html?id=122675>
926 L<ExtUtils::Manifest> has been upgraded to version 1.68.
928 Fixes a bug with C<maniread()>'s handling of quoted filenames and improves
929 C<manifind()> to follow symlinks.
930 L<[perl #122415]|https://rt.perl.org/Ticket/Display.html?id=122415>
934 L<ExtUtils::ParseXS> has been upgraded to version 3.27.
936 Only declare C<file> unused if we actually define it.
937 Improve generated C<RETVAL> code generation to avoid repeated
938 references to C<ST(0)>. [perl #123278]
939 Broaden and document the C</OBJ$/> to C</REF$/> typemap optimization
940 for the C<DESTROY> method. [perl #123418]
944 L<Fcntl> has been upgraded to version 1.13.
946 Add support for the Linux pipe buffer size fcntl() commands.
950 L<File::Find> has been upgraded to version 1.28.
952 C<find()> and C<finddepth()> will now warn if passed inappropriate or
957 L<File::Glob> has been upgraded to version 1.24.
959 Avoid SvIV() expanding to call get_sv() three times in a few
960 places. [perl #123606]
964 L<HTTP::Tiny> has been upgraded to version 0.049.
966 C<keep_alive> is now fork-safe and thread-safe.
970 L<IO> has been upgraded to version 1.34.
972 The XS implementation has been fixed for the sake of older Perls.
976 L<IO::Socket> has been upgraded to version 1.38.
978 Document the limitations of the connected() method. [perl #123096]
982 L<IO::Socket::IP> has been upgraded to version 0.32.
984 A better fix for subclassing C<connect()>.
985 L<[cpan #95983]|https://rt.cpan.org/Ticket/Display.html?id=95983>
986 L<[cpan #97050]|https://rt.cpan.org/Ticket/Display.html?id=97050>
988 Implements Timeout for C<connect()>.
989 L<[cpan #92075]|https://rt.cpan.org/Ticket/Display.html?id=92075>
993 The libnet collection of modules has been upgraded to version 3.02.
995 Support for IPv6 and SSL to Net::FTP, Net::NNTP, Net::POP3 and Net::SMTP.
996 Improvements in Net::SMTP authentication.
1000 L<Locale::Codes> has been upgraded to version 3.32.
1002 Fixed a bug in the scripts used to extract data from spreadsheets that
1003 prevented the SHP currency code from being found.
1004 L<[cpan #94229]|https://rt.cpan.org/Ticket/Display.html?id=94229>
1006 New codes have been added.
1010 L<Math::BigInt> has been upgraded to version 1.9996.
1012 Synchronize POD changes from the CPAN release.
1013 C<< Math::BigFloat->blog(x) >> would sometimes return blog(2*x) when
1014 the accuracy was greater than 70 digits.
1015 The result of C<< Math::BigFloat->bdiv() >> in list context now
1016 satisfies C<< x = quotient * divisor + remainder >>.
1018 Correct handling of subclasses.
1019 L<[cpan #96254]|https://rt.cpan.org/Ticket/Display.html?id=96254>
1020 L<[cpan #96329]|https://rt.cpan.org/Ticket/Display.html?id=96329>
1024 L<Module::Metadata> has been upgraded to version 1.000024.
1026 Support installations on older perls with an L<ExtUtils::MakeMaker> earlier
1031 L<overload> has been upgraded to version 1.23.
1033 A redundant C<ref $sub> check has been removed.
1037 The PathTools module collection has been upgraded to version 3.53.
1039 A warning from the B<gcc> compiler is now avoided when building the XS.
1041 Don't turn leading C<//> into C</> on Cygwin. [perl #122635]
1045 L<perl5db.pl> has been upgraded to version 1.49.
1047 The debugger would cause an assertion failure.
1048 L<[perl #124127]|https://rt.perl.org/Ticket/Display.html?id=124127>
1050 C<fork()> in the debugger under C<tmux> will now create a new window for
1051 the forked process. L<[perl
1052 #121333]|https://rt.perl.org/Ticket/Display.html?id=121333>
1054 The debugger now saves the current working directory on startup and
1055 restores it when you restart your program with C<R> or C<rerun>. L<[perl
1056 #121509]|https://rt.perl.org/Ticket/Display.html?id=121509>
1060 L<PerlIO::scalar> has been upgraded to version 0.22.
1062 Reading from a position well past the end of the scalar now correctly
1063 returns end of file. [perl #123443]
1065 Seeking to a negative position still fails, but no longer leaves the
1066 file position set to a negation location.
1068 C<eof()> on a C<PerlIO::scalar> handle now properly returns true when
1069 the file position is past the 2GB mark on 32-bit systems.
1071 Attempting to write at file positions impossible for the platform now
1072 fail early rather than wrapping at 4GB.
1076 L<Pod::Perldoc> has been upgraded to version 3.24.
1078 Filehandles opened for reading or writing now have C<:encoding(UTF-8)> set.
1079 L<[cpan #98019]|https://rt.cpan.org/Ticket/Display.html?id=98019>
1083 L<POSIX> has been upgraded to version 1.45.
1085 The C99 math functions and constants (for example C<acosh>, C<isinf>, C<isnan>, C<round>,
1086 C<trunc>; C<M_E>, C<M_SQRT2>, C<M_PI>) have been added.
1088 POSIX::tmpnam() now produces a deprecation warning. [perl #122005]
1092 L<Safe> has been upgraded to version 2.39.
1094 C<reval> was not propagating void context properly.
1098 Scalar-List-Utils has been upgraded to version 1.41.
1100 A new module, L<Sub::Util>, has been added, containing functions related to
1101 CODE refs, including C<subname> (inspired by Sub::Identity) and C<set_subname>
1102 (copied and renamed from Sub::Name).
1103 The use of C<GetMagic> in C<List::Util::reduce()> has also been fixed.
1104 L<[cpan #63211]|https://rt.cpan.org/Ticket/Display.html?id=63211>
1108 L<SDBM_File> has been upgraded to version 1.13.
1110 Simplified the build process. [perl #123413]
1114 L<Time::Piece> has been upgraded to version 1.29.
1116 When pretty printing negative Time::Seconds, the "minus" is no longer lost.
1120 L<Unicode::Collate> has been upgraded to version 1.07.
1122 Version 0.67's improved discontiguous contractions is invalidated by default
1123 and is supported as a parameter 'long_contraction'.
1127 L<Unicode::Normalize> has been upgraded to version 1.18.
1129 The XSUB implementation has been removed in favour of pure Perl.
1133 L<Unicode::UCD> has been upgraded to version 0.61.
1135 A new function L<property_values()|Unicode::UCD/prop_values()>
1136 has been added to return a given property's possible values.
1138 A new function L<charprop()|Unicode::UCD/charprop()>
1139 has been added to return the value of a given property for a given code
1142 A new function L<charprops_all()|Unicode::UCD/charprops_all()>
1143 has been added to return the values of all Unicode properties for a
1146 A bug has been fixed so that L<propaliases()|Unicode::UCD/prop_aliases()>
1147 returns the correct short and long names for the Perl extensions where
1150 A bug has been fixed so that
1151 L<prop_value_aliases()|Unicode::UCD/prop_value_aliases()>
1152 returns C<undef> instead of a wrong result for properties that are Perl
1155 This module now works on EBCDIC platforms.
1159 L<UNIVERSAL> has been upgraded to version 1.12.
1161 L<B::Op_private> provides detailed information about the flags used in the
1162 C<op_private> field of perl opcodes.
1166 L<utf8> has been upgraded to version 1.17
1168 A mismatch between the documentation and the code in utf8::downgrade()
1169 was fixed in favour of the documentation. The optional second argument
1170 is now correctly treated as a perl boolean (true/false semantics) and
1175 L<version> has been upgraded to version 0.9909.
1177 Numerous changes. See the F<Changes> file in the CPAN distribution for
1182 L<Win32> has been upgraded to version 0.51.
1184 GetOSName() now supports Windows 8.1, and building in C++ mode now works.
1188 L<Win32API::File> has been upgraded to version 0.1202
1190 Building in C++ mode now works.
1194 L<XSLoader> has been upgraded to version 0.18.
1196 Allow XSLoader to load modules from a different namespace.
1201 =head2 Removed Modules and Pragmata
1203 The following modules (and associated modules) have been removed from the core
1218 =head1 Documentation
1220 =head2 New Documentation
1222 =head3 L<perlunicook>
1224 This document, by Tom Christiansen, provides examples of handling Unicode in
1227 =head2 Changes to Existing Documentation
1235 A note on long doubles has been added.
1246 Note that C<SvSetSV> doesn't do set magic.
1250 C<sv_usepvn_flags> - fix documentation to mention the use of C<Newx> instead of
1253 L<[perl #121869]|https://rt.perl.org/Ticket/Display.html?id=121869>
1257 Clarify where C<NUL> may be embedded or is required to terminate a string.
1261 Some documentation that was previously missing due to formatting errors is
1266 Entries are now organized into groups rather than by the file where they
1271 Alphabetical sorting of entries is now done consistently (automatically
1272 by the POD generator) to make entries easier to find when scanning.
1282 The syntax of single-character variable names has been brought
1283 up-to-date and more fully explained.
1287 Hexadecimal floating point numbers are described, as are infinity and
1292 =head3 L<perlebcdic>
1298 This document has been significantly updated in the light of recent
1299 improvements to EBCDIC support.
1303 =head3 L<perlfilter>
1309 Added a L<LIMITATIONS|perlfilter/LIMITATIONS> section.
1320 Mention that C<study()> is currently a no-op.
1324 Calling C<delete> or C<exists> on array values is now described as "strongly
1325 discouraged" rather than "deprecated".
1329 Improve documentation of C<< our >>.
1333 C<-l> now notes that it will return false if symlinks aren't supported by the
1336 L<[perl #121523]|https://rt.perl.org/Ticket/Display.html?id=121523>
1340 Note that C<exec LIST> and C<system LIST> may fall back to the shell on
1341 Win32. Only the indirect-object syntax C<exec PROGRAM LIST> and
1342 C<system PROGRAM LIST> will reliably avoid using the shell.
1344 This has also been noted in L<perlport>.
1346 L<[perl #122046]|https://rt.perl.org/Ticket/Display.html?id=122046>
1356 The OOK example has been updated to account for COW changes and a change in the
1357 storage of the offset.
1361 Details on C level symbols and libperl.t added.
1365 Information on Unicode handling has been added
1369 Information on EBCDIC handling has been added
1379 A note has been added about running on platforms with non-ASCII
1384 A note has been added about performance testing
1388 =head3 L<perlhacktips>
1394 Documentation has been added illustrating the perils of assuming that
1395 there is no change to the contents of static memory pointed to by the
1396 return values of Perl's wrappers for C library functions.
1400 Replacements for C<tmpfile>, C<atoi>, C<strtol>, and C<strtoul> are now
1405 Updated documentation for the C<test.valgrind> C<make> target.
1407 L<[perl #121431]|https://rt.perl.org/Ticket/Display.html?id=121431>
1411 Information is given about writing test files portably to non-ASCII
1416 A note has been added about how to get a C language stack backtrace.
1426 Note that the message "Redeclaration of "sendpath" with a different
1427 storage class specifier" is harmless.
1431 =head3 L<perllocale>
1437 Updated for the enhancements in v5.22, along with some clarifications.
1441 =head3 L<perlmodstyle>
1447 Instead of pointing to the module list, we are now pointing to
1448 L<PrePAN|http://prepan.org/>.
1458 Updated for the enhancements in v5.22, along with some clarifications.
1462 =head3 L<perlpodspec>
1468 The specification of the pod language is changing so that the default
1469 encoding of pods that aren't in UTF-8 (unless otherwise indicated) is
1470 CP1252 instead of ISO 8859-1 (Latin1).
1474 =head3 L<perlpolicy>
1480 We now have a code of conduct for the I<< p5p >> mailing list, as documented
1481 in L<< perlpolicy/STANDARDS OF CONDUCT >>.
1485 The conditions for marking an experimental feature as non-experimental are now
1490 Clarification has been made as to what sorts of changes are permissible in
1491 maintenance releases.
1501 Out-of-date VMS-specific information has been fixed and/or simplified.
1505 Notes about EBCDIC have been added.
1515 The description of the C</x> modifier has been clarified to note that
1516 comments cannot be continued onto the next line by escaping them; and
1517 there is now a list of all the characters that are considered whitespace
1522 The new C</n> modifier is described.
1526 A note has been added on how to make bracketed character class ranges
1527 portable to non-ASCII machines.
1531 =head3 L<perlrebackslash>
1537 Added documentation of C<\b{sb}>, C<\b{wb}>, C<\b{gcb}>, and C<\b{g}>.
1541 =head3 L<perlrecharclass>
1547 Clarifications have been added to L<perlrecharclass/Character Ranges>
1548 to the effect C<[A-Z]>, C<[a-z]>, C<[0-9]> and
1549 any subranges thereof in regular expression bracketed character classes
1550 are guaranteed to match exactly what a naive English speaker would
1551 expect them to match, even on platforms (such as EBCDIC) where special
1552 handling is required to accomplish this.
1556 The documentation of Bracketed Character Classes has been expanded to cover the
1557 improvements in C<qr/[\N{named sequence}]/> (see under L</Selected Bug Fixes>).
1567 A new section has been added
1568 L<Assigning to References|perlref/Assigning to References>
1578 Comments added on algorithmic complexity and tied hashes.
1588 An ambiguity in the documentation of the C<...> statement has been corrected.
1589 L<[perl #122661]|https://rt.perl.org/Ticket/Display.html?id=122661>
1593 The empty conditional in C<< for >> and C<< while >> is now documented
1598 =head3 L<perlunicode>
1604 This has had extensive revisions to bring it up-to-date with current
1605 Unicode support and to make it more readable. Notable is that Unicode
1606 7.0 changed what it should do with non-characters. Perl retains the old
1607 way of handling for reasons of backward compatibility. See
1608 L<perlunicode/Noncharacter code points>.
1612 =head3 L<perluniintro>
1618 Advice for how to make sure your strings and regular expression patterns are
1619 interpreted as Unicode has been updated.
1629 C<$]> is no longer listed as being deprecated. Instead, discussion has
1630 been added on the advantages and disadvantages of using it versus
1635 C<${^ENCODING}> is now marked as deprecated.
1639 The entry for C<%^H> has been clarified to indicate it can only handle
1650 Out-of-date and/or incorrect material has been removed.
1654 Updated documentation on environment and shell interaction in VMS.
1664 Added a discussion of locale issues in XS code.
1670 The following additions or changes have been made to diagnostic output,
1671 including warnings and fatal error messages. For the complete list of
1672 diagnostic messages, see L<perldiag>.
1674 =head2 New Diagnostics
1682 L<Bad symbol for scalar|perldiag/"Bad symbol for scalar">
1684 (P) An internal request asked to add a scalar entry to something that
1685 wasn't a symbol table entry.
1689 L<Can't use a hash as a reference|perldiag/"Can't use a hash as a reference">
1691 (F) You tried to use a hash as a reference, as in
1692 C<< %foo->{"bar"} >> or C<< %$ref->{"hello"} >>. Versions of perl E<lt>= 5.6.1
1693 used to allow this syntax, but shouldn't have.
1697 L<Can't use an array as a reference|perldiag/"Can't use an array as a reference">
1699 (F) You tried to use an array as a reference, as in
1700 C<< @foo->[23] >> or C<< @$ref->[99] >>. Versions of perl E<lt>= 5.6.1 used to
1701 allow this syntax, but shouldn't have.
1705 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()?)">
1707 (F) C<defined()> is not useful on arrays because it
1708 checks for an undefined I<scalar> value. If you want to see if the
1709 array is empty, just use S<C<if (@array) { # not empty }>> for example.
1713 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()?)">
1715 (F) C<defined()> is not usually right on hashes.
1717 Although S<C<defined %hash>> is false on a plain not-yet-used hash, it
1718 becomes true in several non-obvious circumstances, including iterators,
1719 weak references, stash names, even remaining true after S<C<undef %hash>>.
1720 These things make S<C<defined %hash>> fairly useless in practice, so it now
1721 generates a fatal error.
1723 If a check for non-empty is what you wanted then just put it in boolean
1724 context (see L<perldata/Scalar values>):
1730 If you had S<C<defined %Foo::Bar::QUUX>> to check whether such a package
1731 variable exists then that's never really been reliable, and isn't
1732 a good way to enquire about the features of a package, or whether
1737 L<Cannot chr %f|perldiag/"Cannot chr %f">
1739 (F) You passed an invalid number (like an infinity or not-a-number) to
1744 L<Cannot compress %f in pack|perldiag/"Cannot compress %f in pack">
1746 (F) You tried converting an infinity or not-a-number to an unsigned
1747 character, which makes no sense.
1751 L<Cannot pack %f with '%c'|perldiag/"Cannot pack %f with '%c'">
1753 (F) You tried converting an infinity or not-a-number to a character,
1754 which makes no sense.
1758 L<Cannot print %f with '%c'|perldiag/"Cannot printf %f with '%c'">
1760 (F) You tried printing an infinity or not-a-number as a character (C<%c>),
1761 which makes no sense. Maybe you meant C<'%s'>, or just stringifying it?
1765 L<charnames alias definitions may not contain a sequence of multiple spaces|perldiag/"charnames alias definitions may not contain a sequence of multiple spaces">
1767 (F) You defined a character name which had multiple space
1768 characters in a row. Change them to single spaces. Usually these
1769 names are defined in the C<:alias> import argument to C<use charnames>, but
1770 they could be defined by a translator installed into C<$^H{charnames}>.
1771 See L<charnames/CUSTOM ALIASES>.
1775 L<charnames alias definitions may not contain trailing white-space|perldiag/"charnames alias definitions may not contain trailing white-space">
1777 (F) You defined a character name which ended in a space
1778 character. Remove the trailing space(s). Usually these names are
1779 defined in the C<:alias> import argument to C<use charnames>, but they
1780 could be defined by a translator installed into C<$^H{charnames}>.
1781 See L<charnames/CUSTOM ALIASES>.
1785 L<:const is not permitted on named subroutines|perldiag/":const is not permitted on named subroutines">
1787 (F) The "const" attribute causes an anonymous subroutine to be run and
1788 its value captured at the time that it is cloned. Named subroutines are
1789 not cloned like this, so the attribute does not make sense on them.
1793 L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
1795 (F) Something went horribly bad in hexadecimal float handling.
1799 L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
1801 (F) You have configured Perl to use long doubles but
1802 the internals of the long double format are unknown,
1803 therefore the hexadecimal float output is impossible.
1807 L<Illegal suidscript|perldiag/"Illegal suidscript">
1809 (F) The script run under suidperl was somehow illegal.
1813 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/">
1815 (F) The two-character sequence C<"(?"> in
1816 this context in a regular expression pattern should be an
1817 indivisible token, with nothing intervening between the C<"(">
1818 and the C<"?">, but you separated them.
1822 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/">
1824 (F) The two-character sequence C<"(*"> in
1825 this context in a regular expression pattern should be an
1826 indivisible token, with nothing intervening between the C<"(">
1827 and the C<"*">, but you separated them.
1831 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/">
1833 (F) The pattern looks like a {min,max} quantifier, but the min or max could not
1834 be parsed as a valid number - either it has leading zeroes, or it represents
1835 too big a number to cope with. The S<<-- HERE> shows where in the regular
1836 expression the problem was discovered. See L<perlre>.
1840 L<'%s' is an unknown bound type in regex|perldiag/"'%s' is an unknown bound type in regex; marked by <-- HERE in m/%s/">
1842 (F) You used C<\b{...}> or C<\B{...}> and the C<...> is not known to
1843 Perl. The current valid ones are given in
1844 L<perlrebackslash/\b{}, \b, \B{}, \B>.
1848 L<Missing or undefined argument to require|perldiag/Missing or undefined argument to require>
1850 (F) You tried to call C<require> with no argument or with an undefined
1851 value as an argument. C<require> expects either a package name or a
1852 file-specification as an argument. See L<perlfunc/require>.
1854 Formerly, C<require> with no argument or C<undef> warned about a Null filename.
1864 L<\C is deprecated in regex|perldiag/"\C is deprecated in regex; marked by <-- HERE in m/%s/">
1866 (D deprecated) The C<< /\C/ >> character class was deprecated in v5.20, and
1867 now emits a warning. It is intended that it will become an error in v5.24.
1868 This character class matches a single byte even if it appears within a
1869 multi-byte character, breaks encapsulation, and can corrupt UTF-8
1874 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>>
1876 (W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
1878 You specified a character that has the given plainer way of writing it,
1879 and which is also portable to platforms running with different character
1884 L<Argument "%s" treated as 0 in increment (++)|perldiag/"Argument "%s" treated
1885 as 0 in increment (++)">
1887 (W numeric) The indicated string was fed as an argument to the C<++> operator
1888 which expects either a number or a string matching C</^[a-zA-Z]*[0-9]*\z/>.
1889 See L<perlop/Auto-increment and Auto-decrement> for details.
1893 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/">
1895 (W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
1897 In a bracketed character class in a regular expression pattern, you
1898 had a range which has exactly one end of it specified using C<\N{}>, and
1899 the other end is specified using a non-portable mechanism. Perl treats
1900 the range as a Unicode range, that is, all the characters in it are
1901 considered to be the Unicode characters, and which may be different code
1902 points on some platforms Perl runs on. For example, C<[\N{U+06}-\x08]>
1903 is treated as if you had instead said C<[\N{U+06}-\N{U+08}]>, that is it
1904 matches the characters whose code points in Unicode are 6, 7, and 8.
1905 But that C<\x08> might indicate that you meant something different, so
1906 the warning gets raised.
1910 L<:const is experimental|perldiag/":const is experimental">
1912 (S experimental::const_attr) The "const" attribute is experimental.
1913 If you want to use the feature, disable the warning with C<no warnings
1914 'experimental::const_attr'>, but know that in doing so you are taking
1915 the risk that your code may break in a future Perl version.
1919 L<gmtime(%f) failed|perldiag/"gmtime(%f) failed">
1921 (W overflow) You called C<gmtime> with a number that it could not handle:
1922 too large, too small, or NaN. The returned value is C<undef>.
1926 L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
1928 (W overflow) The hexadecimal floating point has larger exponent
1929 than the floating point supports.
1933 L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
1935 (W overflow) The hexadecimal floating point has smaller exponent
1936 than the floating point supports.
1940 L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
1942 (W overflow) The hexadecimal floating point literal had more bits in
1943 the mantissa (the part between the 0x and the exponent, also known as
1944 the fraction or the significand) than the floating point supports.
1948 L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
1950 (W overflow) The hexadecimal floating point had internally more
1951 digits than could be output. This can be caused by unsupported
1952 long double formats, or by 64-bit integers not being available
1953 (needed to retrieve the digits under some configurations).
1957 L<localtime(%f) failed|perldiag/"localtime(%f) failed">
1959 (W overflow) You called C<localtime> with a number that it could not handle:
1960 too large, too small, or NaN. The returned value is C<undef>.
1964 L<Negative repeat count does nothing|perldiag/"Negative repeat count does nothing">
1966 (W numeric) You tried to execute the
1967 L<C<x>|perlop/Multiplicative Operators> repetition operator fewer than 0
1968 times, which doesn't make sense.
1972 L<NO-BREAK SPACE in a charnames alias definition is deprecated|perldiag/"NO-BREAK SPACE in a charnames alias definition is deprecated">
1974 (D deprecated) You defined a character name which contained a no-break
1975 space character. Change it to a regular space. Usually these names are
1976 defined in the C<:alias> import argument to C<use charnames>, but they
1977 could be defined by a translator installed into C<$^H{charnames}>. See
1978 L<charnames/CUSTOM ALIASES>.
1982 L<Non-finite repeat count does nothing|perldiag/"Non-finite repeat count does nothing">
1984 (W numeric) You tried to execute the
1985 L<C<x>|perlop/Multiplicative Operators> repetition operator C<Inf> (or
1986 C<-Inf>) or NaN times, which doesn't make sense.
1990 L<PerlIO layer ':win32' is experimental|perldiag/"PerlIO layer ':win32' is experimental">
1992 (S experimental::win32_perlio) The C<:win32> PerlIO layer is
1993 experimental. If you want to take the risk of using this layer,
1994 simply disable this warning:
1996 no warnings "experimental::win32_perlio";
2000 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>">
2002 (W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
2004 Stricter rules help to find typos and other errors. Perhaps you didn't
2005 even intend a range here, if the C<"-"> was meant to be some other
2006 character, or should have been escaped (like C<"\-">). If you did
2007 intend a range, the one that was used is not portable between ASCII and
2008 EBCDIC platforms, and doesn't have an obvious meaning to a casual
2011 [3-7] # OK; Obvious and portable
2012 [d-g] # OK; Obvious and portable
2013 [A-Y] # OK; Obvious and portable
2014 [A-z] # WRONG; Not portable; not clear what is meant
2015 [a-Z] # WRONG; Not portable; not clear what is meant
2016 [%-.] # WRONG; Not portable; not clear what is meant
2017 [\x41-Z] # WRONG; Not portable; not obvious to non-geek
2019 (You can force portability by specifying a Unicode range, which means that
2020 the endpoints are specified by
2021 L<C<\N{...}>|perlrecharclass/Character Ranges>, but the meaning may
2022 still not be obvious.)
2023 The stricter rules require that ranges that start or stop with an ASCII
2024 character that is not a control have all their endpoints be a literal
2025 character, and not some escape sequence (like C<"\x41">), and the ranges
2026 must be all digits, or all uppercase letters, or all lowercase letters.
2030 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/">
2032 (W regexp) (only under C<S<use re 'strict'>> or within C<(?[...])>)
2034 Stricter rules help to find typos and other errors. You included a
2035 range, and at least one of the end points is a decimal digit. Under the
2036 stricter rules, when this happens, both end points should be digits in
2037 the same group of 10 consecutive digits.
2041 L<Redundant argument in %s|perldiag/Redundant argument in %s>
2043 (W redundant) You called a function with more arguments than were
2044 needed, as indicated by information within other arguments you supplied
2045 (e.g. a printf format). Currently only emitted when a printf-type format
2046 required fewer arguments than were supplied, but might be used in the
2047 future for e.g. L<perlfunc/pack>.
2049 The warnings category C<< redundant >> is new. See also
2050 L<[perl #121025]|https://rt.perl.org/Ticket/Display.html?id=121025>.
2054 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">
2056 (W locale) You are matching a regular expression using locale rules,
2057 and a Unicode boundary is being matched, but the locale is not a Unicode
2058 one. This doesn't make sense. Perl will continue, assuming a Unicode
2059 (UTF-8) locale, but the results could well be wrong except if the locale
2060 happens to be ISO-8859-1 (Latin1) where this message is spurious and can
2065 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>" >>
2067 (W regexp) You used a Unicode boundary (C<\b{...}> or C<\B{...}>) in a
2068 portion of a regular expression where the character set modifiers C</a>
2069 or C</aa> are in effect. These two modifiers indicate an ASCII
2070 interpretation, and this doesn't make sense for a Unicode definition.
2071 The generated regular expression will compile so that the boundary uses
2072 all of Unicode. No other portion of the regular expression is affected.
2076 L<The bitwise feature is experimental|perldiag/"The bitwise feature is experimental">
2078 (S experimental::bitwise) This warning is emitted if you use bitwise
2079 operators (C<& | ^ ~ &. |. ^. ~.>) with the "bitwise" feature enabled.
2080 Simply suppress the warning if you want to use the feature, but know
2081 that in doing so you are taking the risk of using an experimental
2082 feature which may change or be removed in a future Perl version:
2084 no warnings "experimental::bitwise";
2085 use feature "bitwise";
2090 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/">
2092 (D deprecated, regexp) You used a literal C<"{"> character in a regular
2093 expression pattern. You should change to use C<"\{"> instead, because a future
2094 version of Perl (tentatively v5.26) will consider this to be a syntax error. If
2095 the pattern delimiters are also braces, any matching right brace
2096 (C<"}">) should also be escaped to avoid confusing the parser, for
2103 L<Use of literal non-graphic characters in variable names is deprecated|perldiag/"Use of literal non-graphic characters in variable names is deprecated">
2105 (D deprecated) Using literal non-graphic (including control)
2106 characters in the source to refer to the ^FOO variables, like C<$^X> and
2107 C<${^GLOBAL_PHASE}> is now deprecated.
2111 L<Useless use of attribute "const"|perldiag/Useless use of attribute "const">
2113 (W misc) The "const" attribute has no effect except
2114 on anonymous closure prototypes. You applied it to
2115 a subroutine via L<attributes.pm|attributes>. This is only useful
2116 inside an attribute handler for an anonymous subroutine.
2120 L<E<quot>use re 'strict'E<quot> is experimental|perldiag/"use re 'strict'" is experimental>
2122 (S experimental::re_strict) The things that are different when a regular
2123 expression pattern is compiled under C<'strict'> are subject to change
2124 in future Perl releases in incompatible ways; there are also proposals
2125 to change how to enable strict checking instead of using this subpragma.
2126 This means that a pattern that compiles today may not in a future Perl
2127 release. This warning is to alert you to that risk.
2131 L<Warning: unable to close filehandle properly: %s|perldiag/"Warning: unable to close filehandle properly: %s">
2133 L<Warning: unable to close filehandle %s properly: %s|perldiag/"Warning: unable to close filehandle %s properly: %s">
2135 (S io) Previously, perl silently ignored any errors when doing an implicit
2136 close of a filehandle, i.e. where the reference count of the filehandle
2137 reached zero and the user's code hadn't already called C<close()>; e.g.
2140 open my $fh, '>', $file or die "open: '$file': $!\n";
2141 print $fh, $data or die;
2142 } # implicit close here
2144 In a situation such as disk full, due to buffering, the error may only be
2145 detected during the final close, so not checking the result of the close is
2148 So perl now warns in such situations.
2152 L<Wide character (U+%X) in %s|perldiag/"Wide character (U+%X) in %s">
2154 (W locale) While in a single-byte locale (I<i.e.>, a non-UTF-8
2155 one), a multi-byte character was encountered. Perl considers this
2156 character to be the specified Unicode code point. Combining non-UTF-8
2157 locales and Unicode is dangerous. Almost certainly some characters
2158 will have two different representations. For example, in the ISO 8859-7
2159 (Greek) locale, the code point 0xC3 represents a Capital Gamma. But so
2160 also does 0x393. This will make string comparisons unreliable.
2162 You likely need to figure out how this multi-byte character got mixed up
2163 with your single-byte locale (or perhaps you thought you had a UTF-8
2164 locale, but Perl disagrees).
2168 The following two warnings for C<tr///> used to be skipped if the
2169 transliteration contained wide characters, but now they occur regardless of
2170 whether there are wide characters or not:
2172 L<Useless use of E<sol>d modifier in transliteration operator|perldiag/"Useless use of /d modifier in transliteration operator">
2174 L<Replacement list is longer than search list|perldiag/Replacement list is longer than search list>
2178 A new C<locale> warning category has been created, with the following warning
2179 messages currently in it:
2185 L<Locale '%s' may not work well.%s|perldiag/Locale '%s' may not work well.%s>
2187 (W locale) You are using the named locale, which is a non-UTF-8 one, and
2188 which Perl has determined is not fully compatible with Perl. The second
2189 C<%s> gives a reason.
2193 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".>
2195 (W locale) You are 1) running under "C<use locale>"; 2) the current
2196 locale is not a UTF-8 one; 3) you tried to do the designated case-change
2197 operation on the specified Unicode character; and 4) the result of this
2198 operation would mix Unicode and locale rules, which likely conflict.
2204 =head2 Changes to Existing Diagnostics
2212 This warning has been changed to
2213 L<< <> at require-statement should be quotes|perldiag/"<> at require-statement should be quotes" >>
2214 to make the issue more identifiable.
2218 L<Argument "%s" isn't numeric%s|perldiag/"Argument "%s" isn't numeric%s">
2220 The L<perldiag> entry for this warning has added this clarifying note:
2222 Note that for the Inf and NaN (infinity and not-a-number) the
2223 definition of "numeric" is somewhat unusual: the strings themselves
2224 (like "Inf") are considered numeric, and anything following them is
2225 considered non-numeric.
2229 L<Global symbol "%s" requires explicit package name|perldiag/"Global symbol "%s" requires explicit package name (did you forget to declare "my %s"?)">
2231 This message has had '(did you forget to declare "my %s"?)' appended to it, to
2232 make it more helpful to new Perl programmers.
2233 L<[perl #121638]|https://rt.perl.org/Ticket/Display.html?id=121638>
2237 '"my" variable &foo::bar can't be in a package' has been reworded to say
2238 'subroutine' instead of 'variable'.
2242 L<<< \N{} in character class restricted to one character in regex; marked by
2243 S<< <-- HERE >> in mE<sol>%sE<sol>|perldiag/"\N{} in inverted character
2244 class or as a range end-point is restricted to one character in regex;
2245 marked by <-- HERE in m/%s/" >>>
2247 This message has had I<character class> changed to I<inverted character
2248 class or as a range end-point is> to reflect improvements in
2249 C<qr/[\N{named sequence}]/> (see under L</Selected Bug Fixes>).
2253 L<panic: frexp|perldiag/"panic: frexp: %f">
2255 This message has had ': C<%f>' appended to it, to show what the offending
2256 floating point number is.
2260 I<Possible precedence problem on bitwise %c operator> reworded as
2261 L<Possible precedence problem on bitwise %s operator|perldiag/"Possible precedence problem on bitwise %s operator">.
2265 L<Unsuccessful %s on filename containing newline|perldiag/"Unsuccessful %s on filename containing newline">
2267 This warning is now only produced when the newline is at the end of
2272 "Variable C<%s> will not stay shared" has been changed to say "Subroutine"
2273 when it is actually a lexical sub that will not stay shared.
2277 L<Variable length lookbehind not implemented in regex mE<sol>%sE<sol>|perldiag/"Variable length lookbehind not implemented in regex m/%s/">
2279 The L<perldiag> entry for this warning has had information about Unicode
2284 =head2 Diagnostic Removals
2290 "Ambiguous use of -foo resolved as -&foo()"
2292 There is actually no ambiguity here, and this impedes the use of negated
2293 constants; e.g., C<-Inf>.
2297 "Constant is not a FOO reference"
2299 Compile-time checking of constant dereferencing (e.g., C<< my_constant->() >>)
2300 has been removed, since it was not taking overloading into account.
2301 L<[perl #69456]|https://rt.perl.org/Ticket/Display.html?id=69456>
2302 L<[perl #122607]|https://rt.perl.org/Ticket/Display.html?id=122607>
2306 =head1 Utility Changes
2308 =head2 F<find2perl>, F<s2p> and F<a2p> removal
2314 The F<x2p/> directory has been removed from the Perl core.
2316 This removes find2perl, s2p and a2p. They have all been released to CPAN as
2317 separate distributions (App::find2perl, App::s2p, App::a2p).
2327 F<h2ph> now handles hexadecimal constants in the compiler's predefined
2328 macro definitions, as visible in C<$Config{cppsymbols}>.
2329 L<[perl #123784]|https://rt.perl.org/Ticket/Display.html?id=123784>.
2339 No longer depends on non-core modules.
2343 =head1 Configuration and Compilation
2349 F<Configure> now checks for C<lrintl()>, C<lroundl()>, C<llrintl()>, and
2354 F<Configure> with C<-Dmksymlinks> should now be faster.
2355 L<[perl #122002]|https://rt.perl.org/Ticket/Display.html?id=122002>.
2359 The C<pthreads> and C<cl> libraries will be linked by default if present.
2360 This allows XS modules that require threading to work on non-threaded
2361 perls. Note that you must still pass C<-Dusethreads> if you want a
2366 For long doubles (to get more precision and range for floating point numbers)
2367 one can now use the GCC quadmath library which implements the quadruple
2368 precision floating point numbers on x86 and IA-64 platforms. See
2369 F<INSTALL> for details.
2373 MurmurHash64A and MurmurHash64B can now be configured as the internal hash
2378 C<make test.valgrind> now supports parallel testing.
2382 TEST_JOBS=9 make test.valgrind
2384 See L<perlhacktips/valgrind> for more information.
2386 L<[perl #121431]|https://rt.perl.org/Ticket/Display.html?id=121431>
2390 The MAD (Misc Attribute Decoration) build option has been removed
2392 This was an unmaintained attempt at preserving
2393 the Perl parse tree more faithfully so that automatic conversion of
2394 Perl 5 to Perl 6 would have been easier.
2396 This build-time configuration option had been unmaintained for years,
2397 and had probably seriously diverged on both Perl 5 and Perl 6 sides.
2401 A new compilation flag, C<< -DPERL_OP_PARENT >> is available. For details,
2402 see the discussion below at L<< /Internal Changes >>.
2406 Pathtools no longer tries to load XS on miniperl. This speeds up building perl
2417 F<t/porting/re_context.t> has been added to test that L<utf8> and its
2418 dependencies only use the subset of the C<$1..$n> capture vars that
2419 C<Perl_save_re_context()> is hard-coded to localize, because that function
2420 has no efficient way of determining at runtime what vars to localize.
2424 Tests for performance issues have been added in the file F<t/perf/taint.t>.
2428 Some regular expression tests are written in such a way that they will
2429 run very slowly if certain optimizations break. These tests have been
2430 moved into new files, F<< t/re/speed.t >> and F<< t/re/speed_thr.t >>,
2431 and are run with a C<< watchdog() >>.
2435 C<< test.pl >> now allows C<< plan skip_all => $reason >>, to make it
2436 more compatible with C<< Test::More >>.
2440 A new test script, F<op/infnan.t>, has been added to test if infinity and NaN are
2441 working correctly. See L</Infinity and NaN (not-a-number) handling improved>.
2445 =head1 Platform Support
2447 =head2 Regained Platforms
2451 =item IRIX and Tru64 platforms are working again.
2453 (Some C<make test> failures remain.)
2455 =item z/OS running EBCDIC Code Page 1047
2457 Core perl now works on this EBCDIC platform. Earlier perls also worked, but,
2458 even though support wasn't officially withdrawn, recent perls would not compile
2459 and run well. Perl 5.20 would work, but had many bugs which have now been
2460 fixed. Many CPAN modules that ship with Perl still fail tests, including
2461 Pod::Simple. However the version of Pod::Simple currently on CPAN should work;
2462 it was fixed too late to include in Perl 5.22. Work is under way to fix many
2463 of the still-broken CPAN modules, which likely will be installed on CPAN when
2464 completed, so that you may not have to wait until Perl 5.24 to get a working
2469 =head2 Discontinued Platforms
2473 =item NeXTSTEP/OPENSTEP
2475 NeXTSTEP was a proprietary operating system bundled with NeXT's
2476 workstations in the early to mid 90s; OPENSTEP was an API specification
2477 that provided a NeXTSTEP-like environment on a non-NeXTSTEP system. Both
2478 are now long dead, so support for building Perl on them has been removed.
2482 =head2 Platform-Specific Notes
2488 Special handling is required of the perl interpreter on EBCDIC platforms
2489 to get C<qr/[i-j]/> to match only C<"i"> and C<"j">, since there are 7
2490 characters between the
2491 code points for C<"i"> and C<"j">. This special handling had only been
2492 invoked when both ends of the range are literals. Now it is also
2493 invoked if any of the C<\N{...}> forms for specifying a character by
2494 name or Unicode code point is used instead of a literal. See
2495 L<perlrecharclass/Character Ranges>.
2499 The archname now distinguishes use64bitint from use64bitall.
2503 Build support has been improved for cross-compiling in general and for
2504 Android in particular.
2512 When spawning a subprocess without waiting, the return value is now
2517 Fix a prototype so linking doesn't fail under the VMS C++ compiler.
2521 C<finite>, C<finitel>, and C<isfinite> detection has been added to
2522 C<configure.com>, environment handling has had some minor changes, and
2523 a fix for legacy feature checking status.
2533 F<miniperl.exe> is now built with C<-fno-strict-aliasing>, allowing 64-bit
2534 builds to complete on GCC 4.8.
2535 L<[perl #123976]|https://rt.perl.org/Ticket/Display.html?id=123976>
2539 C<nmake minitest> now works on Win32. Due to dependency issues you
2540 need to build C<nmake test-prep> first, and a small number of the
2542 L<[perl #123394]|https://rt.perl.org/Ticket/Display.html?id=123394>
2546 Perl can now be built in C++ mode on Windows by setting the makefile macro
2547 C<USE_CPLUSPLUS> to the value "define".
2551 The list form of piped open has been implemented for Win32. Note: unlike
2552 C<system LIST> this does not fall back to the shell.
2553 L<[perl #121159]|https://rt.perl.org/Ticket/Display.html?id=121159>
2557 New C<DebugSymbols> and C<DebugFull> configuration options added to
2562 Previously compiling XS modules (including CPAN ones) using Visual C++ for
2563 Win64 resulted in around a dozen warnings per file from F<hv_func.h>. These
2564 warnings have been silenced.
2568 Support for building without PerlIO has been removed from the Windows
2569 makefiles. Non-PerlIO builds were all but deprecated in Perl 5.18.0 and are
2570 already not supported by F<Configure> on POSIX systems.
2574 Between 2 and 6 milliseconds and seven I/O calls have been saved per attempt
2575 to open a perl module for each path in C<@INC>.
2579 Intel C builds are now always built with C99 mode on.
2583 C<%I64d> is now being used instead of C<%lld> for MinGW.
2587 In the experimental C<:win32> layer, a crash in C<open> was fixed. Also
2588 opening F</dev/null> (which works under Win32 Perl's default C<:unix>
2589 layer) was implemented for C<:win32>.
2590 L<[perl #122224]|https://rt.perl.org/Ticket/Display.html?id=122224>
2594 A new makefile option, C<USE_LONG_DOUBLE>, has been added to the Windows
2595 dmake makefile for gcc builds only. Set this to "define" if you want perl to
2596 use long doubles to give more accuracy and range for floating point numbers.
2602 On OpenBSD, Perl will now default to using the system C<malloc> due to the
2603 security features it provides. Perl's own malloc wrapper has been in use
2604 since v5.14 due to performance reasons, but the OpenBSD project believes
2605 the tradeoff is worth it and would prefer that users who need the speed
2606 specifically ask for it.
2608 L<[perl #122000]|https://rt.perl.org/Ticket/Display.html?id=122000>.
2616 We now look for the Sun Studio compiler in both F</opt/solstudio*> and
2617 F</opt/solarisstudio*>.
2621 Builds on Solaris 10 with C<-Dusedtrace> would fail early since make
2622 didn't follow implied dependencies to build C<perldtrace.h>. Added an
2623 explicit dependency to C<depend>.
2624 L<[perl #120120]|https://rt.perl.org/Ticket/Display.html?id=120120>
2628 C<c99> options have been cleaned up; hints look for C<solstudio>
2629 as well as C<SUNWspro>; and support for native C<setenv> has been added.
2635 =head1 Internal Changes
2641 Experimental support has been added to allow ops in the optree to locate
2642 their parent, if any. This is enabled by the non-default build option
2643 C<-DPERL_OP_PARENT>. It is envisaged that this will eventually become
2644 enabled by default, so XS code which directly accesses the C<op_sibling>
2645 field of ops should be updated to be future-proofed.
2647 On C<PERL_OP_PARENT> builds, the C<op_sibling> field has been renamed
2648 C<op_sibparent> and a new flag, C<op_moresib>, added. On the last op in a
2649 sibling chain, C<op_moresib> is false and C<op_sibparent> points to the
2650 parent (if any) rather than being C<NULL>.
2652 To make existing code work transparently whether using C<PERL_OP_PARENT>
2653 or not, a number of new macros and functions have been added that should
2654 be used, rather than directly manipulating C<op_sibling>.
2656 For the case of just reading C<op_sibling> to determine the next sibling,
2657 two new macros have been added. A simple scan through a sibling chain
2660 for (; kid->op_sibling; kid = kid->op_sibling) { ... }
2662 should now be written as:
2664 for (; OpHAS_SIBLING(kid); kid = OpSIBLING(kid)) { ... }
2666 For altering optrees, a general-purpose function C<op_sibling_splice()>
2667 has been added, which allows for manipulation of a chain of sibling ops.
2668 By analogy with the Perl function C<splice()>, it allows you to cut out
2669 zero or more ops from a sibling chain and replace them with zero or more
2670 new ops. It transparently handles all the updating of sibling, parent,
2671 op_last pointers etc.
2673 If you need to manipulate ops at a lower level, then three new macros,
2674 C<OpMORESIB_set>, C<OpLASTSIB_set> and C<OpMAYBESIB_set> are intended to
2675 be a low-level portable way to set C<op_sibling> / C<op_sibparent> while
2676 also updating C<op_moresib>. The first sets the sibling pointer to a new
2677 sibling, the second makes the op the last sibling, and the third
2678 conditionally does the first or second action. Note that unlike
2679 C<op_sibling_splice()> these macros won't maintain consistency in the
2680 parent at the same time (e.g. by updating C<op_first> and C<op_last> where
2683 A C-level C<Perl_op_parent()> function and a Perl-level C<B::OP::parent()>
2684 method have been added. The C function only exists under
2685 C<PERL_OP_PARENT> builds (using it is build-time error on vanilla
2686 perls). C<B::OP::parent()> exists always, but on a vanilla build it
2687 always returns C<NULL>. Under C<PERL_OP_PARENT>, they return the parent
2688 of the current op, if any. The variable C<$B::OP::does_parent> allows you
2689 to determine whether C<B> supports retrieving an op's parent.
2691 C<PERL_OP_PARENT> was introduced in 5.21.2, but the interface was
2692 changed considerably in 5.21.11. If you updated your code before the
2693 5.21.11 changes, it may require further revision. The main changes after
2700 The C<OP_SIBLING> and C<OP_HAS_SIBLING> macros have been renamed
2701 C<OpSIBLING> and C<OpHAS_SIBLING> for consistency with other
2702 op-manipulating macros.
2706 The C<op_lastsib> field has been renamed C<op_moresib>, and its meaning
2711 The macro C<OpSIBLING_set> has been removed, and has been superseded by
2712 C<OpMORESIB_set> et al.
2716 The C<op_sibling_splice()> function now accepts a null C<parent> argument
2717 where the splicing doesn't affect the first or last ops in the sibling
2724 Macros have been created to allow XS code to better manipulate the POSIX locale
2725 category C<LC_NUMERIC>. See L<perlapi/Locale-related functions and macros>.
2729 The previous C<atoi> et al replacement function, C<grok_atou>, has now been
2730 superseded by C<grok_atoUV>. See L<perlclib> for details.
2734 A new function, C<Perl_sv_get_backrefs()>, has been added which allows you
2735 retrieve the weak references, if any, which point at an SV.
2739 The C<screaminstr()> function has been removed. Although marked as
2740 public API, it was undocumented and had no usage in CPAN modules. Calling
2741 it has been fatal since 5.17.0.
2745 The C<newDEFSVOP()>, C<block_start()>, C<block_end()> and C<intro_my()>
2746 functions have been added to the API.
2750 The internal C<convert> function in F<op.c> has been renamed
2751 C<op_convert_list> and added to the API.
2755 The C<sv_magic()> function no longer forbids "ext" magic on read-only
2756 values. After all, perl can't know whether the custom magic will modify
2758 L<[perl #123103]|https://rt.perl.org/Ticket/Display.html?id=123103>.
2762 Accessing L<perlapi/CvPADLIST> on an XSUB is now forbidden.
2764 The C<CvPADLIST> field has been reused for a different internal purpose
2765 for XSUBs. So in particular, you can no longer rely on it being NULL as a
2766 test of whether a CV is an XSUB. Use C<CvISXSUB()> instead.
2770 SVs of type C<SVt_NV> are now sometimes bodiless when the build
2771 configuration and platform allow it: specifically, when C<< sizeof(NV) <=
2772 sizeof(IV) >>. "Bodiless" means that the NV value is stored directly in
2773 the head of an SV, without requiring a separate body to be allocated. This
2774 trick has already been used for IVs since 5.9.2 (though in the case of
2775 IVs, it is always used, regardless of platform and build configuration).
2779 The C<$DB::single>, C<$DB::signal> and C<$DB::trace> variables now have set- and
2780 get-magic that stores their values as IVs, and those IVs are used when
2781 testing their values in C<pp_dbstate()>. This prevents perl from
2782 recursing infinitely if an overloaded object is assigned to any of those
2784 L<[perl #122445]|https://rt.perl.org/Ticket/Display.html?id=122445>.
2788 C<Perl_tmps_grow()>, which is marked as public API but is undocumented, has
2789 been removed from the public API. This change does not affect XS code that
2790 uses the C<EXTEND_MORTAL> macro to pre-extend the mortal stack.
2794 Perl's internals no longer sets or uses the C<SVs_PADMY> flag.
2795 C<SvPADMY()> now returns a true value for anything not marked C<PADTMP>
2796 and C<SVs_PADMY> is now defined as 0.
2800 The macros C<SETsv> and C<SETsvUN> have been removed. They were no longer used
2801 in the core since commit 6f1401dc2a five years ago, and have not been
2802 found present on CPAN.
2806 The C<< SvFAKE >> bit (unused on HVs) got informally reserved by
2807 David Mitchell for future work on vtables.
2811 The C<sv_catpvn_flags()> function accepts C<SV_CATBYTES> and C<SV_CATUTF8>
2812 flags, which specify whether the appended string is bytes or UTF-8,
2813 respectively. (These flags have in fact been present since 5.16.0, but
2814 were formerly not regarded as part of the API.)
2818 A new opcode class, C<< METHOP >>, has been introduced. It holds
2819 information used at runtime for improve the performance
2820 of class/object method calls.
2822 C<< OP_METHOD >> and C<< OP_METHOD_NAMED >> have changed from being
2823 C<< UNOP/SVOP >> to being C<< METHOP >>.
2827 C<cv_name()> is a new API function that can be passed a CV or GV. It
2828 returns an SV containing the name of the subroutine, for use in
2831 L<[perl #116735]|https://rt.perl.org/Ticket/Display.html?id=116735>
2832 L<[perl #120441]|https://rt.perl.org/Ticket/Display.html?id=120441>
2836 C<cv_set_call_checker_flags()> is a new API function that works like
2837 C<cv_set_call_checker()>, except that it allows the caller to specify
2838 whether the call checker requires a full GV for reporting the subroutine's
2839 name, or whether it could be passed a CV instead. Whatever value is
2840 passed will be acceptable to C<cv_name()>. C<cv_set_call_checker()>
2841 guarantees there will be a GV, but it may have to create one on the fly,
2842 which is inefficient.
2843 L<[perl #116735]|https://rt.perl.org/Ticket/Display.html?id=116735>
2847 C<CvGV> (which is not part of the API) is now a more complex macro, which may
2848 call a function and reify a GV. For those cases where it has been used as a
2849 boolean, C<CvHASGV> has been added, which will return true for CVs that
2850 notionally have GVs, but without reifying the GV. C<CvGV> also returns a GV
2851 now for lexical subs.
2852 L<[perl #120441]|https://rt.perl.org/Ticket/Display.html?id=120441>
2856 The L<perlapi/sync_locale> function has been added to the public API.
2857 Changing the program's locale should be avoided by XS code. Nevertheless,
2858 certain non-Perl libraries called from XS need to do so, such as C<Gtk>.
2859 When this happens, Perl needs to be told that the locale has
2860 changed. Use this function to do so, before returning to Perl.
2864 The defines and labels for the flags in the C<op_private> field of OPs are now
2865 auto-generated from data in F<regen/op_private>. The noticeable effect of this
2866 is that some of the flag output of C<Concise> might differ slightly, and the
2867 flag output of S<C<perl -Dx>> may differ considerably (they both use the same set
2868 of labels now). Also, debugging builds now have a new assertion in
2869 C<op_free()> to ensure that the op doesn't have any unrecognized flags set in
2874 The deprecated variable C<PL_sv_objcount> has been removed.
2878 Perl now tries to keep the locale category C<LC_NUMERIC> set to "C"
2879 except around operations that need it to be set to the program's
2880 underlying locale. This protects the many XS modules that cannot cope
2881 with the decimal radix character not being a dot. Prior to this
2882 release, Perl initialized this category to "C", but a call to
2883 C<POSIX::setlocale()> would change it. Now such a call will change the
2884 underlying locale of the C<LC_NUMERIC> category for the program, but the
2885 locale exposed to XS code will remain "C". There are new macros
2886 to manipulate the LC_NUMERIC locale, including
2887 C<STORE_LC_NUMERIC_SET_TO_NEEDED> and
2888 C<STORE_LC_NUMERIC_FORCE_TO_UNDERLYING>.
2889 See L<perlapi/Locale-related functions and macros>.
2893 A new macro L<C<isUTF8_CHAR>|perlapi/isUTF8_CHAR> has been written which
2894 efficiently determines if the string given by its parameters begins
2895 with a well-formed UTF-8 encoded character.
2899 The following private API functions had their context parameter removed:
2900 C<Perl_cast_ulong>, C<Perl_cast_i32>, C<Perl_cast_iv>, C<Perl_cast_uv>,
2901 C<Perl_cv_const_sv>, C<Perl_mg_find>, C<Perl_mg_findext>, C<Perl_mg_magical>,
2902 C<Perl_mini_mktime>, C<Perl_my_dirfd>, C<Perl_sv_backoff>, C<Perl_utf8_hop>.
2904 Note that the prefix-less versions of those functions that are part of the
2905 public API, such as C<cast_i32()>, remain unaffected.
2909 The C<PADNAME> and C<PADNAMELIST> types are now separate types, and no
2910 longer simply aliases for SV and AV.
2911 L<[perl #123223]|https://rt.perl.org/Ticket/Display.html?id=123223>.
2915 Pad names are now always UTF-8. The C<PadnameUTF8> macro always returns
2916 true. Previously, this was effectively the case already, but any support
2917 for two different internal representations of pad names has now been
2922 A new op class, C<UNOP_AUX>, has been added. This is a subclass of
2923 C<UNOP> with an C<op_aux> field added, which points to an array of unions
2924 of C<UV>, C<SV*> etc. It is intended for where an op needs to store more data
2925 than a simple C<op_sv> or whatever. Currently the only op of this type is
2926 C<OP_MULTIDEREF> (see below).
2930 A new op has been added, C<OP_MULTIDEREF>, which performs one or more
2931 nested array and hash lookups where the key is a constant or simple
2932 variable. For example the expression C<$a[0]{$k}[$i]>, which previously
2933 involved ten C<rv2Xv>, C<Xelem>, C<gvsv> and C<const> ops is now performed
2934 by a single C<multideref> op. It can also handle C<local>, C<exists> and
2935 C<delete>. A non-simple index expression, such as C<[$i+1]> is still done
2936 using C<aelem>/C<helem>, and single-level array lookup with a small constant
2937 index is still done using C<aelemfast>.
2941 =head1 Selected Bug Fixes
2947 C<close> now sets C<$!>
2949 When an I/O error occurs, the fact that there has been an error is recorded
2950 in the handle. C<close> returns false for such a handle. Previously, the
2951 value of C<$!> would be untouched by C<close>, so the common convention of
2952 writing S<C<close $fh or die $!>> did not work reliably. Now the handle
2953 records the value of C<$!>, too, and C<close> restores it.
2957 C<no re> now can turn off everything that C<use re> enables
2959 Previously, running C<no re> would turn off only a few things. Now it
2960 can turn off all the enabled things. For example, the only way to
2961 stop debugging, once enabled, was to exit the enclosing block; that is
2966 C<pack("D", $x)> and C<pack("F", $x)> now zero the padding on x86 long
2967 double builds. Under some build options on GCC 4.8 and later, they used
2968 to either overwrite the zero-initialized padding, or bypass the
2969 initialized buffer entirely. This caused F<op/pack.t> to fail.
2970 L<[perl #123971]|https://rt.perl.org/Ticket/Display.html?id=123971>
2974 Extending an array cloned from a parent thread could result in "Modification of
2975 a read-only value attempted" errors when attempting to modify the new elements.
2976 L<[perl #124127]|https://rt.perl.org/Ticket/Display.html?id=124127>
2980 An assertion failure and subsequent crash with C<< *x=<y> >> has been fixed.
2981 L<[perl #123790]|https://rt.perl.org/Ticket/Display.html?id=123790>
2985 A possible crashing/looping bug related to compiling lexical subs has been
2987 L<[perl #124099]|https://rt.perl.org/Ticket/Display.html?id=124099>
2991 UTF-8 now works correctly in function names, in unquoted HERE-document
2992 terminators, and in variable names used as array indexes.
2993 L<[perl #124113]|https://rt.perl.org/Ticket/Display.html?id=124113>
2997 Repeated global pattern matches in scalar context on large tainted strings were
2998 exponentially slow depending on the current match position in the string.
2999 L<[perl #123202]|https://rt.perl.org/Ticket/Display.html?id=123202>
3003 Various crashes due to the parser getting confused by syntax errors have been
3005 L<[perl #123801]|https://rt.perl.org/Ticket/Display.html?id=123801>
3006 L<[perl #123802]|https://rt.perl.org/Ticket/Display.html?id=123802>
3007 L<[perl #123955]|https://rt.perl.org/Ticket/Display.html?id=123955>
3008 L<[perl #123995]|https://rt.perl.org/Ticket/Display.html?id=123995>
3012 C<split> in the scope of lexical C<$_> has been fixed not to fail assertions.
3013 L<[perl #123763]|https://rt.perl.org/Ticket/Display.html?id=123763>
3017 C<my $x : attr> syntax inside various list operators no longer fails
3019 L<[perl #123817]|https://rt.perl.org/Ticket/Display.html?id=123817>
3023 An C<@> sign in quotes followed by a non-ASCII digit (which is not a valid
3024 identifier) would cause the parser to crash, instead of simply trying the
3025 C<@> as literal. This has been fixed.
3026 L<[perl #123963]|https://rt.perl.org/Ticket/Display.html?id=123963>
3030 C<*bar::=*foo::=*glob_with_hash> has been crashing since Perl 5.14, but no
3032 L<[perl #123847]|https://rt.perl.org/Ticket/Display.html?id=123847>
3036 C<foreach> in scalar context was not pushing an item on to the stack, resulting
3037 in bugs. (S<C<print 4, scalar do { foreach(@x){} } + 1>> would print 5.)
3038 It has been fixed to return C<undef>.
3039 L<[perl #124004]|https://rt.perl.org/Ticket/Display.html?id=124004>
3043 Several cases of data used to store environment variable contents in core C
3044 code being potentially overwritten before being used have been fixed.
3045 L<[perl #123748]|https://rt.perl.org/Ticket/Display.html?id=123748>
3049 Some patterns starting with C</.*..../> matched against long strings have
3050 been slow since v5.8, and some of the form C</.*..../i> have been slow
3051 since v5.18. They are now all fast again.
3052 L<[perl #123743]|https://rt.perl.org/Ticket/Display.html?id=123743>.
3056 The original visible value of C<$/> is now preserved when it is set to
3057 an invalid value. Previously if you set C<$/> to a reference to an
3058 array, for example, perl would produce a runtime error and not set
3059 C<PL_rs>, but perl code that checked C<$/> would see the array
3061 L<[perl #123218]|https://rt.perl.org/Ticket/Display.html?id=123218>.
3065 In a regular expression pattern, a POSIX class, like C<[:ascii:]>, must
3066 be inside a bracketed character class, like C<qr/[[:ascii:]]/>. A
3067 warning is issued when something looking like a POSIX class is not
3068 inside a bracketed class. That warning wasn't getting generated when
3069 the POSIX class was negated: C<[:^ascii:]>. This is now fixed.
3073 Perl 5.14.0 introduced a bug whereby S<C<eval { LABEL: }>> would crash. This
3075 L<[perl #123652]|https://rt.perl.org/Ticket/Display.html?id=123652>.
3079 Various crashes due to the parser getting confused by syntax errors have
3081 L<[perl #123617]|https://rt.perl.org/Ticket/Display.html?id=123617>.
3082 L<[perl #123737]|https://rt.perl.org/Ticket/Display.html?id=123737>.
3083 L<[perl #123753]|https://rt.perl.org/Ticket/Display.html?id=123753>.
3084 L<[perl #123677]|https://rt.perl.org/Ticket/Display.html?id=123677>.
3088 Code like C</$a[/> used to read the next line of input and treat it as
3089 though it came immediately after the opening bracket. Some invalid code
3090 consequently would parse and run, but some code caused crashes, so this is
3092 L<[perl #123712]|https://rt.perl.org/Ticket/Display.html?id=123712>.
3096 Fix argument underflow for C<pack>.
3097 L<[perl #123874]|https://rt.perl.org/Ticket/Display.html?id=123874>.
3101 Fix handling of non-strict C<\x{}>. Now C<\x{}> is equivalent to C<\x{0}>
3102 instead of faulting.
3106 C<stat -t> is now no longer treated as stackable, just like C<-t stat>.
3107 L<[perl #123816]|https://rt.perl.org/Ticket/Display.html?id=123816>.
3111 The following no longer causes a SEGV: C<qr{x+(y(?0))*}>.
3115 Fixed infinite loop in parsing backrefs in regexp patterns.
3119 Several minor bug fixes in behavior of Infinity and NaN, including
3120 warnings when stringifying Infinity-like or NaN-like strings. For example,
3121 "NaNcy" doesn't numify to NaN anymore.
3125 A bug in regular expression patterns that could lead to segfaults and
3126 other crashes has been fixed. This occurred only in patterns compiled
3127 with C</i> while taking into account the current POSIX locale (which usually
3128 means they have to be compiled within the scope of C<S<use locale>>),
3129 and there must be a string of at least 128 consecutive bytes to match.
3130 L<[perl #123539]|https://rt.perl.org/Ticket/Display.html?id=123539>.
3134 C<s///g> now works on very long strings (where there are more than 2
3135 billion iterations) instead of dying with 'Substitution loop'.
3136 L<[perl #103260]|https://rt.perl.org/Ticket/Display.html?id=103260>.
3137 L<[perl #123071]|https://rt.perl.org/Ticket/Display.html?id=123071>.
3141 C<gmtime> no longer crashes with not-a-number values.
3142 L<[perl #123495]|https://rt.perl.org/Ticket/Display.html?id=123495>.
3146 C<\()> (a reference to an empty list), and C<y///> with lexical C<$_> in
3147 scope, could both do a bad write past the end of the stack. They have
3148 both been fixed to extend the stack first.
3152 C<prototype()> with no arguments used to read the previous item on the
3153 stack, so S<C<print "foo", prototype()>> would print foo's prototype.
3154 It has been fixed to infer C<$_> instead.
3155 L<[perl #123514]|https://rt.perl.org/Ticket/Display.html?id=123514>.
3159 Some cases of lexical state subs declared inside predeclared subs could
3160 crash, for example when evalling a string including the name of an outer
3161 variable, but no longer do.
3165 Some cases of nested lexical state subs inside anonymous subs could cause
3166 'Bizarre copy' errors or possibly even crashes.
3170 When trying to emit warnings, perl's default debugger (F<perl5db.pl>) was
3171 sometimes giving 'Undefined subroutine &DB::db_warn called' instead. This
3172 bug, which started to occur in Perl 5.18, has been fixed.
3173 L<[perl #123553]|https://rt.perl.org/Ticket/Display.html?id=123553>.
3177 Certain syntax errors in substitutions, such as C<< s/${<>{})// >>, would
3178 crash, and had done so since Perl 5.10. (In some cases the crash did not
3179 start happening till 5.16.) The crash has, of course, been fixed.
3180 L<[perl #123542]|https://rt.perl.org/Ticket/Display.html?id=123542>.
3184 Fix a couple of string grow size calculation overflows; in particular,
3185 a repeat expression like S<C<33 x ~3>> could cause a large buffer
3186 overflow since the new output buffer size was not correctly handled by
3187 C<SvGROW()>. An expression like this now properly produces a memory wrap
3189 L<[perl #123554]|https://rt.perl.org/Ticket/Display.html?id=123554>.
3193 C<< formline("@...", "a"); >> would crash. The C<FF_CHECKNL> case in
3194 pp_formline() didn't set the pointer used to mark the chop position,
3195 which led to the C<FF_MORE> case crashing with a segmentation fault.
3196 This has been fixed.
3197 L<[perl #123538]|https://rt.perl.org/Ticket/Display.html?id=123538>.
3201 A possible buffer overrun and crash when parsing a literal pattern during
3202 regular expression compilation has been fixed.
3203 L<[perl #123604]|https://rt.perl.org/Ticket/Display.html?id=123604>.
3207 C<fchmod()> and C<futimes()> now set C<$!> when they fail due to being
3208 passed a closed file handle.
3209 L<[perl #122703]|https://rt.perl.org/Ticket/Display.html?id=122703>.
3213 C<op_free()> and C<scalarvoid()> no longer crash due to a stack overflow
3214 when freeing a deeply recursive op tree.
3215 L<[perl #108276]|https://rt.perl.org/Ticket/Display.html?id=108276>.
3219 In Perl 5.20.0, C<$^N> accidentally had the internal UTF-8 flag turned off
3220 if accessed from a code block within a regular expression, effectively
3221 UTF-8-encoding the value. This has been fixed.
3222 L<[perl #123135]|https://rt.perl.org/Ticket/Display.html?id=123135>.
3226 A failed C<semctl> call no longer overwrites existing items on the stack,
3227 which means that C<(semctl(-1,0,0,0))[0]> no longer gives an
3228 "uninitialized" warning.
3232 C<else{foo()}> with no space before C<foo> is now better at assigning the
3233 right line number to that statement.
3234 L<[perl #122695]|https://rt.perl.org/Ticket/Display.html?id=122695>.
3238 Sometimes the assignment in C<@array = split> gets optimised so that C<split>
3239 itself writes directly to the array. This caused a bug, preventing this
3240 assignment from being used in lvalue context. So
3241 C<(@a=split//,"foo")=bar()> was an error. (This bug probably goes back to
3242 Perl 3, when the optimisation was added.) It has now been fixed.
3243 L<[perl #123057]|https://rt.perl.org/Ticket/Display.html?id=123057>.
3247 When an argument list fails the checks specified by a subroutine
3248 signature (which is still an experimental feature), the resulting error
3249 messages now give the file and line number of the caller, not of the
3251 L<[perl #121374]|https://rt.perl.org/Ticket/Display.html?id=121374>.
3255 The flip-flop operators (C<..> and C<...> in scalar context) used to maintain
3256 a separate state for each recursion level (the number of times the
3257 enclosing sub was called recursively), contrary to the documentation. Now
3258 each closure has one internal state for each flip-flop.
3259 L<[perl #122829]|https://rt.perl.org/Ticket/Display.html?id=122829>.
3263 The flip-flop operator (C<..> in scalar context) would return the same
3264 scalar each time, unless the containing subroutine was called recursively.
3265 Now it always returns a new scalar.
3266 L<[perl #122829]|https://rt.perl.org/Ticket/Display.html?id=122829>.
3270 C<use>, C<no>, statement labels, special blocks (C<BEGIN>) and pod are now
3271 permitted as the first thing in a C<map> or C<grep> block, the block after
3272 C<print> or C<say> (or other functions) returning a handle, and within
3273 C<${...}>, C<@{...}>, etc.
3274 L<[perl #122782]|https://rt.perl.org/Ticket/Display.html?id=122782>.
3278 The repetition operator C<x> now propagates lvalue context to its left-hand
3279 argument when used in contexts like C<foreach>. That allows
3280 S<C<for(($#that_array)x2) { ... }>> to work as expected if the loop modifies
3285 C<(...) x ...> in scalar context used to corrupt the stack if one operand
3286 was an object with "x" overloading, causing erratic behaviour.
3287 L<[perl #121827]|https://rt.perl.org/Ticket/Display.html?id=121827>.
3291 Assignment to a lexical scalar is often optimised away; for example in
3292 C<my $x; $x = $y + $z>, the assign operator is optimised away and the add
3293 operator writes its result directly to C<$x>. Various bugs related to
3294 this optimisation have been fixed. Certain operators on the right-hand
3295 side would sometimes fail to assign the value at all or assign the wrong
3296 value, or would call STORE twice or not at all on tied variables. The
3297 operators affected were C<$foo++>, C<$foo-->, and C<-$foo> under C<use
3298 integer>, C<chomp>, C<chr> and C<setpgrp>.
3302 List assignments were sometimes buggy if the same scalar ended up on both
3303 sides of the assignment due to use of C<tied>, C<values> or C<each>. The
3304 result would be the wrong value getting assigned.
3308 C<setpgrp($nonzero)> (with one argument) was accidentally changed in 5.16
3309 to mean C<setpgrp(0)>. This has been fixed.
3313 C<__SUB__> could return the wrong value or even corrupt memory under the
3314 debugger (the C<-d> switch) and in subs containing C<eval $string>.
3318 When S<C<sub () { $var }>> becomes inlinable, it now returns a different
3319 scalar each time, just as a non-inlinable sub would, though Perl still
3320 optimises the copy away in cases where it would make no observable
3325 S<C<my sub f () { $var }>> and S<C<sub () : attr { $var }>> are no longer
3326 eligible for inlining. The former would crash; the latter would just
3327 throw the attributes away. An exception is made for the little-known
3328 ":method" attribute, which does nothing much.
3332 Inlining of subs with an empty prototype is now more consistent than
3333 before. Previously, a sub with multiple statements, of which all but the last
3334 were optimised away, would be inlinable only if it were an anonymous sub
3335 containing a string C<eval> or C<state> declaration or closing over an
3336 outer lexical variable (or any anonymous sub under the debugger). Now any
3337 sub that gets folded to a single constant after statements have been
3338 optimised away is eligible for inlining. This applies to things like C<sub
3339 () { jabber() if DEBUG; 42 }>.
3341 Some subroutines with an explicit C<return> were being made inlinable,
3342 contrary to the documentation, Now C<return> always prevents inlining.
3346 On some systems, such as VMS, C<crypt> can return a non-ASCII string. If a
3347 scalar assigned to had contained a UTF-8 string previously, then C<crypt>
3348 would not turn off the UTF-8 flag, thus corrupting the return value. This
3349 would happen with S<C<$lexical = crypt ...>>.
3353 C<crypt> no longer calls C<FETCH> twice on a tied first argument.
3357 An unterminated here-doc on the last line of a quote-like operator
3358 (C<qq[${ <<END }]>, C</(?{ <<END })/>) no longer causes a double free. It
3359 started doing so in 5.18.
3363 C<index()> and C<rindex()> no longer crash when used on strings over 2GB in
3365 L<[perl #121562]|https://rt.perl.org/Ticket/Display.html?id=121562>.
3369 A small previously intentional memory leak in PERL_SYS_INIT/PERL_SYS_INIT3 on
3370 Win32 builds was fixed. This might affect embedders who repeatedly create and
3371 destroy perl engines within the same process.
3375 C<POSIX::localeconv()> now returns the data for the program's underlying
3376 locale even when called from outside the scope of S<C<use locale>>.
3380 C<POSIX::localeconv()> now works properly on platforms which don't have
3381 C<LC_NUMERIC> and/or C<LC_MONETARY>, or for which Perl has been compiled
3382 to disregard either or both of these locale categories. In such
3383 circumstances, there are now no entries for the corresponding values in
3384 the hash returned by C<localeconv()>.
3388 C<POSIX::localeconv()> now marks appropriately the values it returns as
3389 UTF-8 or not. Previously they were always returned as bytes, even if
3390 they were supposed to be encoded as UTF-8.
3394 On Microsoft Windows, within the scope of C<S<use locale>>, the following
3395 POSIX character classes gave results for many locales that did not
3396 conform to the POSIX standard:
3409 This was because the underlying Microsoft implementation does not
3410 follow the standard. Perl now takes special precautions to correct for
3415 Many issues have been detected by L<Coverity|http://www.coverity.com/> and
3420 C<system()> and friends should now work properly on more Android builds.
3422 Due to an oversight, the value specified through C<-Dtargetsh> to F<Configure>
3423 would end up being ignored by some of the build process. This caused perls
3424 cross-compiled for Android to end up with defective versions of C<system()>,
3425 C<exec()> and backticks: the commands would end up looking for C</bin/sh>
3426 instead of C</system/bin/sh>, and so would fail for the vast majority
3427 of devices, leaving C<$!> as C<ENOENT>.
3431 C<qr(...\(...\)...)>,
3432 C<qr[...\[...\]...]>,
3434 C<qr{...\{...\}...}>
3435 now work. Previously it was impossible to escape these three
3436 left-characters with a backslash within a regular expression pattern
3437 where otherwise they would be considered metacharacters, and the pattern
3438 opening delimiter was the character, and the closing delimiter was its
3443 C<< s///e >> on tainted UTF-8 strings corrupted C<< pos() >>. This bug,
3444 introduced in 5.20, is now fixed.
3445 L<[perl #122148]|https://rt.perl.org/Ticket/Display.html?id=122148>.
3449 A non-word boundary in a regular expression (C<< \B >>) did not always
3450 match the end of the string; in particular C<< q{} =~ /\B/ >> did not
3451 match. This bug, introduced in perl 5.14, is now fixed.
3452 L<[perl #122090]|https://rt.perl.org/Ticket/Display.html?id=122090>.
3456 C<< " P" =~ /(?=.*P)P/ >> should match, but did not. This is now fixed.
3457 L<[perl #122171]|https://rt.perl.org/Ticket/Display.html?id=122171>.
3461 Failing to compile C<use Foo> in an C<eval> could leave a spurious
3462 C<BEGIN> subroutine definition, which would produce a "Subroutine
3463 BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
3465 L<[perl #122107]|https://rt.perl.org/Ticket/Display.html?id=122107>.
3469 C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
3470 begin with an opening brace.
3471 L<[perl #46947]|https://rt.perl.org/Ticket/Display.html?id=46947>.
3475 External libraries and Perl may have different ideas of what the locale is.
3476 This is problematic when parsing version strings if the locale's numeric
3477 separator has been changed. Version parsing has been patched to ensure
3478 it handles the locales correctly.
3479 L<[perl #121930]|https://rt.perl.org/Ticket/Display.html?id=121930>.
3483 A bug has been fixed where zero-length assertions and code blocks inside of a
3484 regex could cause C<pos> to see an incorrect value.
3485 L<[perl #122460]|https://rt.perl.org/Ticket/Display.html?id=122460>.
3489 Dereferencing of constants now works correctly for typeglob constants. Previously
3490 the glob was stringified and its name looked up. Now the glob itself is used.
3491 L<[perl #69456]|https://rt.perl.org/Ticket/Display.html?id=69456>
3495 When parsing a sigil (C<$> C<@> C<%> C<&)> followed by braces,
3497 longer tries to guess whether it is a block or a hash constructor (causing a
3498 syntax error when it guesses the latter), since it can only be a block.
3502 S<C<undef $reference>> now frees the referent immediately, instead of hanging on
3503 to it until the next statement.
3504 L<[perl #122556]|https://rt.perl.org/Ticket/Display.html?id=122556>
3508 Various cases where the name of a sub is used (autoload, overloading, error
3509 messages) used to crash for lexical subs, but have been fixed.
3513 Bareword lookup now tries to avoid vivifying packages if it turns out the
3514 bareword is not going to be a subroutine name.
3518 Compilation of anonymous constants (e.g., C<sub () { 3 }>) no longer deletes
3519 any subroutine named C<__ANON__> in the current package. Not only was
3520 C<*__ANON__{CODE}> cleared, but there was a memory leak, too. This bug goes
3525 Stub declarations like C<sub f;> and C<sub f ();> no longer wipe out constants
3526 of the same name declared by C<use constant>. This bug was introduced in Perl
3531 C<qr/[\N{named sequence}]/> now works properly in many instances.
3534 known to C<\N{...}> refer to a sequence of multiple characters, instead of the
3535 usual single character. Bracketed character classes generally only match
3536 single characters, but now special handling has been added so that they can
3537 match named sequences, but not if the class is inverted or the sequence is
3538 specified as the beginning or end of a range. In these cases, the only
3539 behavior change from before is a slight rewording of the fatal error message
3540 given when this class is part of a C<?[...])> construct. When the C<[...]>
3541 stands alone, the same non-fatal warning as before is raised, and only the
3542 first character in the sequence is used, again just as before.
3546 Tainted constants evaluated at compile time no longer cause unrelated
3547 statements to become tainted.
3548 L<[perl #122669]|https://rt.perl.org/Ticket/Display.html?id=122669>
3552 S<C<open $$fh, ...>>, which vivifies a handle with a name like
3553 C<"main::_GEN_0">, was not giving the handle the right reference count, so
3554 a double free could happen.
3558 When deciding that a bareword was a method name, the parser would get confused
3559 if an C<our> sub with the same name existed, and look up the method in the
3560 package of the C<our> sub, instead of the package of the invocant.
3564 The parser no longer gets confused by C<\U=> within a double-quoted string. It
3565 used to produce a syntax error, but now compiles it correctly.
3566 L<[perl #80368]|https://rt.perl.org/Ticket/Display.html?id=80368>
3570 It has always been the intention for the C<-B> and C<-T> file test operators to
3571 treat UTF-8 encoded files as text. (L<perlfunc|perlfunc/-X FILEHANDLE> has
3572 been updated to say this.) Previously, it was possible for some files to be
3573 considered UTF-8 that actually weren't valid UTF-8. This is now fixed. The
3574 operators now work on EBCDIC platforms as well.
3578 Under some conditions warning messages raised during regular expression pattern
3579 compilation were being output more than once. This has now been fixed.
3583 Perl 5.20.0 introduced a regression in which a UTF-8 encoded regular
3584 expression pattern that contains a single ASCII lowercase letter did not
3585 match its uppercase counterpart. That has been fixed in both 5.20.1 and
3587 L<[perl #122655]|https://rt.perl.org/Ticket/Display.html?id=122655>
3591 Constant folding could incorrectly suppress warnings if lexical warnings
3592 (C<use warnings> or C<no warnings>) were not in effect and C<$^W> were
3593 false at compile time and true at run time.
3597 Loading Unicode tables during a regular expression match could cause assertion
3598 failures under debugging builds if the previous match used the very same
3600 L<[perl #122747]|https://rt.perl.org/Ticket/Display.html?id=122747>
3604 Thread cloning used to work incorrectly for lexical subs, possibly causing
3605 crashes or double frees on exit.
3609 Since Perl 5.14.0, deleting C<$SomePackage::{__ANON__}> and then undefining an
3610 anonymous subroutine could corrupt things internally, resulting in
3611 L<Devel::Peek> crashing or L<B.pm|B> giving nonsensical data. This has been
3616 S<C<(caller $n)[3]>> now reports names of lexical subs, instead of
3617 treating them as C<"(unknown)">.
3621 C<sort subname LIST> now supports using a lexical sub as the comparison
3626 Aliasing (e.g., via S<C<*x = *y>>) could confuse list assignments that mention the
3627 two names for the same variable on either side, causing wrong values to be
3629 L<[perl #15667]|https://rt.perl.org/Ticket/Display.html?id=15667>
3633 Long here-doc terminators could cause a bad read on short lines of input. This
3634 has been fixed. It is doubtful that any crash could have occurred. This bug
3635 goes back to when here-docs were introduced in Perl 3.000 twenty-five years
3640 An optimization in C<split> to treat S<C<split /^/>> like S<C<split /^/m>> had the
3641 unfortunate side-effect of also treating S<C<split /\A/>> like S<C<split /^/m>>,
3642 which it should not. This has been fixed. (Note, however, that S<C<split /^x/>>
3643 does not behave like S<C<split /^x/m>>, which is also considered to be a bug and
3644 will be fixed in a future version.)
3645 L<[perl #122761]|https://rt.perl.org/Ticket/Display.html?id=122761>
3649 The little-known S<C<my Class $var>> syntax (see L<fields> and L<attributes>)
3650 could get confused in the scope of C<use utf8> if C<Class> were a constant
3651 whose value contained Latin-1 characters.
3655 Locking and unlocking values via L<Hash::Util> or C<Internals::SvREADONLY>
3656 no longer has any effect on values that were read-only to begin with.
3657 Previously, unlocking such values could result in crashes, hangs or
3658 other erratic behaviour.
3662 Some unterminated C<(?(...)...)> constructs in regular expressions would
3663 either crash or give erroneous error messages. C</(?(1)/> is one such
3668 S<C<pack "w", $tied>> no longer calls FETCH twice.
3672 List assignments like S<C<($x, $z) = (1, $y)>> now work correctly if C<$x> and
3673 C<$y> have been aliased by C<foreach>.
3677 Some patterns including code blocks with syntax errors, such as
3678 S<C</ (?{(^{})/>>, would hang or fail assertions on debugging builds. Now
3679 they produce errors.
3683 An assertion failure when parsing C<sort> with debugging enabled has been
3685 L<[perl #122771]|https://rt.perl.org/Ticket/Display.html?id=122771>.
3689 S<C<*a = *b; @a = split //, $b[1]>> could do a bad read and produce junk
3694 In S<C<() = @array = split>>, the S<C<() =>> at the beginning no longer confuses
3695 the optimizer into assuming a limit of 1.
3699 Fatal warnings no longer prevent the output of syntax errors.
3700 L<[perl #122966]|https://rt.perl.org/Ticket/Display.html?id=122966>.
3704 Fixed a NaN double-to-long-double conversion error on VMS. For quiet NaNs
3705 (and only on Itanium, not Alpha) negative infinity instead of NaN was
3710 Fixed the issue that caused C<< make distclean >> to incorrectly leave some
3712 L<[perl #122820]|https://rt.perl.org/Ticket/Display.html?id=122820>.
3716 AIX now sets the length in C<< getsockopt >> correctly.
3717 L<[perl #120835]|https://rt.perl.org/Ticket/Display.html?id=120835>.
3718 L<[cpan #91183]|https://rt.cpan.org/Ticket/Display.html?id=91183>.
3719 L<[cpan #85570]|https://rt.cpan.org/Ticket/Display.html?id=85570>.
3723 The optimization phase of a regexp compilation could run "forever" and
3724 exhaust all memory under certain circumstances; now fixed.
3725 L<[perl #122283]|https://rt.perl.org/Ticket/Display.html?id=122283>.
3729 The test script F<< t/op/crypt.t >> now uses the SHA-256 algorithm if the
3730 default one is disabled, rather than giving failures.
3731 L<[perl #121591]|https://rt.perl.org/Ticket/Display.html?id=121591>.
3735 Fixed an off-by-one error when setting the size of a shared array.
3736 L<[perl #122950]|https://rt.perl.org/Ticket/Display.html?id=122950>.
3740 Fixed a bug that could cause perl to enter an infinite loop during
3741 compilation. In particular, a C<while(1)> within a sublist, e.g.
3743 sub foo { () = ($a, my $b, ($c, do { while(1) {} })) }
3745 The bug was introduced in 5.20.0
3746 L<[perl #122995]|https://rt.perl.org/Ticket/Display.html?id=122995>.
3750 On Win32, if a variable was C<local>-ized in a pseudo-process that later
3751 forked, restoring the original value in the child pseudo-process caused
3752 memory corruption and a crash in the child pseudo-process (and therefore the
3754 L<[perl #40565]|https://rt.perl.org/Ticket/Display.html?id=40565>.
3758 Calling C<write> on a format with a C<^**> field could produce a panic
3759 in C<sv_chop()> if there were insufficient arguments or if the variable
3760 used to fill the field was empty.
3761 L<[perl #123245]|https://rt.perl.org/Ticket/Display.html?id=123245>.
3765 Non-ASCII lexical sub names now appear without trailing junk when they
3766 appear in error messages.
3770 The C<\@> subroutine prototype no longer flattens parenthesized arrays
3771 (taking a reference to each element), but takes a reference to the array
3773 L<[perl #47363]|https://rt.perl.org/Ticket/Display.html?id=47363>.
3777 A block containing nothing except a C-style C<for> loop could corrupt the
3778 stack, causing lists outside the block to lose elements or have elements
3779 overwritten. This could happen with C<map { for(...){...} } ...> and with
3780 lists containing C<do { for(...){...} }>.
3781 L<[perl #123286]|https://rt.perl.org/Ticket/Display.html?id=123286>.
3785 C<scalar()> now propagates lvalue context, so that
3786 S<C<for(scalar($#foo)) { ... }>> can modify C<$#foo> through C<$_>.
3790 C<qr/@array(?{block})/> no longer dies with "Bizarre copy of ARRAY".
3791 L<[perl #123344]|https://rt.perl.org/Ticket/Display.html?id=123344>.
3795 S<C<eval '$variable'>> in nested named subroutines would sometimes look up a
3796 global variable even with a lexical variable in scope.
3800 In perl 5.20.0, C<sort CORE::fake> where 'fake' is anything other than a
3801 keyword, started chopping off the last 6 characters and treating the result
3802 as a sort sub name. The previous behaviour of treating "CORE::fake" as a
3803 sort sub name has been restored.
3804 L<[perl #123410]|https://rt.perl.org/Ticket/Display.html?id=123410>.
3808 Outside of C<use utf8>, a single-character Latin-1 lexical variable is
3809 disallowed. The error message for it, "Can't use global C<$foo>...", was
3810 giving garbage instead of the variable name.
3814 C<readline> on a nonexistent handle was causing C<${^LAST_FH}> to produce a
3815 reference to an undefined scalar (or fail an assertion). Now
3816 C<${^LAST_FH}> ends up undefined.
3820 C<(...) x ...> in void context now applies scalar context to the left-hand
3821 argument, instead of the context the current sub was called in.
3822 L<[perl #123020]|https://rt.perl.org/Ticket/Display.html?id=123020>.
3826 =head1 Known Problems
3832 C<pack>-ing a NaN on a perl compiled with Visual C 6 does not behave properly,
3833 leading to a test failure in F<t/op/infnan.t>.
3834 L<[perl 125203]|https://rt.perl.org/Ticket/Display.html?id=125203>
3838 A goal is for Perl to be able to be recompiled to work reasonably well on any
3839 Unicode version. In Perl 5.22, though, the earliest such version is Unicode
3840 5.1 (current is 7.0).
3850 The C<cmp> (and hence C<sort>) operators do not necessarily give the
3851 correct results when both operands are UTF-EBCDIC encoded strings and
3852 there is a mixture of ASCII and/or control characters, along with other
3857 Ranges containing C<\N{...}> in the C<tr///> (and C<y///>)
3858 transliteration operators are treated differently than the equivalent
3859 ranges in regular expression patterns. They should, but don't, cause
3860 the values in the ranges to all be treated as Unicode code points, and
3861 not native ones. (L<perlre/Version 8 Regular Expressions> gives
3862 details as to how it should work.)
3866 Encode and encoding are mostly broken.
3870 Many CPAN modules that are shipped with core show failing tests.
3874 C<pack>/C<unpack> with C<"U0"> format may not work properly.
3880 The following modules are known to have test failures with this version of
3881 Perl. In many cases, patches have been submitted, so there will hopefully be
3888 L<B::Generate> version 1.50
3892 L<B::Utils> version 0.25
3896 L<Dancer> version 1.3130
3900 L<Data::Alias> version 1.18
3904 L<Data::Dump::Streamer> version 2.38
3908 L<Data::Util> version 0.63
3912 L<Devel::Spy> version 0.07
3916 L<invoker> version 0.34
3920 L<Lexical::Var> version 0.009
3924 L<LWP::ConsoleLogger> version 0.000018
3928 L<Mason> version 2.22
3932 L<NgxQueue> version 0.02
3936 L<Padre> version 1.00
3940 L<Parse::Keyword> 0.08
3948 Brian McCauley died on May 8, 2015. He was a frequent poster to Usenet, Perl
3949 Monks, and other Perl forums, and made several CPAN contributions under the
3950 nick NOBULL, including to the Perl FAQ. He attended almost every
3951 YAPC::Europe, and indeed, helped organise YAPC::Europe 2006 and the QA
3952 Hackathon 2009. His wit and his delight in intricate systems were
3953 particularly apparent in his love of board games; many Perl mongers will
3954 have fond memories of playing Fluxx and other games with Brian. He will be
3957 =head1 Acknowledgements
3959 Perl 5.22.0 represents approximately 12 months of development since Perl 5.20.0
3960 and contains approximately 590,000 lines of changes across 2,400 files from 94
3963 Excluding auto-generated files, documentation and release tools, there were
3964 approximately 370,000 lines of changes to 1,500 .pm, .t, .c and .h files.
3966 Perl continues to flourish into its third decade thanks to a vibrant community
3967 of users and developers. The following people are known to have contributed the
3968 improvements that became Perl 5.22.0:
3970 Aaron Crane, Abhijit Menon-Sen, Abigail, Alberto Simões, Alex Solovey, Alex
3971 Vandiver, Alexandr Ciornii, Alexandre (Midnite) Jousset, Andreas König,
3972 Andreas Voegele, Andrew Fresh, Andy Dougherty, Anthony Heading, Aristotle
3973 Pagaltzis, brian d foy, Brian Fraser, Chad Granum, Chris 'BinGOs' Williams,
3974 Craig A. Berry, Dagfinn Ilmari Mannsåker, Daniel Dragan, Darin McBride, Dave
3975 Rolsky, David Golden, David Mitchell, David Wheeler, Dmitri Tikhonov, Doug
3976 Bell, E. Choroba, Ed J, Eric Herman, Father Chrysostomos, George Greer, Glenn
3977 D. Golden, Graham Knop, H.Merijn Brand, Herbert Breunung, Hugo van der Sanden,
3978 James E Keenan, James McCoy, James Raspass, Jan Dubois, Jarkko Hietaniemi,
3979 Jasmine Ngan, Jerry D. Hedden, Jim Cromie, John Goodyear, kafka, Karen
3980 Etheridge, Karl Williamson, Kent Fredric, kmx, Lajos Veres, Leon Timmermans,
3981 Lukas Mai, Mathieu Arnold, Matthew Horsfall, Max Maischein, Michael Bunk,
3982 Nicholas Clark, Niels Thykier, Niko Tyni, Norman Koch, Olivier Mengué, Peter
3983 John Acklam, Peter Martini, Petr Písař, Philippe Bruhat (BooK), Pierre
3984 Bogossian, Rafael Garcia-Suarez, Randy Stauner, Reini Urban, Ricardo Signes,
3985 Rob Hoelz, Rostislav Skudnov, Sawyer X, Shirakata Kentaro, Shlomi Fish,
3986 Sisyphus, Slaven Rezic, Smylers, Steffen Müller, Steve Hay, Sullivan Beck,
3987 syber, Tadeusz Sośnierz, Thomas Sibley, Todd Rinaldo, Tony Cook, Vincent Pit,
3988 Vladimir Marek, Yaroslav Kuzmin, Yves Orton, Ævar Arnfjörð Bjarmason.
3990 The list above is almost certainly incomplete as it is automatically generated
3991 from version control history. In particular, it does not include the names of
3992 the (very much appreciated) contributors who reported issues to the Perl bug
3995 Many of the changes included in this version originated in the CPAN modules
3996 included in Perl's core. We're grateful to the entire CPAN community for
3997 helping Perl to flourish.
3999 For a more complete list of all of Perl's historical contributors, please see
4000 the F<AUTHORS> file in the Perl source distribution.
4002 =head1 Reporting Bugs
4004 If you find what you think is a bug, you might check the articles recently
4005 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
4006 https://rt.perl.org/ . There may also be information at
4007 http://www.perl.org/ , the Perl Home Page.
4009 If you believe you have an unreported bug, please run the L<perlbug> program
4010 included with your release. Be sure to trim your bug down to a tiny but
4011 sufficient test case. Your bug report, along with the output of C<perl -V>,
4012 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
4014 If the bug you are reporting has security implications, which make it
4015 inappropriate to send to a publicly archived mailing list, then please send it
4016 to perl5-security-report@perl.org. This points to a closed subscription
4017 unarchived mailing list, which includes all the core committers, who will be
4018 able to help assess the impact of issues, figure out a resolution, and help
4019 co-ordinate the release of patches to mitigate or fix the problem across all
4020 platforms on which Perl is supported. Please only use this address for
4021 security issues in the Perl core, not for modules independently distributed on
4026 The F<Changes> file for an explanation of how to view exhaustive details on
4029 The F<INSTALL> file for how to build Perl.
4031 The F<README> file for general stuff.
4033 The F<Artistic> and F<Copying> files for copyright information.