5 perldelta - what is new for perl v5.16.0
9 This document describes differences between the 5.14.0 release and
12 If you are upgrading from an earlier release such as 5.12.0, first read
13 L<perl5140delta>, which describes differences between 5.12.0 and
18 As described in L<perlpolicy>, the release of Perl 5.16.0 marks the
19 official end of support for Perl 5.12. Users of Perl 5.12 or earlier
20 should consider upgrading to a more recent release of Perl.
22 =head1 Core Enhancements
24 =head2 C<use I<VERSION>>
26 As of this release, version declarations like C<use v5.16> now disable
27 all features before enabling the new feature bundle. This means that
28 the following holds true:
31 # only 5.16 features enabled here
33 # only 5.14 features enabled here (not 5.16)
35 C<use v5.12> and higher continue to enable strict, but explicit C<use
36 strict> and C<no strict> now override the version declaration, even
43 There is a new ":default" feature bundle that represents the set of
44 features enabled before any version declaration or C<use feature> has
45 been seen. Version declarations below 5.10 now enable the ":default"
46 feature set. This does not actually change the behaviour of C<use
47 v5.8>, because features added to the ":default" set are those that were
48 traditionally enabled by default, before they could be turned off.
50 C<< no feature >> now resets to the default feature set. To disable all
51 features (which is likely to be a pretty special-purpose request, since
52 it presumably won't match any named set of semantics) you can now
53 write C<< no feature ':all' >>.
55 C<$[> is now disabled under C<use v5.16>. It is part of the default
56 feature set and can be turned on or off explicitly with C<use feature
61 The new C<__SUB__> token, available under the C<current_sub> feature
62 (see L<feature>) or C<use v5.16>, returns a reference to the current
63 subroutine, making it easier to write recursive closures.
65 =head2 New and Improved Built-ins
67 =head3 More consistent C<eval>
69 The C<eval> operator sometimes treats a string argument as a sequence of
70 characters and sometimes as a sequence of bytes, depending on the
71 internal encoding. The internal encoding is not supposed to make any
72 difference, but there is code that relies on this inconsistency.
74 The new C<unicode_eval> and C<evalbytes> features (enabled under C<use
75 5.16.0>) resolve this. The C<unicode_eval> feature causes C<eval
76 $string> to treat the string always as Unicode. The C<evalbytes>
77 features provides a function, itself called C<evalbytes>, which
78 evaluates its argument always as a string of bytes.
80 These features also fix oddities with source filters leaking to outer
83 See L<feature> for more detail.
85 =head3 C<substr> lvalue revamp
87 =for comment Does this belong here, or under Incomptable Changes?
89 When C<substr> is called in lvalue or potential lvalue context with two
90 or three arguments, a special lvalue scalar is returned that modifies
91 the original string (the first argument) when assigned to.
93 Previously, the offsets (the second and third arguments) passed to
94 C<substr> would be converted immediately to match the string, negative
95 offsets being translated to positive and offsets beyond the end of the
96 string being truncated.
98 Now, the offsets are recorded without modification in the special
99 lvalue scalar that is returned, and the original string is not even
100 looked at by C<substr> itself, but only when the returned lvalue is
103 These changes result in an incompatible change:
105 If the original string changes length after the call to C<substr> but
106 before assignment to its return value, negative offsets will remember
107 their position from the end of the string, affecting code like this:
109 my $string = "string";
110 my $lvalue = \substr $string, -4, 2;
111 print $lvalue, "\n"; # prints "ri"
112 $string = "bailing twine";
113 print $lvalue, "\n"; # prints "wi"; used to print "il"
115 The same thing happens with an omitted third argument. The returned
116 lvalue will always extend to the end of the string, even if the string
119 Since this change also allowed many bugs to be fixed (see
120 L</The C<substr> operator>), and since the behaviour
121 of negative offsets has never been specified, so the
122 change was deemed acceptable.
124 =head3 Return value of C<tied>
126 The value returned by C<tied> on a tied variable is now the actual
127 scalar that holds the object to which the variable is tied. This
128 allows ties to be weakened with C<Scalar::Util::weaken(tied
131 =head2 Unicode Support
133 =head3 Supports (I<almost>) Unicode 6.1
135 Besides the addition of whole new scripts, and new characters in
136 existing scripts, this new version of Unicode, as always, makes some
137 changes to existing characters. One change that may trip up some
138 applications is that the General Category of two characters in the
139 Latin-1 range, PILCROW SIGN and SECTION SIGN, has been changed from
140 Other_Symbol to Other_Punctuation. The same change has been made for
141 a character in each of Tibetan, Ethiopic, and Aegean.
142 The code points U+3248..U+324F (CIRCLED NUMBER TEN ON BLACK SQUARE
143 through CIRCLED NUMBER EIGHTY ON BLACK SQUARE) have had their General
144 Category changed from Other_Symbol to Other_Numeric. The Line Break
145 property has changes for Hebrew and Japanese; and as a consequence of
146 other changes in 6.1, the Perl regular expression construct C<\X> now
147 works differently for some characters in Thai and Lao.
149 New aliases (synonyms) have been defined for many property values;
150 these, along with the previously existing ones, are all cross-indexed in
153 The return value of C<charnames::viacode()> is affected by other
156 Code point Old Name New Name
157 U+000A LINE FEED (LF) LINE FEED
158 U+000C FORM FEED (FF) FORM FEED
159 U+000D CARRIAGE RETURN (CR) CARRIAGE RETURN
160 U+0085 NEXT LINE (NEL) NEXT LINE
161 U+008E SINGLE-SHIFT 2 SINGLE-SHIFT-2
162 U+008F SINGLE-SHIFT 3 SINGLE-SHIFT-3
163 U+0091 PRIVATE USE 1 PRIVATE USE-1
164 U+0092 PRIVATE USE 2 PRIVATE USE-2
165 U+2118 SCRIPT CAPITAL P WEIERSTRASS ELLIPTIC FUNCTION
167 Perl will accept any of these names as input, but
168 C<charnames::viacode()> now returns the new name of each pair. The
169 change for U+2118 is considered by Unicode to be a correction, that is
170 the original name was a mistake (but again, it will remain forever valid
171 to use it to refer to U+2118). But most of these changes are the
172 fallout of the mistake Unicode 6.0 made in naming a character used in
173 Japanese cell phones to be "BELL", which conflicts with the longstanding
174 industry use of (and Unicode's recommendation to use) that name
175 to mean the ASCII control character at U+0007. As a result, that name
176 has been deprecated in Perl since v5.14; and any use of it will raise a
177 warning message (unless turned off). The name "ALERT" is now the
178 preferred name for this code point, with "BEL" being an acceptable short
179 form. The name for the new cell phone character, at code point U+1F514,
180 remains undefined in this version of Perl (hence we don't quite
181 implement all of Unicode 6.1), but starting in v5.18, BELL will mean
182 this character, and not U+0007.
184 Unicode has taken steps to make sure that this sort of mistake does not
185 happen again. The Standard now includes all the generally accepted
186 names and abbreviations for control characters, whereas previously it
187 didn't (though there were recommended names for most of them, which Perl
188 used). This means that most of those recommended names are now
189 officially in the Standard. Unicode did not recommend names for the
190 four code points listed above between U+008E and U+008F, and in
191 standardizing them Unicode subtly changed the names that Perl had
192 previously given them, by replacing the final blank in each name by a
193 hyphen. Unicode also officially accepts names that Perl had deprecated,
194 such as FILE SEPARATOR. Now the only deprecated name is BELL.
195 Finally, Perl now uses the new official names instead of the old
196 (now considered obsolete) names for the first four code points in the
197 list above (the ones which have the parentheses in them).
199 Now that the names have been placed in the Unicode standard, these kinds
200 of changes should not happen again, though corrections, such as to
201 U+2118, are still possible.
203 Unicode also added some name abbreviations, which Perl now accepts:
205 TAB for CHARACTER TABULATION;
206 NEW LINE, END OF LINE, NL, and EOL for LINE FEED;
207 LOCKING-SHIFT ONE for SHIFT OUT;
208 LOCKING-SHIFT ZERO for SHIFT IN;
209 and ZWNBSP for ZERO WIDTH NO-BREAK SPACE.
211 More details on this version of Unicode are provided in
212 L<http://www.unicode.org/versions/Unicode6.1.0/>.
214 =head3 C<use charnames> is no longer needed for C<\N{I<name>}>
216 When C<\N{I<name>}> is encountered, the C<charnames> module is now
217 automatically loaded when needed as if the C<:full> and C<:short>
218 options had been specified. See L<charnames> for more information.
220 =head3 C<\N{...}> can now have Unicode loose name matching
222 This is described in the C<charnames> item in
223 L</Updated Modules and Pragmata> below.
225 =head3 Unicode Symbol Names
227 Perl now has proper support for Unicode in symbol names. It used to be
228 that C<*{$foo}> would ignore the internal UTF8 flag and use the bytes of
229 the underlying representation to look up the symbol. That meant that
230 C<*{"\x{100}"}> and C<*{"\xc4\x80"}> would return the same thing. All
231 these parts of Perl have been fixed to account for Unicode:
237 Method names (including those passed to C<use overload>)
241 Typeglob names (including names of variables, subroutines and filehandles)
253 Symbolic dereferencing
257 Second argument to C<bless()> and C<tie()>
261 Return value of C<ref()>
265 Subroutine prototypes
273 Various warnings and error messages that mention variable names or values,
278 In addition, a parsing bug has been fixed that prevented C<*{é}> from
279 implicitly quoting the name, but instead interpreted it as C<*{+é}>, which
280 would cause a strict violation.
282 C<*{"*a::b"}> automatically strips off the * if it is followed by an ASCII
283 letter. That has been extended to all Unicode identifier characters.
285 One-character non-ASCII non-punctuation variables (like C<$é>) are now
286 subject to "Used only once" warnings. They used to be exempt, as they
287 were treated as punctuation variables.
289 Also, single-character Unicode punctuation variables (like C<$‰>) are now
290 supported [perl #69032].
292 =head3 Improved ability to mix locales and Unicode, including UTF-8 locales
294 An optional parameter has been added to C<use locale>
296 use locale ':not_characters';
298 which tells Perl to use all but the C<LC_CTYPE> and C<LC_COLLATE>
299 portions of the current locale. Instead, the character set is assumed
300 to be Unicode. This allows locales and Unicode to be seamlessly mixed,
301 including the increasingly frequent UTF-8 locales. When using this
302 hybrid form of locales, the C<:locale> layer to the L<open> pragma can
303 be used to interface with the file system, and there are CPAN modules
304 available for ARGV and environment variable conversions.
306 Full details are in L<perllocale>.
308 =head3 New function C<fc> and corresponding escape sequence C<\F> for Unicode foldcase
310 Unicode foldcase is an extension to lowercase that gives better results
311 when comparing two strings case-insensitively. It has long been used
312 internally in regular expression C</i> matching. Now it is available
313 explicitly through the new C<fc> function call (enabled by
314 S<C<"use feature 'fc'">>, or C<use v5.16>, or explicitly callable via
315 C<CORE::fc>) or through the new C<\F> sequence in double-quotish
318 Full details are in L<perlfunc/fc>.
320 =head3 The Unicode C<Script_Extensions> property is now supported.
322 New in Unicode 6.0, this is an improved C<Script> property. Details
323 are in L<perlunicode/Scripts>.
327 =head3 Improved typemaps for Some Builtin Types
329 Most XS authors will be aware that there is a longstanding bug in the
330 OUTPUT typemap for T_AVREF (C<AV*>), T_HVREF (C<HV*>), T_CVREF (C<CV*>),
331 and T_SVREF (C<SVREF> or C<\$foo>) that requires manually decrementing
332 the reference count of the return value instead of the typemap taking
333 care of this. For backwards-compatibility, this cannot be changed in the
334 default typemaps. But we now provide additional typemaps
335 C<T_AVREF_REFCOUNT_FIXED>, etc. that do not exhibit this bug. Using
336 them in your extension is as simple as having one line in your
339 HV* T_HVREF_REFCOUNT_FIXED
341 =head3 C<is_utf8_char()>
343 The XS-callable function C<is_utf8_char()>, when presented with
344 malformed UTF-8 input, can read up to 12 bytes beyond the end of the
345 string. This cannot be fixed without changing its API. It is not
346 called from CPAN. The documentation now describes how to use it
349 =head3 Added C<is_utf8_char_buf()>
351 This function is designed to replace the deprecated L</is_utf8_char()>
352 function. It includes an extra parameter to make sure it doesn't read
353 past the end of the input buffer.
355 =head3 Other C<is_utf8_foo()> functions, as well as C<utf8_to_foo()>, etc.
357 Most of the other XS-callable functions that take UTF-8 encoded input
358 implicitly assume that the UTF-8 is valid (not malformed) in regards to
359 buffer length. Do not do things such as change a character's case or
360 see if it is alphanumeric without first being sure that it is valid
361 UTF-8. This can be safely done for a whole string by using one of the
362 functions C<is_utf8_string()>, C<is_utf8_string_loc()>, and
363 C<is_utf8_string_loclen()>.
367 Many new functions have been added to the API for manipulating lexical
368 pads. See L<perlapi/Pad Data Structures> for more information.
370 =head2 Changes to Special Variables
372 =head3 C<$$> can be assigned to
374 C<$$> was made read-only in Perl 5.8.0. But only sometimes: C<local $$>
375 would make it writable again. Some CPAN modules were using C<local $$> or
376 XS code to bypass the read-only check, so there is no reason to keep C<$$>
377 read-only. (This change also allowed a bug to be fixed while maintaining
378 backward compatibility.)
380 =head3 C<$^X> converted to an absolute path on FreeBSD, OS X and Solaris
382 C<$^X> is now converted to an absolute path on OS X, FreeBSD (without
383 needing F</proc> mounted) and Solaris 10 and 11. This augments the
384 previous approach of using F</proc> on Linux, FreeBSD and NetBSD
385 (in all cases, where mounted).
387 This makes relocatable perl installations more useful on these platforms.
388 (See "Relocatable @INC" in F<INSTALL>)
390 =head2 Debugger Changes
392 =head3 Features inside the debugger
394 The current Perl's L<feature> bundle is now enabled for commands entered
395 in the interactive debugger.
397 =head3 New option for the debugger's B<t> command
399 The B<t> command in the debugger, which toggles tracing mode, now
400 accepts a numeric argument that determines how many levels of subroutine
403 =head3 C<enable> and C<disable>
405 The debugger now has C<disable> and C<enable> commands for disabling
406 existing breakpoints and re-enabling them. See L<perldebug>.
408 =head3 Breakpoints with file names
410 The debugger's "b" command for setting breakpoints now allows a line
411 number to be prefixed with a file name. See
412 L<perldebug/"b [file]:[line] [condition]">.
414 =head2 The C<CORE> Namespace
416 =head3 The C<CORE::> prefix
418 The C<CORE::> prefix can now be used on keywords enabled by
419 L<feature.pm|feature>, even outside the scope of C<use feature>.
421 =head3 Subroutines in the C<CORE> namespace
423 Many Perl keywords are now available as subroutines in the CORE namespace.
424 This allows them to be aliased:
426 BEGIN { *entangle = \&CORE::tie }
427 entangle $variable, $package, @args;
429 And for prototypes to be bypassed:
431 sub mytie(\[%$*@]$@) {
432 my ($ref, $pack, @args) = @_;
437 Some of these cannot be called through references or via C<&foo> syntax,
438 but must be called as barewords.
440 See L<CORE> for details.
444 =head3 Anonymous handles
446 Automatically generated file handles are now named __ANONIO__ when the
447 variable name cannot be determined, rather than $__ANONIO__.
449 =head3 Autoloaded sort Subroutines
451 Custom sort subroutines can now be autoloaded [perl #30661]:
454 @sorted = sort foo @list; # uses AUTOLOAD
456 =head3 C<continue> no longer requires the "switch" feature
458 The C<continue> keyword has two meanings. It can introduce a C<continue>
459 block after a loop, or it can exit the current C<when> block. Up till now,
460 the latter meaning was only valid with the "switch" feature enabled, and
461 was a syntax error otherwise. Since the main purpose of feature.pm is to
462 avoid conflicts with user-defined subroutines, there is no reason for
463 C<continue> to depend on it.
465 =head3 DTrace probes for interpreter phase change
467 The C<phase-change> probes will fire when the interpreter's phase
468 changes, which tracks the C<${^GLOBAL_PHASE}> variable. C<arg0> is
469 the new phase name; C<arg1> is the old one. This is useful mostly
470 for limiting your instrumentation to one or more of: compile time,
471 run time, destruct time.
473 =head3 C<__FILE__()> Syntax
475 The C<__FILE__>, C<__LINE__> and C<__PACKAGE__> tokens can now be written
476 with an empty pair of parentheses after them. This makes them parse the
477 same way as C<time>, C<fork> and other built-in functions.
479 =head3 The C<\$> prototype accepts any scalar lvalue
481 The C<\$> and C<\[$]> subroutine prototypes now accept any scalar lvalue
482 argument. Previously they only accepted scalars beginning with C<$> and
483 hash and array elements. This change makes them consistent with the way
484 the built-in C<read> and C<recv> functions (among others) parse their
485 arguments. This means that one can override the built-in functions with
486 custom subroutines that parse their arguments the same way.
488 =head3 C<_> in subroutine prototypes
490 The C<_> character in subroutine prototypes is now allowed before C<@> or
495 =head2 Use C<is_utf8_char_buf()> and not C<is_utf8_char()>
497 The latter function is now deprecated because its API is insufficient to
498 guarantee that it doesn't read (up to 12 bytes in the worst case) beyond
499 the end of its input string. See
500 L<is_utf8_char_buf()|/Added is_utf8_char_buf()>.
502 =head2 Malformed UTF-8 input could cause attempts to read beyond the end of the buffer
504 Two new XS-accessible functions, C<utf8_to_uvchr_buf()> and
505 C<utf8_to_uvuni_buf()> are now available to prevent this, and the Perl
506 core has been converted to use them.
507 See L</Internal Changes>.
509 =head2 C<File::Glob::bsd_glob()> memory error with GLOB_ALTDIRFUNC (CVE-2011-2728).
511 Calling C<File::Glob::bsd_glob> with the unsupported flag
512 GLOB_ALTDIRFUNC would cause an access violation / segfault. A Perl
513 program that accepts a flags value from an external source could expose
514 itself to denial of service or arbitrary code execution attacks. There
515 are no known exploits in the wild. The problem has been corrected by
516 explicitly disabling all unsupported flags and setting unused function
517 pointers to null. Bug reported by Clément Lecigne.
519 =head2 Privileges are now set correctly when assigning to C<$(>
521 A hypothetical bug (probably non-exploitable in practice) due to the
522 incorrect setting of the effective group ID while setting C<$(> has been
523 fixed. The bug would only have affected systems that have C<setresgid()>
524 but not C<setregid()>, but no such systems are known to exist.
528 =head2 Don't read the Unicode data base files in F<lib/unicore>
530 It is now deprecated to directly read the Unicode data base files.
531 These are stored in the F<lib/unicore> directory. Instead, you should
532 use the new functions in L<Unicode::UCD>. These provide a stable API,
533 and give complete information.
535 Perl may at some point in the future change or remove the files. The
536 file which applications were most likely to have used is
537 F<lib/unicore/ToDigit.pl>. L<Unicode::UCD/prop_invmap()> can be used to
538 get at its data instead.
540 =head2 XS functions C<is_utf8_char()>, C<utf8_to_uvchr()> and
543 This function is deprecated because it could read beyond the end of the
544 input string. Use the new L<is_utf8_char_buf()|/Added is_utf8_char_buf()>,
545 C<utf8_to_uvchr_buf()> and C<utf8_to_uvuni_buf()> instead.
547 =head1 Future Deprecations
549 This section serves as a notice of features that are I<likely> to be
550 removed or L<deprecated|perlpolicy/deprecated> in the next release of
551 perl (5.18.0). If your code depends on these features, you should
552 contact the Perl 5 Porters via the L<mailing
553 list|http://lists.perl.org/list/perl5-porters.html> or L<perlbug> to
554 explain your use case and inform the deprecation process.
558 These modules may be marked as deprecated I<from the core>. This only
559 means that they will no longer be installed by default with the core
560 distribution, but will remain available on the CPAN.
578 Pod::Parser, Pod::LaTeX
594 =head2 Platforms with no supporting programmers:
596 These platforms will probably have their
597 special build support removed during the
598 5.17.0 development series.
636 =head2 Other Future Deprecations
642 Swapping of $< and $>
644 For more information about this future deprecation, see L<the relevant RT
645 ticket|https://rt.perl.org/rt3/Ticket/Display.html?id=96212>.
651 Perl supports being built without PerlIO proper, using a stdio or sfio
652 wrapper instead. A perl build like this will not support IO layers and
653 thus Unicode IO, making it rather handicapped.
655 PerlIO supports a C<stdio> layer if stdio use is desired, and similarly a
656 sfio layer could be produced.
660 Unescaped literal C<< "{" >> in regular expressions.
662 It is planned starting in v5.20 to require a literal C<"{"> to be
663 escaped by, for example, preceding it with a backslash. In v5.18, a
664 deprecated warning message will be emitted for all such uses. Note that
665 this only affects patterns which are to match a literal C<"{">. Other
666 uses of this character, such as part of a quantifier or sequence like in
667 the ones below are completely unaffected:
673 The removal of this will allow extensions to pattern syntax, and better
674 error checking of existing syntax. See L<perlre/Quantifiers> for an
679 =head1 Incompatible Changes
681 =head2 Special blocks called in void context
683 Special blocks (C<BEGIN>, C<CHECK>, C<INIT>, C<UNITCHECK>, C<END>) are now
684 called in void context. This avoids wasteful copying of the result of the
685 last statement [perl #108794].
687 =head2 The C<overloading> pragma and regexp objects
689 With C<no overloading>, regular expression objects returned by C<qr//> are
690 now stringified as "Regexp=REGEXP(0xbe600d)" instead of the regular
691 expression itself [perl #108780].
693 =head2 Two XS typemap Entries removed
695 Two presumably unused XS typemap entries have been removed from the
696 core typemap: T_DATAUNIT and T_CALLBACK. If you are, against all odds,
697 a user of these, please see the instructions on how to restore them
700 =head2 Unicode 6.1 has incompatibilities with Unicode 6.0
702 These are detailed in L</Supports (almost) Unicode 6.1> above.
703 You can compile this version of Perl to use Unicode 6.0. See
704 L<perlunicode/Hacking Perl to work on earlier Unicode versions (for very serious hackers only)>.
706 =head2 Borland compiler
708 All support for the Borland compiler has been dropped. The code had not
709 worked for a long time anyway.
711 =head2 Certain deprecated Unicode properties are no longer supported by default
713 Perl should never have exposed certain Unicode properties that are used
714 by Unicode internally and not meant to be publicly available. Use of
715 these has generated deprecated warning messages since Perl 5.12. The
716 removed properties are Other_Alphabetic,
717 Other_Default_Ignorable_Code_Point, Other_Grapheme_Extend,
718 Other_ID_Continue, Other_ID_Start, Other_Lowercase, Other_Math, and
721 Perl may be recompiled to include any or all of them; instructions are
723 L<perluniprops/Unicode character properties that are NOT accepted by Perl>.
725 =head2 Dereferencing IO thingies as typeglobs
727 The C<*{...}> operator, when passed a reference to an IO thingy (as in
728 C<*{*STDIN{IO}}>), creates a new typeglob containing just that IO object.
729 Previously, it would stringify as an empty string, but some operators would
730 treat it as undefined, producing an "uninitialized" warning.
731 Now it stringifies as __ANONIO__ [perl #96326].
733 =head2 User-defined case-changing operations
735 This feature was deprecated in Perl 5.14, and has now been removed.
736 The CPAN module L<Unicode::Casing> provides better functionality without
737 the drawbacks that this feature had, as are detailed in the 5.14
739 L<http://perldoc.perl.org/5.14.0/perlunicode.html#User-Defined-Case-Mappings-%28for-serious-hackers-only%29>
741 =head2 XSUBs are now 'static'
743 XSUB C functions are now 'static', that is, they are not visible from
744 outside the compilation unit. Users can use the new C<XS_EXTERNAL(name)>
745 and C<XS_INTERNAL(name)> macros to pick the desired linking behaviour.
746 The ordinary C<XS(name)> declaration for XSUBs will continue to declare
747 non-'static' XSUBs for compatibility, but the XS compiler,
748 C<ExtUtils::ParseXS> (C<xsubpp>) will emit 'static' XSUBs by default.
749 C<ExtUtils::ParseXS>'s behaviour can be reconfigured from XS using the
750 C<EXPORT_XSUB_SYMBOLS> keyword. See L<perlxs> for details.
752 =head2 Weakening read-only references
754 Weakening read-only references is no longer permitted. It should never
755 have worked anyway, and in some cases could result in crashes.
757 =head2 Tying scalars that hold typeglobs
759 Attempting to tie a scalar after a typeglob was assigned to it would
760 instead tie the handle in the typeglob's IO slot. This meant that it was
761 impossible to tie the scalar itself. Similar problems affected C<tied> and
762 C<untie>: C<tied $scalar> would return false on a tied scalar if the last
763 thing returned was a typeglob, and C<untie $scalar> on such a tied scalar
766 We fixed this problem before Perl 5.14.0, but it caused problems with some
767 CPAN modules, so we put in a deprecation cycle instead.
769 Now the deprecation has been removed and this bug has been fixed. So
770 C<tie $scalar> will always tie the scalar, not the handle it holds. To tie
771 the handle, use C<tie *$scalar> (with an explicit asterisk). The same
772 applies to C<tied *$scalar> and C<untie *$scalar>.
774 =head2 IPC::Open3 no longer provides C<xfork()>, C<xclose_on_exec()>
777 All three functions were private, undocumented and unexported. They do
778 not appear to be used by any code on CPAN. Two have been inlined and one
781 =head2 C<$$> no longer caches PID
783 Previously, if one called fork(3) from C, Perl's
784 notion of C<$$> could go out of sync with what getpid() returns. By always
785 fetching the value of C<$$> via getpid(), this potential bug is eliminated.
786 Code that depends on the caching behavior will break. As described in
787 L<Core Enhancements|/C<$$> can be assigned to>,
788 C<$$> is now writable, but it will be reset during a
791 =head2 C<$$> and C<getppid()> no longer emulate POSIX semantics under LinuxThreads
793 The POSIX emulation of C<$$> and C<getppid()> under the obsolete
794 LinuxThreads implementation has been removed.
795 This only impacts users of Linux 2.4 and
796 users of Debian GNU/kFreeBSD up to and including 6.0, not the vast
797 majority of Linux installations that use NPTL threads.
799 This means that C<getppid()>, like C<$$>, is now always guaranteed to
800 return the OS's idea of the current state of the process, not perl's
801 cached version of it.
803 See the documentation for L<$$|perlvar/$$> for details.
805 =head2 C<< $< >>, C<< $> >>, C<$(> and C<$)> are no longer cached
807 Similarly to the changes to C<$$> and C<getppid()>, the internal
808 caching of C<< $< >>, C<< $> >>, C<$(> and C<$)> has been removed.
810 When we cached these values our idea of what they were would drift out
811 of sync with reality if someone (e.g., someone embedding perl) called
812 C<sete?[ug]id()> without updating C<PL_e?[ug]id>. Having to deal with
813 this complexity wasn't worth it given how cheap the C<gete?[ug]id()>
816 This change will break a handful of CPAN modules that use the XS-level
817 C<PL_uid>, C<PL_gid>, C<PL_euid> or C<PL_egid> variables.
819 The fix for those breakages is to use C<PerlProc_gete?[ug]id()> to
820 retrieve them (e.g. C<PerlProc_getuid()>), and not to assign to
821 C<PL_e?[ug]id> if you change the UID/GID/EUID/EGID. There is no longer
822 any need to do so since perl will always retrieve the up-to-date
823 version of those values from the OS.
825 =head2 Which Non-ASCII characters get quoted by C<quotemeta> and C<\Q> has changed
827 This is unlikely to result in a real problem, as Perl does not attach
828 special meaning to any non-ASCII character, so it is currently
829 irrelevant which are quoted or not. This change fixes bug [perl #77654] and
830 bring Perl's behavior more into line with Unicode's recommendations.
831 See L<perlfunc/quotemeta>.
833 =head1 Performance Enhancements
839 Improved performance for Unicode properties in regular expressions
841 =for comment Can this be compacted some? -- rjbs, 2012-02-20
843 Matching a code point against a Unicode property is now done via a
844 binary search instead of linear. This means for example that the worst
845 case for a 1000 item property is 10 probes instead of 1000. This
846 inefficiency has been compensated for in the past by permanently storing
847 in a hash the results of a given probe plus the results for the adjacent
848 64 code points, under the theory that near-by code points are likely to
849 be searched for. A separate hash was used for each mention of a Unicode
850 property in each regular expression. Thus, C<qr/\p{foo}abc\p{foo}/>
851 would generate two hashes. Any probes in one instance would be unknown
852 to the other, and the hashes could expand separately to be quite large
853 if the regular expression were used on many different widely-separated
854 code points. This can lead to running out of memory in extreme cases.
855 Now, however, there is just one hash shared by all instances of a given
856 property. This means that if C<\p{foo}> is matched against "A" in one
857 regular expression in a thread, the result will be known immediately to
858 all regular expressions, and the relentless march of using up memory is
863 Version declarations with the C<use> keyword (e.g., C<use 5.012>) are now
864 faster, as they enable features without loading F<feature.pm>.
868 C<local $_> is faster now, as it no longer iterates through magic that it
869 is not going to copy anyway.
873 Perl 5.12.0 sped up the destruction of objects whose classes define
874 empty C<DESTROY> methods (to prevent autoloading), by simply not
875 calling such empty methods. This release takes this optimisation a
876 step further, by not calling any C<DESTROY> method that begins with a
877 C<return> statement. This can be useful for destructors that are only
880 use constant DEBUG => 1;
881 sub DESTROY { return unless DEBUG; ... }
883 Constant-folding will reduce the first statement to C<return;> if DEBUG
884 is set to 0, triggering this optimisation.
888 Assigning to a variable that holds a typeglob or copy-on-write scalar
889 is now much faster. Previously the typeglob would be stringified or
890 the copy-on-write scalar would be copied before being clobbered.
894 Assignment to C<substr> in void context is now more than twice its
895 previous speed. Instead of creating and returning a special lvalue
896 scalar that is then assigned to, C<substr> modifies the original string
901 C<substr> no longer calculates a value to return when called in void
906 Due to changes in L<File::Glob>, Perl's C<glob> function and its C<<
907 <...> >> equivalent are now much faster. The splitting of the pattern
908 into words has been rewritten in C, resulting in speed-ups of 20% in
911 This does not affect C<glob> on VMS, as it does not use File::Glob.
915 The short-circuiting operators C<&&>, C<||>, and C<//>, when chained
916 (such as C<$a || $b || $c>), are now considerably faster to short-circuit,
917 due to reduced optree traversal.
921 The implementation of C<s///r> makes one fewer copy of the scalar's value.
925 C<study> is now a no-op.
929 Recursive calls to lvalue subroutines in lvalue scalar context use less
934 =head1 Modules and Pragmata
936 =head2 Deprecated Modules
940 =item L<Version::Requirements>
942 Version::Requirements is now DEPRECATED, use L<CPAN::Meta::Requirements>,
943 which is a drop-in replacement. It will be deleted from perl.git blead
948 =head2 New Modules and Pragmata
954 L<arybase> -- this new module implements the C<$[> variable.
958 C<PerlIO::mmap> 0.010 has been added to the Perl core.
960 The C<mmap> PerlIO layer is no longer implemented by perl itself, but has
961 been moved out into the new L<PerlIO::mmap> module.
965 =head2 Updated Modules and Pragmata
967 This is only an overview of selected module updates. For a complete list of
970 $ corelist --diff 5.14.0 5.16.0
972 You can substitute your favorite version in place of 5.14.0, too.
978 L<Archive::Extract> has been upgraded from version 0.48 to version 0.58
980 Includes a fix for FreeBSD to only use C<unzip> if it is located in
981 C</usr/local/bin>, as FreeBSD 9.0 will ship with a limited C<unzip> in
986 L<Archive::Tar> has been upgraded from version 1.76 to version 1.82.
988 Adjustments to handle files >8gb (>0777777777777 octal) and a feature
989 to return the MD5SUM of files in the archive.
993 L<base> has been upgraded from version 2.16 to version 2.18.
995 C<base> no longer sets a module's C<$VERSION> to "-1" when a module it
996 loads does not define a C<$VERSION>. This change has been made because
997 "-1" is not a valid version number under the new "lax" criteria used
998 internally by C<UNIVERSAL::VERSION>. (See L<version> for more on "lax"
1001 C<base> no longer internally skips loading modules it has already loaded
1002 and instead relies on C<require> to inspect C<%INC>. This fixes a bug
1003 when C<base> is used with code that clear C<%INC> to force a module to
1008 L<Carp> has been upgraded from version 1.20 to version 1.26.
1010 It now includes last read filehandle info and puts a dot after the file
1011 and line number, just like errors from C<die> [perl #106538].
1015 L<charnames> has been updated from version 1.18 to version 1.30
1017 L<charnames> can now be invoked with a new option, C<:loose>,
1018 which is like the existing C<:full> option, but enables Unicode loose
1019 name matching. Details are in L<charnames/LOOSE MATCHES>.
1023 L<B::Deparse> has been upgraded from version 1.03 to 1.14. This fixes
1024 numerous deparsing bugs.
1028 L<CGI> has been upgraded from version 3.52 to version 3.59
1030 The DELETE HTTP verb is now supported.
1032 It uses the public and documented FCGI.pm API in CGI::Fast. CGI::Fast was
1033 using an FCGI API that was deprecated and removed from documentation
1034 more than ten years ago. Usage of this deprecated API with FCGI E<gt>=
1035 0.70 or FCGI E<lt>= 0.73 introduces a security issue.
1036 L<https://rt.cpan.org/Public/Bug/Display.html?id=68380>
1037 L<http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-2766>
1039 Things that may break your code:
1041 C<url()> was fixed to return C<PATH_INFO> when it is explicitly requested
1042 with either the C<path=E<gt>1> or C<path_info=E<gt>1> flag.
1044 If your code is running under mod_rewrite (or compatible) and you are
1045 calling C<self_url()> or you are calling C<url()> and passing
1046 C<path_info=E<gt>1>, These methods will actually be returning
1047 C<PATH_INFO> now, as you have explicitly requested, or has C<self_url()>
1048 has requested on your behalf.
1050 The C<PATH_INFO> has been omitted in such URLs since the issue was
1051 introduced in the 3.12 release in December, 2005.
1053 This bug is so old your application may have come to depend on it or
1054 workaround it. Check for application before upgrading to this release.
1056 Examples of affected method calls:
1058 $q->url(-absolute => 1, -query => 1, -path_info => 1 )
1060 $q->url(-full=>1,-path=>1)
1061 $q->url(-rewrite=>1,-path=>1)
1064 We no longer read from STDIN when the Content-Length is not set,
1065 preventing requests with no Content-Length from freezing in some cases.
1066 This is consistent with the CGI RFC 3875, and is also consistent with
1067 CGI::Simple. However, the old behavior may have been expected by some
1068 command-line uses of CGI.pm.
1072 L<Compress::Zlib> has been upgraded from version 2.035 to version 2.048
1074 IO::Compress::Zip and IO::Uncompress::Unzip now have support for LZMA
1075 (method 14). There is a fix for a CRC issue in IO::Compress::Unzip and
1076 it supports Streamed Stored context now. And fixed a Zip64 issue in
1077 IO::Compress::Zip when the content size was exactly 0xFFFFFFFF.
1081 L<Digest::SHA> has been upgraded from version 5.61 to version 5.71.
1083 Added BITS mode to the addfile method and shasum. This makes
1084 partial-byte inputs possible via files/STDIN and allows shasum to check
1085 all 8074 NIST Msg vectors, where previously special programming was
1086 required to do this.
1090 L<Encode> has been upgraded from version 2.42 to version 2.44
1092 Missing aliases added, a deep recursion error fixed and various
1093 documentation updates.
1095 Addressed 'decode_xs n-byte heap-overflow' security bug in Unicode.xs
1099 L<ExtUtils::CBuilder> updated from version 0.280203 to 0.280206.
1101 The new version appends CFLAGS and LDFLAGS to their Config.pm
1106 L<ExtUtils::ParseXS> has been upgraded from version 2.2210 to 3.16.
1108 Much of L<ExtUtils::ParseXS>, the module behind the XS compiler C<xsubpp>,
1109 was rewritten and cleaned up. It has been made somewhat more extensible
1110 and now finally uses strictures.
1112 The typemap logic has been moved into a separate module,
1113 L<ExtUtils::Typemaps>. See L</New Modules and Pragmata>, above.
1115 For a complete set of changes, please see the ExtUtils::ParseXS
1116 changelog, available on the CPAN.
1120 L<File::Glob> has been upgraded from version 1.12 to version 1.17.
1122 On Windows, tilde (~) expansion now checks the C<USERPROFILE> environment
1123 variable, after checking C<HOME>.
1125 It has a new C<:bsd_glob> export tag, intended to replace C<:glob>. Like
1126 C<:glob> it overrides C<glob> with a function that does not split the glob
1127 pattern into words, but, unlike C<:glob>, it iterates properly in scalar
1128 context, instead of returning the last file.
1130 There are other changes affecting Perl's own C<glob> operator (which uses
1131 File::Glob internally, except on VMS). See L</Performance Enhancements>
1132 and L</Selected Bug Fixes>.
1136 L<FindBin> updated from version 1.50 to 1.51.
1138 It no longer returns a wrong result if a script of the same name as the
1139 current one exists in the path and is executable.
1143 L<HTTP::Tiny> has been upgraded from version 0.012 to version 0.017.
1145 Added support for using C<$ENV{http_proxy}> to set the default proxy host.
1147 Adds additional shorthand methods for all common HTTP verbs,
1148 a C<post_form()> method for POST-ing x-www-form-urlencoded data and
1149 a C<www_form_urlencode()> utility method.
1153 L<IO> has been upgraded from version 1.25_04 to 1.25_06, and L<IO::Handle>
1154 from version 1.31 to 1.33.
1156 Together, these upgrades fix a problem with IO::Handle's C<getline> and
1157 C<getlines> methods. When these methods are called on the special ARGV
1158 handle, the next file is automatically opened, as happens with the built-in
1159 C<E<lt>E<gt>> and C<readline> functions. But, unlike the built-ins, these
1160 methods were not respecting the caller's use of the L<open> pragma and
1161 applying the approprate I/O layers to the newly-opened file
1162 [rt.cpan.org #66474].
1166 L<IPC::Cmd> has been upgraded from version 0.70 to version 0.76
1168 Capturing of command output (both C<STDOUT> and C<STDERR>) is now supported
1169 using L<IPC::Open3> on MSWin32 without requiring L<IPC::Run>.
1173 L<IPC::Open3> has been upgraded from version 1.09 to version 1.12.
1179 Fixes a bug which prevented use of C<open3> on Windows when C<*STDIN>,
1180 C<*STDOUT> or C<*STDERR> had been localized.
1184 Fixes a bug which prevented duplicating numeric file descriptors on Windows.
1188 C<open3> with "-" for the program name works once more. This was broken in
1189 version 1.06 (and hence in Perl 5.14.0) [perl #95748].
1195 L<Locale::Codes> has been upgraded from version 3.16 to version 3.21
1197 Added Language Extension codes (langext) and Language Variation codes (langvar)
1198 as defined in the IANA language registry.
1200 Added language codes from ISO 639-5
1202 Added language/script codes from the IANA language subtag registry
1204 Fixed an uninitialized value warning. RT 67438
1206 Fixed the return value for the all_XXX_codes and all_XXX_names functions. RT
1209 Reorganized modules to move Locale::MODULE to Locale::Codes::MODULE to allow
1210 for cleaner future additions. The original four modules (Locale::Language,
1211 Locale::Currency, Locale::Country, Locale::Script) will continue to work, but
1212 all new sets of codes will be added in the Locale::Codes namespace.
1214 The code2XXX, XXX2code, all_XXX_codes, and all_XXX_names functions now
1215 support retired codes. All codesets may be specified by a constant or
1216 by their name now. Previously, they were specified only by a constant.
1218 The alias_code function exists for backward compatibility. It has been
1219 replaced by rename_country_code. The alias_code function will be
1220 removed some time after September, 2013.
1222 All work is now done in the central module (Locale::Codes). Previously,
1223 some was still done in the wrapper modules (Locale::Codes::*). Added
1224 Language Family codes (langfam) as defined in ISO 639-5.
1228 L<Math::BigFloat> has been upgraded from version 1.993 to 1.997.
1230 The C<numify> method has been corrected to return a normalised Perl number
1231 (the result of C<0 + $thing>), instead of a string [rt.cpan.org #66732].
1235 L<Math::BigInt> has been upgraded from version 1.994 to 1.998.
1237 It provides a new C<bsgn> method that complements the C<babs> method.
1239 It fixes the internal C<objectify> function's handling of "foreign objects"
1240 so they are converted to the appropriate class (Math::BigInt or
1245 L<Math::BigRat> has been upgraded from version 0.2602 to version 0.2603.
1247 C<int()> on a Math::BigRat object containing -1/2 now creates a
1248 Math::BigInt containing 0, rather than -0. L<Math::BigInt> does not even
1249 support negative zero, so the resulting object was actually malformed
1254 L<Math::Complex> has been upgraded from version 1.56 to version 1.59
1255 and L<Math::Trig> has been upgraded from version 1.2 to version 1.22.
1257 Fixes include: correct copy constructor usage; fix polarwise formatting with
1258 numeric format specifier; and more stable C<great_circle_direction> algorithm.
1262 L<Module::CoreList> has been upgraded from version 2.51 to 2.66.
1264 The C<corelist> utility now understands the C<-r> option for displaying
1265 Perl release dates and the C<--diff> option to print the set of modlib
1266 changes between two perl distributions.
1270 C<Module::Metadata> has been upgraded from version 1.000004 to 1.000009.
1272 Adds C<provides> method to generate a CPAN META provides data structure
1273 correctly; use of C<package_versions_from_directory> is discouraged.
1277 L<ODBM_File> has been upgraded from version 1.10 to version 1.12.
1279 The XS code is now compiled with C<PERL_NO_GET_CONTEXT>, which will aid
1280 performance under ithreads.
1284 L<open> has been upgraded from version 1.08 to 1.10.
1286 It no longer turns of layers on standard handles when invoked without the
1287 ":std" directive. Similarly, when invoked I<with> the ":std" directive, it
1288 now clears layers on STDERR before applying the new ones, and not just on
1289 STDIN and STDOUT [perl #92728].
1293 L<overload> has been upgraded from version 1.13 to version 1.18.
1295 C<overload::Overloaded> no longer calls C<can> on the class, but uses
1296 another means to determine whether the object has overloading. It was
1297 never correct for it to call C<can>, as overloading does not respect
1298 AUTOLOAD. So classes that autoload methods and implement C<can> no longer
1299 have to account for overloading [perl #40333].
1301 A warning is now produced for invalid arguments. See L</New Diagnostics>.
1305 L<PerlIO::scalar> has been upgraded from version 0.11 to 0.14.
1307 (This is the module that implements C<< open $fh, '>', \$scalar >>.)
1309 It fixes a problem with C<< open my $fh, ">", \$scalar >> not working if
1310 C<$scalar> is a copy-on-write scalar.
1312 It also fixes a hang that occurs with C<readline> or C<< <$fh> >> if a
1313 typeglob has been assigned to $scalar [perl #92258].
1315 It no longer assumes during C<seek> that $scalar is a string internally.
1316 If it didn't crash, it was close to doing so [perl #92706]. Also, the
1317 internal print routine no longer assumes that the position set by C<seek>
1318 is valid, but extends the string to that position, filling the intervening
1319 bytes (between the old length and the seek position) with nulls
1322 Printing to an in-memory handle now works if the $scalar holds a reference,
1323 stringifying the reference before modifying it. References used to be
1324 treated as empty strings.
1326 Printing to an in-memory handle no longer crashes if the $scalar happens to
1327 hold a number internally, but no string buffer.
1329 Printing to an in-memory handle no longer creates scalars that confuse
1330 the regular expression engine [perl #108398].
1334 C<Pod::Functions> has been upgraded from version 1.04 to 1.05.
1336 F<Functions.pm> is now generated at perl build time from annotations in
1337 F<perlfunc.pod>. This will ensure that L<Pod::Functions> and L<perlfunc>
1338 remain in synchronisation.
1342 L<Pod::Html> has been upgraded from version 1.11 to 1.1502.
1344 This is an extensive rewrite of Pod::Html to use L<Pod::Simple> under
1345 the hood. The output has changed significantly.
1349 L<Pod::Perldoc> has been upgraded from version 3.15_03 to 3.17.
1351 It corrects the search paths on VMS [perl #90640]. (5.14.1)
1353 The B<-v> option now fetches the right section for C<$0>.
1355 This upgrade has numerous significant fixes. Consult its changelog on
1356 the CPAN for more information.
1360 L<POSIX> has been upgraded from version 1.24 to version 1.30.
1362 L<POSIX> no longer uses L<AutoLoader>. Any code which was relying on this
1363 implementation detail was buggy, and may fail as a result of this change.
1364 The module's Perl code has been considerably simplified, roughly halving
1365 the number of lines, with no change in functionality. The XS code has
1366 been refactored to reduce the size of the shared object by about 12%,
1367 with no change in functionality. More POSIX functions now have tests.
1369 C<sigsuspend> and C<pause> now run signals handle before returning, as the
1370 whole point of these two functions is to wait until a signal has
1371 arrived, and then return I<after> it has been triggered. Delayed, or
1372 "safe", signals were preventing that from happening, possibly resulting in
1373 race conditions [perl #107216].
1375 C<POSIX::sleep> is now a direct call into the underlying OS C<sleep>
1376 function, instead of being a Perl wrapper on C<CORE::sleep>. C<POSIX::dup2>
1377 now returns the correct value on Win32 (I<i.e.> the file descriptor).
1378 C<POSIX::SigSet> C<sigsuspend> and C<sigpending> and C<POSIX::pause> now
1379 dispatch safe signals immediately before returning to their caller.
1381 C<POSIX::Termios::setattr> now defaults the third argument to C<TCSANOW>,
1382 instead of 0. On most platforms C<TCSANOW> is defined as 0, but on some
1383 0 is not a valid parameter, which caused a call with defaults to fail.
1387 L<Socket> as been upgraded from version 1.94 to 2.000
1389 It has new functions and constants for handling IPv6 sockets:
1394 IPV6_DROP_MEMBERSHIP
1405 L<Storable> has been upgraded from version 2.27 to version 2.34.
1407 It no longer turns copy-on-write scalars into read-only scalars when
1408 freezing and thawing.
1412 L<Sys::Syslog> has been upgraded from version 0.27 to version 0.29
1414 This upgrade closes many outstanding bugs.
1418 L<Term::ANSIColor> has been upgraded from version 3.00 to version 3.01
1420 Only interpret an initial array reference as a list of colors, not any initial
1421 reference, allowing the colored function to work properly on objects with
1422 stringification defined.
1426 C<Term::ReadLine> has been upgraded from version 1.07 to 1.09.
1428 Term::ReadLine now supports any event loop, including unpublished ones and
1429 simple L<IO::Select> loops without the need to rewrite existing code for
1430 any particular framework [perl #108470].
1434 L<threads::shared> has been upgraded from version 1.37 to 1.40.
1436 Destructors on shared objects used to be ignored sometimes if the objects
1437 were referenced only by shared data structures. This has been mostly
1438 fixed, but destructors may still be ignored if the objects still exist at
1439 global destruction time [perl #98204].
1443 L<Unicode::Collate> has been upgraded from version 0.73 to version 0.89
1445 Updated to CLDR 1.9.1
1447 Locales updated to CLDR 2.0: mk, mt, nb, nn, ro, ru, sk, sr, sv, uk,
1448 zh__pinyin, zh__stroke
1450 Newly supported locales: bn, fa, ml, mr, or, pa, sa, si, si__dictionary,
1451 sr_Latn, sv__reformed, ta, te, th, ur, wae.
1453 Tailored compatibility ideographs as well as unified ideographs for the
1454 locales: ja, ko, zh__big5han, zh__gb2312han, zh__pinyin, zh__stroke.
1456 Locale/*.pl files are now searched for in @INC.
1460 L<Unicode::Normalize> has been upgraded from version 1.10 to version 1.14
1462 Fixes for the removal of F<unicore/CompositionExclusions.txt> from core.
1466 L<Unicode::UCD> has been upgraded from version 0.32 to version 0.43.
1468 This adds four new functions: C<prop_aliases()>, and
1469 C<prop_value_aliases()> which are used to find all the Unicode-approved
1470 synonyms for property names, or to convert from one name to another;
1471 C<prop_invlist> which returns all the code points matching a given
1472 Unicode binary property; and C<prop_invmap> which returns the complete
1473 specification of a given Unicode property.
1477 L<Win32API::File> has been upgraded from version 0.1101 to version 0.1200
1479 Added SetStdHandle and GetStdHandle functions
1483 =head2 Removed Modules and Pragmata
1485 As promised in Perl 5.14.0's release notes, the following modules have
1486 been removed from the core distribution, and if needed should be installed
1493 C<Devel::DProf> has been removed from the Perl core. Prior version was
1498 C<Shell> has been removed from the Perl core. Prior version was 0.72_01.
1502 =head1 Documentation
1504 =head2 New Documentation
1506 =head3 L<perldtrace>
1508 L<perldtrace> describes Perl's DTrace support, listing the provided probes
1509 and gives examples of their use.
1511 =head3 L<perlexperiment>
1513 This document is intended to provide a list of experimental features in
1514 Perl. It is still a work in progress.
1518 This a new OO tutorial. It focuses on basic OO concepts, and then recommends
1519 that readers choose an OO framework from CPAN.
1521 =head3 L<perlxstypemap>
1523 The new manual describes the XS typemapping mechanism in unprecedented
1524 detail and combines new documentation with information extracted from
1525 L<perlxs> and the previously unofficial list of all core typemaps.
1527 =head2 Changes to Existing Documentation
1535 The HV API has long accepted negative lengths to indicate that the key is
1536 in UTF8. Now this is documented.
1540 The C<boolSV()> macro is now documented.
1550 C<dbmopen> treats a 0 mode as a special case, that prevents a nonexistent
1551 file from being created. This has been the case since Perl 5.000, but was
1552 never documented anywhere. Now the perlfunc entry mentions it
1557 As an accident of history, C<open $fh, "<:", ...> applies the default
1558 layers for the platform (C<:raw> on Unix, C<:crlf> on Windows), ignoring
1559 whatever is declared by L<open.pm|open>. This seems such a useful feature
1560 it has been documented in L<perlfunc|perlfunc/open> and L<open>.
1564 The entry for C<split> has been rewritten. It is now far clearer than
1575 A new section, L<Autoloading with XSUBs|perlguts/Autoloading with XSUBs>,
1576 has been added, which explains the two APIs for accessing the name of the
1581 Some of the function descriptions in L<perlguts> were confusing, as it was
1582 not clear whether they referred to the function above or below the
1583 description. This has been clarified [perl #91790].
1593 This document has been rewritten from scratch, and its coverage of various OO
1594 concepts has been expanded.
1604 Documentation of the smartmatch operator has been reworked and moved from
1605 perlsyn to perlop where it belongs.
1607 It has also been corrected for the case of C<undef> on the left-hand
1608 side. The list of different smart match behaviours had an item in the
1613 Documentation of the ellipsis statement (C<...>) has been reworked and
1614 moved from perlop to perlsyn.
1618 The explanation of bitwise operators has been expanded to explain how they
1619 work on Unicode strings (5.14.1).
1623 More examples for C<m//g> have been added (5.14.1).
1627 The C<<< <<\FOO >>> here-doc syntax has been documented (5.14.1).
1631 =head3 L<perlpragma>
1637 There is now a standard convention for naming keys in the C<%^H>,
1638 documented under L<Key naming|perlpragma/Key naming>.
1642 =head3 L<perlsec/Laundering and Detecting Tainted Data>
1648 The example function for checking for taintedness contained a subtle
1649 error. C<$@> needs to be localized to prevent its changing this
1650 global's value outside the function. The preferred method to check for
1651 this remains L<Scalar::Util/tainted>.
1661 L<perllol> has been expanded with examples using the new C<push $scalar>
1662 syntax introduced in Perl 5.14.0 (5.14.1).
1672 L<perlmod> now states explicitly that some types of explicit symbol table
1673 manipulation are not supported. This codifies what was effectively already
1674 the case [perl #78074].
1678 =head3 L<perlpodstyle>
1684 The tips on which formatting codes to use have been corrected and greatly
1689 There are now a couple of example one-liners for previewing POD files after
1690 they have been edited.
1700 The C<(*COMMIT)> directive is now listed in the right section
1701 (L<Verbs without an argument|perlre/Verbs without an argument>).
1711 L<perlrun> has undergone a significant clean-up. Most notably, the
1712 B<-0x...> form of the B<-0> flag has been clarified, and the final section
1713 on environment variables has been corrected and expanded (5.14.1).
1723 The ($;) prototype syntax, which has existed for rather a long time, is now
1724 documented in L<perlsub>. It allows a unary function to have the same
1725 precedence as a list operator.
1735 The required syntax for tying handles has been documented.
1745 The documentation for L<$!|perlvar/$!> has been corrected and clarified.
1746 It used to state that $! could be C<undef>, which is not the case. It was
1747 also unclear as to whether system calls set C's C<errno> or Perl's C<$!>
1752 Documentation for L<$$|perlvar/$$> has been amended with additional
1753 cautions regarding changing the process ID.
1757 =head3 Other Changes
1763 L<perlxs> was extended with documentation on inline typemaps.
1767 L<perlref> has a new L<Circular References|perlref/Circular References>
1768 section explaining how circularities may not be freed and how to solve that
1769 with weak references.
1773 Parts of L<perlapi> were clarified, and Perl equivalents of some C
1774 functions have been added as an additional mode of exposition.
1778 A few parts of L<perlre> and L<perlrecharclass> were clarified.
1782 =head2 Removed Documentation
1784 =head3 Old OO Documentation
1786 All the old OO tutorials, perltoot, perltooc, and perlboot, have been
1787 removed. The perlbot (bag of object tricks) document has been removed
1790 =head3 Development Deltas
1792 The perldelta files for development releases are no longer packaged with
1793 perl. These can still be found in the perl source code repository.
1797 The following additions or changes have been made to diagnostic output,
1798 including warnings and fatal error messages. For the complete list of
1799 diagnostic messages, see L<perldiag>.
1801 =head2 New Diagnostics
1809 L<Cannot set tied @DB::args|perldiag/"Cannot set tied @DB::args">
1811 This error occurs when C<caller> tries to set C<@DB::args> but finds it
1812 tied. Before this error was added, it used to crash instead.
1816 L<Cannot tie unreifiable array|perldiag/"Cannot tie unreifiable array">
1818 This error is part of a safety check that the C<tie> operator does before
1819 tying a special array like C<@_>. You should never see this message.
1823 L<&CORE::%s cannot be called directly|perldiag/"&CORE::%s cannot be called directly">
1825 This occurs when a subroutine in the C<CORE::> namespace is called
1826 with C<&foo> syntax or through a reference. Some subroutines
1827 in this package cannot yet be called that way, but must be
1828 called as barewords. See L</Subroutines in the C<CORE> namespace>, above.
1832 L<Source filters apply only to byte streams|perldiag/"Source filters apply only to byte streams">
1834 This new error occurs when you try to activate a source filter (usually by
1835 loading a source filter module) within a string passed to C<eval> under the
1836 C<unicode_eval> feature.
1846 L<defined(@array) is deprecated|perldiag/"defined(@array) is deprecated">
1848 The long-deprecated C<defined(@array)> now also warns for package variables.
1849 Previously it only issued a warning for lexical variables.
1853 L<length() used on %s|perldiag/length() used on %s>
1855 This new warning occurs when C<length> is used on an array or hash, instead
1856 of C<scalar(@array)> or C<scalar(keys %hash)>.
1860 L<lvalue attribute %s already-defined subroutine|perldiag/"lvalue attribute %s already-defined subroutine">
1862 L<attributes.pm|attributes> now emits this warning when the :lvalue
1863 attribute is applied to a Perl subroutine that has already been defined, as
1864 doing so can have unexpected side-effects.
1868 L<overload arg '%s' is invalid|perldiag/"overload arg '%s' is invalid">
1870 This warning, in the "overload" category, is produced when the overload
1871 pragma is given an argument it doesn't recognize, presumably a mistyped
1876 L<$[ used in %s (did you mean $] ?)|perldiag/"$[ used in %s (did you mean $] ?)">
1878 This new warning exists to catch the mistaken use of C<$[> in version
1879 checks. C<$]>, not C<$[>, contains the version number.
1883 L<Useless assignment to a temporary|perldiag/"Useless assignment to a temporary">
1885 Assigning to a temporary scalar returned
1886 from an lvalue subroutine now produces this
1887 warning [perl #31946].
1891 L<Useless use of \E|perldiag/"Useless use of \E">
1893 C<\E> does nothing unless preceded by C<\Q>, C<\L> or C<\U>.
1897 =head2 Removed Errors
1903 "sort is now a reserved word"
1905 This error used to occur when C<sort> was called without arguments,
1906 followed by C<;> or C<)>. (E.g., C<sort;> would die, but C<{sort}> was
1907 OK.) This error message was added in Perl 3 to catch code like
1908 C<close(sort)> which would no longer work. More than two decades later,
1909 this message is no longer appropriate. Now C<sort> without arguments is
1910 always allowed, and returns an empty list, as it did in those cases
1911 where it was already allowed [perl #90030].
1915 =head2 Changes to Existing Diagnostics
1921 The "Applying pattern match..." or similar warning produced when an
1922 array or hash is on the left-hand side of the C<=~> operator now
1923 mentions the name of the variable.
1927 The "Attempt to free non-existent shared string" has had the spelling
1928 of "non-existent" corrected to "nonexistent". It was already listed
1929 with the correct spelling in L<perldiag>.
1933 The error messages for using C<default> and C<when> outside of a
1934 topicalizer have been standardised to match the messages for C<continue>
1935 and loop controls. They now read 'Can't "default" outside a
1936 topicalizer' and 'Can't "when" outside a topicalizer'. They both used
1937 to be 'Can't use when() outside a topicalizer' [perl #91514].
1941 The message, "Code point 0x%X is not Unicode, no properties match it;
1942 all inverse properties do" has been changed to "Code point 0x%X is not
1943 Unicode, all \p{} matches fail; all \P{} matches succeed".
1947 Redefinition warnings for constant subroutines used to be mandatory,
1948 even occurring under C<no warnings>. Now they respect the L<warnings>
1953 The "glob failed" warning message is now suppressible via C<no warnings>
1958 The L<Invalid version format|perldiag/"Invalid version format (%s)">
1959 error message now says "negative version number" within the parentheses,
1960 rather than "non-numeric data", for negative numbers.
1965 L<Possible attempt to put comments in qw() list|perldiag/"Possible attempt to put comments in qw() list">
1967 L<Possible attempt to separate words with commas|perldiag/"Possible attempt to separate words with commas">
1968 are no longer mutually exclusive: the same C<qw> construct may produce
1973 The uninitialized warning for C<y///r> when C<$_> is implicit and
1974 undefined now mentions the variable name, just like the non-/r variation
1979 The 'Use of "foo" without parentheses is ambiguous' warning has been
1980 extended to apply also to user-defined subroutines with a (;$)
1981 prototype, and not just to built-in functions.
1985 Warnings that mention the names of lexical (C<my>) variables with
1986 Unicode characters in them now respect the presence or absence of the
1987 C<:utf8> layer on the output handle, instead of outputting UTF8
1988 regardless. Also, the correct names are included in the strings passed
1989 to C<$SIG{__WARN__}> handlers, rather than the raw UTF8 bytes.
1993 =head1 Utility Changes
2001 L<h2ph> used to generate code of the form
2003 unless(defined(&FOO)) {
2007 But the subroutine is a compile-time declaration, and is hence unaffected
2008 by the condition. It has now been corrected to emit a string C<eval>
2009 around the subroutine [perl #99368].
2019 F<splain> no longer emits backtraces with the first line number repeated.
2023 Uncaught exception from user code:
2024 Cannot fwiddle the fwuddle at -e line 1.
2026 main::baz() called at -e line 1
2027 main::bar() called at -e line 1
2028 main::foo() called at -e line 1
2032 Uncaught exception from user code:
2033 Cannot fwiddle the fwuddle at -e line 1.
2034 main::baz() called at -e line 1
2035 main::bar() called at -e line 1
2036 main::foo() called at -e line 1
2040 Some error messages consist of multiple lines that are listed as separate
2041 entries in L<perldiag>. splain has been taught to find the separate
2042 entries in these cases, instead of simply failing to find the message.
2046 =head3 L<zipdetails>
2052 This is a new utility, included as part of an
2053 L<IO::Compress::Base> upgrade.
2055 L<zipdetails> displays information about the internal record structure
2056 of the zip file. It is not concerned with displaying any details of
2057 the compressed data stored in the zip file.
2061 =head1 Configuration and Compilation
2067 F<regexp.h> has been modified for compatibility with GCC's B<-Werror>
2068 option, as used by some projects that include perl's header files (5.14.1).
2072 C<USE_LOCALE{,_COLLATE,_CTYPE,_NUMERIC}> have been added the output of perl -V
2073 as they have affect the behaviour of the interpreter binary (albeit only
2078 The code and tests for L<IPC::Open2> have been moved from F<ext/IPC-Open2>
2079 into F<ext/IPC-Open3>, as C<IPC::Open2::open2()> is implemented as a thin
2080 wrapper around C<IPC::Open3::_open3()>, and hence is very tightly coupled to
2085 The magic types and magic vtables are now generated from data in a new script
2086 F<regen/mg_vtable.pl>, instead of being maintained by hand. As different
2087 EBCDIC variants can't agree on the code point for '~', the character to code
2088 point conversion is done at build time by F<generate_uudmap> to a new generated
2089 header F<mg_data.h>. C<PL_vtbl_bm> and C<PL_vtbl_fm> are now defined by the
2090 pre-processor as C<PL_vtbl_regexp>, instead of being distinct C variables.
2091 C<PL_vtbl_sig> has been removed.
2095 Building with C<-DPERL_GLOBAL_STRUCT> works again. This configuration is not
2100 Perl configured with I<MAD> now correctly frees C<MADPROP> structures when
2101 OPs are freed. C<MADPROP>s are now allocated with C<PerlMemShared_malloc()>
2105 F<makedef.pl> has been refactored. This should have no noticeable affect on
2106 any of the platforms that use it as part of their build (AIX, VMS, Win32).
2110 C<useperlio> can no longer be disabled.
2114 The file F<global.sym> is no longer needed, and has been removed. It
2115 contained a list of all exported functions, one of the files generated by
2116 F<regen/embed.pl> from data in F<embed.fnc> and F<regen/opcodes>. The code
2117 has been refactored so that the only user of F<global.sym>, F<makedef.pl>,
2118 now reads F<embed.fnc> and F<regen/opcodes> directly, removing the need to
2119 store the list of exported functions in an intermediate file.
2121 As F<global.sym> was never installed, this change should not be visible
2122 outside the build process.
2126 F<pod/buildtoc>, used by the build process to build L<perltoc>, has been
2127 refactored and simplified. It now only contains code to build L<perltoc>;
2128 the code to regenerate Makefiles has been moved to F<Porting/pod_rules.pl>.
2129 It's a bug if this change has any material effect on the build process.
2133 F<pod/roffitall> is now built by F<pod/buildtoc>, instead of being
2134 shipped with the distribution. Its list of manpages is now generated
2135 (and therefore current). See also RT #103202 for an unresolved related
2140 The man page for C<XS::Typemap> is no longer installed. C<XS::Typemap>
2141 is a test module which is not installed, hence installing its
2142 documentation makes no sense.
2146 The -Dusesitecustomize and -Duserelocatableinc options now work
2151 =head1 Platform Support
2153 =head2 Platform-Specific Notes
2161 Since version 1.7, Cygwin supports native UTF-8 paths. If Perl is built
2162 under that environment, directory and filenames will be UTF-8 encoded.
2164 Cygwin does not initialize all original Win32 environment variables. See
2165 F<README.cygwin> for a discussion of the newly-added
2166 C<Cygwin::sync_winenv()> function [perl #110190] and for
2177 HP-UX PA-RISC/64 now supports gcc-4.x
2179 A fix to correct the socketsize now makes the test suite pass on HP-UX
2180 PA-RISC for 64bitall builds.
2190 Remove unnecessary includes, fix miscellaneous compiler warnings and
2191 close some unclosed comments on F<vms/vms.c>.
2193 Remove sockadapt layer from the VMS build.
2197 Explicit support for VMS versions prior to v7.0 and DEC C versions
2198 prior to v6.0 has been removed.
2202 Since Perl 5.10.1, the home-grown C<stat> wrapper has been unable to
2203 distinguish between a directory name containing an underscore and an
2204 otherwise-identical filename containing a dot in the same position
2205 (e.g., t/test_pl as a directory and t/test.pl as a file). This problem
2210 The build on VMS now allows names of the resulting symbols in C code for
2211 Perl longer than 31 characters. Symbols like
2212 C<Perl__it_was_the_best_of_times_it_was_the_worst_of_times> can now be
2213 created freely without causing the VMS linker to seize up.
2219 Numerous build and test failures on GNU/Hurd have been resolved with hints
2220 for building DBM modules, detection of the library search path, and enabling
2221 of large file support.
2225 Perl is now built with dynamic linking on OpenVOS, the minimum supported
2226 version of which is now Release 17.1.0.
2230 The CC workshop C++ compiler is now detected and used on systems that ship
2233 =head1 Internal Changes
2239 The compiled representation of formats is now stored via the C<mg_ptr> of
2240 their C<PERL_MAGIC_fm>. Previously it was stored in the string buffer,
2241 beyond C<SvLEN()>, the regular end of the string. C<SvCOMPILED()> and
2242 C<SvCOMPILED_{on,off}()> now exist solely for compatibility for XS code.
2243 The first is always 0, the other two now no-ops. (5.14.1)
2247 Some global variables have been marked C<const>, members in the interpreter
2248 structure have been re-ordered, and the opcodes have been re-ordered. The
2249 op C<OP_AELEMFAST> has been split into C<OP_AELEMFAST> and C<OP_AELEMFAST_LEX>.
2253 When empting a hash of its elements (e.g. via undef(%h), or %h=()), HvARRAY
2254 field is no longer temporarily zeroed. Any destructors called on the freed
2255 elements see the remaining elements. Thus, %h=() becomes more like
2256 C<delete $h{$_} for keys %h>.
2260 Boyer-Moore compiled scalars are now PVMGs, and the Boyer-Moore tables are now
2261 stored via the mg_ptr of their C<PERL_MAGIC_bm>.
2262 Previously they were PVGVs, with the tables stored in
2263 the string buffer, beyond C<SvLEN()>. This eliminates
2264 the last place where the core stores data beyond C<SvLEN()>.
2268 Simplified logic in C<Perl_sv_magic()> introduces a small change of
2269 behaviour for error cases involving unknown magic types. Previously, if
2270 C<Perl_sv_magic()> was passed a magic type unknown to it, it would
2276 Croak "Modification of a read-only value attempted" if read only
2280 Return without error if the SV happened to already have this magic
2284 otherwise croak "Don't know how to handle magic of type \\%o"
2288 Now it will always croak "Don't know how to handle magic of type \\%o", even
2289 on read only values, or SVs which already have the unknown magic type.
2293 The experimental C<fetch_cop_label> function has been renamed to
2298 The C<cop_store_label> function has been added to the API, but is
2303 F<embedvar.h> has been simplified, and one level of macro indirection for
2304 PL_* variables has been removed for the default (non-multiplicity)
2305 configuration. PERLVAR*() macros now directly expand their arguments to
2306 tokens such as C<PL_defgv>, instead of expanding to C<PL_Idefgv>, with
2307 F<embedvar.h> defining a macro to map C<PL_Idefgv> to C<PL_defgv>. XS code
2308 which has unwarranted chumminess with the implementation may need updating.
2312 A C<coreargs> opcode has been added, to be used by C<&CORE::foo> subs to sort
2317 An API has been added to explicitly choose whether or not to export XSUB
2318 symbols. More detail can be found in the comments for commit e64345f8.
2322 The C<is_gv_magical_sv> function has been eliminated and merged with
2323 C<gv_fetchpvn_flags>. It used to be called to determine whether a GV
2324 should be autovivified in rvalue context. Now it has been replaced with a
2325 new C<GV_ADDMG> flag (not part of the API).
2329 The returned code point from the function C<utf8n_to_uvuni()>
2330 when the input is malformed UTF-8, malformations are allowed, and
2331 C<utf8> warnings are off is now the Unicode REPLACEMENT CHARACTER
2332 whenever the malformation is such that no well-defined code point can be
2333 computed. Previously the returned value was essentially garbage. The
2334 only malformations that have well-defined values are a zero-length
2335 string (0 is the return), and overlong UTF-8 sequences.
2339 The returned code point from the function C<utf8n_to_uvuni()>
2340 when the input is malformed UTF-8, malformations are allowed, and
2341 C<utf8> warnings are off is now the Unicode REPLACEMENT CHARACTER
2342 whenever the malformation is such that no well-defined code point can be
2343 computed. Previously the returned value was essentially garbage. The
2344 only malformations that have well-defined values are a zero-length
2345 string (0 is the return), and overlong UTF-8 sequences.
2349 Padlists are now marked C<AvREAL>; i.e., reference-counted. They have
2350 always been reference-counted, but were not marked real, because F<pad.c>
2351 did its own clean-up, instead of using the usual clean-up code in F<sv.c>.
2352 That caused problems in thread cloning, so now the C<AvREAL> flag is on,
2353 but is turned off in F<pad.c> right before the padlist is freed (after
2354 F<pad.c> has done its custom freeing of the pads).
2358 All the C files that make up the Perl core have been converted to UTF-8.
2362 These new functions have been added as part of the work on Unicode symbols:
2374 gv_fetchmeth_pv_autoload
2375 gv_fetchmeth_pvn_autoload
2376 gv_fetchmeth_sv_autoload
2377 gv_fetchmethod_pv_flags
2378 gv_fetchmethod_pvn_flags
2379 gv_fetchmethod_sv_flags
2395 The gv_fetchmethod_*_flags functions, like gv_fetchmethod_flags, are
2396 experimental and may change in a future release.
2400 The following functions were added. These are I<not> part of the API:
2412 There is also a C<HEKf> macro corresponding to C<SVf>, for
2413 interpolating HEKs in formatted strings.
2417 C<sv_catpvn_flags> takes a couple of new internal-only flags,
2418 C<SV_CATBYTES> and C<SV_CATUTF8>, which tell it whether the char array to
2419 be concatenated is UTF8. This allows for more efficient concatenation than
2420 creating temporary SVs to pass to C<sv_catsv>.
2424 For XS AUTOLOAD subs, $AUTOLOAD is set once more, as it was in 5.6.0. This
2425 is in addition to setting C<SvPVX(cv)>, for compatibility with 5.8 to 5.14.
2426 See L<perlguts/Autoloading with XSUBs>.
2430 Perl now checks whether the array (the linearised isa) returned by a MRO
2431 plugin begins with the name of the class itself, for which the array was
2432 created, instead of assuming that it does. This prevents the first element
2433 from being skipped during method lookup. It also means that
2434 C<mro::get_linear_isa> may return an array with one more element than the
2435 MRO plugin provided [perl #94306].
2439 C<PL_curstash> is now reference-counted.
2443 There are now feature bundle hints in C<PL_hints> (C<$^H>) that version
2444 declarations use, to avoid having to load F<feature.pm>. One setting of
2445 the hint bits indicates a "custom" feature bundle, which means that the
2446 entries in C<%^H> still apply. F<feature.pm> uses that.
2448 The C<HINT_FEATURE_MASK> macro is defined in F<perl.h> along with other
2449 hints. Other macros for setting and testing features and bundles are in
2450 the new F<feature.h>. C<FEATURE_IS_ENABLED> (which has moved to
2451 F<feature.h>) is no longer used throughout the codebase, but more specific
2452 macros, e.g., C<FEATURE_SAY_IS_ENABLED>, that are defined in F<feature.h>.
2456 F<lib/feature.pm> is now a generated file, created by the new
2457 F<regen/feature.pl> script, which also generates F<feature.h>.
2461 Tied arrays are now always C<AvREAL>. If C<@_> or C<DB::args> is tied, it
2462 is reified first, to make sure this is always the case.
2466 Two new functions C<utf8_to_uvchr_buf()> and C<utf8_to_uvuni_buf()> have
2467 been added. These are the same as C<utf8_to_uvchr> and
2468 C<utf8_to_uvuni> (which are now deprecated), but take an extra parameter
2469 that is used to guard against reading beyond the end of the input
2471 See L<perlapi/utf8_to_uvchr_buf> and L<perlapi/utf8_to_uvuni_buf>.
2475 The regular expression engine now does TRIE case insensitive matches
2476 under Unicode. This may change the output of C<< use re 'debug'; >>,
2477 and will speed up various things.
2481 There is a new C<wrap_op_checker()> function, which provides a thread-safe
2482 alternative to writing to C<PL_check> directly.
2486 =head1 Selected Bug Fixes
2488 =head2 Array and hash
2494 A bug has been fixed that would cause a "Use of freed value in iteration"
2495 error if the next two hash elements that would be iterated over are
2496 deleted [perl #85026]. (5.14.1)
2500 Deleting the current hash iterator (the hash element that would be returend
2501 by the next call to C<each>) in void context used not to free it
2506 Deletion of methods via C<delete $Class::{method}> syntax used to update
2507 method caches if called in void context, but not scalar or list context.
2511 When hash elements are deleted in void context, the internal hash entry is
2512 now freed before the value is freed, to prevent destructors called by that
2513 latter freeing from seeing the hash in an inconsistent state. It was
2514 possible to cause double-frees if the destructor freed the hash itself
2519 A C<keys> optimisation in Perl 5.12.0 to make it faster on empty hashes
2520 caused C<each> not to reset the iterator if called after the last element
2525 Freeing deeply nested hashes no longer crashes [perl #44225].
2529 It is possible from XS code to create hashes with elements that have no
2530 values. The hash element and slice operators used to crash
2531 when handling these in lvalue context. They now
2532 produce a "Modification of non-creatable hash value attempted" error
2537 If list assignment to a hash or array triggered destructors that freed the
2538 hash or array itself, a crash would ensue. This is no longer the case
2543 It used to be possible to free the typeglob of a localised array or hash
2544 (e.g., C<local @{"x"}; delete $::{x}>), resulting in a crash on scope exit.
2548 Some core bugs affecting L<Hash::Util> have been fixed: locking a hash
2549 element that is a glob copy no longer causes subsequent assignment to it to
2550 corrupt the glob, and unlocking a hash element that holds a copy-on-write
2551 scalar no longer causes modifications to that scalar to modify other
2552 scalars that were sharing the same string buffer.
2562 The C<newHVhv> XS function now works on tied hashes, instead of crashing or
2563 returning an empty hash.
2567 The C<SvIsCOW> C macro now returns false for read-only copies of typeglobs,
2568 such as those created by:
2571 Hash::Util::lock_value %hash, 'elem';
2573 It used to return true.
2577 The C<SvPVutf8> C function no longer tries to modify its argument,
2578 resulting in errors [perl #108994].
2582 C<SvPVutf8> now works properly with magical variables.
2586 C<SvPVbyte> now works properly non-PVs.
2590 When presented with malformed UTF-8 input, the XS-callable functions
2591 C<is_utf8_string()>, C<is_utf8_string_loc()>, and
2592 C<is_utf8_string_loclen()> could read beyond the end of the input
2593 string by up to 12 bytes. This no longer happens. [perl #32080].
2594 However, currently, C<is_utf8_char()> still has this defect, see
2595 L</is_utf8_char()> above.
2599 The C-level C<pregcomp> function could become confused as to whether the
2600 pattern was in UTF8 if the pattern was an overloaded, tied, or otherwise
2601 magical scalar [perl #101940].
2605 =head2 Compile-time hints
2611 Tying C<%^H> no longer causes perl to crash or ignore the contents of
2612 C<%^H> when entering a compilation scope [perl #106282].
2616 C<eval $string> and C<require> used not to
2617 localise C<%^H> during compilation if it
2618 was empty at the time the C<eval> call itself was compiled. This could
2619 lead to scary side effects, like C<use re "/m"> enabling other flags that
2620 the surrounding code was trying to enable for its caller [perl #68750].
2624 C<eval $string> and C<require> no longer localise hints (C<$^H> and C<%^H>)
2625 at run time, but only during compilation of the $string or required file.
2626 This makes C<BEGIN { $^H{foo}=7 }> equivalent to
2627 C<BEGIN { eval '$^H{foo}=7' }> [perl #70151].
2631 Creating a BEGIN block from XS code (via C<newXS> or C<newATTRSUB>) would,
2632 on completion, make the hints of the current compiling code the current
2633 hints. This could cause warnings to occur in a non-warning scope.
2637 =head2 Copy-on-write scalars
2639 Copy-on-write or shared hash key scalars
2640 were introduced in 5.8.0, but most Perl code
2641 did not encounter them (they were used mostly internally). Perl
2642 5.10.0 extended them, such that assigning C<__PACKAGE__> or a
2643 hash key to a scalar would make it copy-on-write. Several parts
2644 of Perl were not updated to account for them, but have now been fixed.
2650 C<utf8::decode> had a nasty bug that would modify copy-on-write scalars'
2651 string buffers in place (i.e., skipping the copy). This could result in
2652 hashes having two elements with the same key [perl #91834].
2656 Lvalue subroutines were not allowing COW scalars to be returned. This was
2657 fixed for lvalue scalar context in Perl 5.12.3 and 5.14.0, but list context
2658 was not fixed until this release.
2662 Elements of restricted hashes (see the L<fields> pragma) containing
2663 copy-on-write values couldn't be deleted, nor could such hashes be cleared
2668 Localising a tied variable used to make it read-only if it contained a
2669 copy-on-write string.
2673 Assigning a copy-on-write string to a stash
2674 element no longer causes a double free. Regardless of this change, the
2675 results of such assignments are still undefined.
2679 Assigning a copy-on-write string to a tied variable no longer stops that
2680 variable from being tied if it happens to be a PVMG or PVLV internally.
2684 Doing a substitution on a tied variable returning a copy-on-write
2685 scalar used to cause an assertion failure or an "Attempt to free
2686 nonexistent shared string" warning.
2690 This one is a regression from 5.12: In 5.14.0, the bitwise assignment
2691 operators C<|=>, C<^=> and C<&=> started leaving the left-hand side
2692 undefined if it happened to be a copy-on-write string [perl #108480].
2696 L<Storable>, L<Devel::Peek> and L<PerlIO::scalar> had similar problems.
2697 See L</Updated Modules and Pragmata>, above.
2707 F<dumpvar.pl>, and consequently the C<x> command in the debugger, have been
2708 fixed to handle objects blessed into classes whose names contain "=". The
2709 contents of such objects used not to be dumped [perl #101814].
2713 The "R" command for restarting a debugger session has been fixed to work on
2714 Windows, or any other system lacking a C<POSIX::_SC_OPEN_MAX> constant
2719 The C<#line 42 foo> directive used not to update the arrays of lines used
2720 by the debugger if it occurred in a string eval. This was partially fixed
2721 in 5.14, but it only worked for a single C<#line 42 foo> in each eval. Now
2722 it works for multiple.
2726 When subroutine calls are intercepted by the debugger, the name of the
2727 subroutine or a reference to it is stored in C<$DB::sub>, for the debugger
2728 to access. In some cases (such as C<$foo = *bar; undef *bar; &$foo>)
2729 C<$DB::sub> would be set to a name that could not be used to find the
2730 subroutine, and so the debugger's attempt to call it would fail. Now the
2731 check to see whether a reference is needed is more robust, so those
2732 problems should not happen anymore [rt.cpan.org #69862].
2736 Every subroutine has a filename associated with it that the debugger uses.
2737 The one associated with constant subroutines used to be misallocated when
2738 cloned under threads. Consequently, debugging threaded applications could
2739 result in memory corruption [perl #96126].
2743 =head2 Dereferencing operators
2749 C<defined(${"..."})>, C<defined(*{"..."})>, etc., used to
2750 return true for most, but not all built-in variables, if
2751 they had not been used yet. This bug affected C<${^GLOBAL_PHASE}> and
2752 C<${^UTF8CACHE}>, among others. It also used to return false if the
2753 package name was given as well (C<${"::!"}>) [perl #97978, #97492].
2757 Perl 5.10.0 introduced a similar bug: C<defined(*{"foo"})> where "foo"
2758 represents the name of a built-in global variable used to return false if
2759 the variable had never been used before, but only on the I<first> call.
2760 This, too, has been fixed.
2764 Since 5.6.0, C<*{ ... }> has been inconsistent in how it treats undefined
2765 values. It would die in strict mode or lvalue context for most undefined
2766 values, but would be treated as the empty string (with a warning) for the
2767 specific scalar return by C<undef()> (C<&PL_sv_undef> internally). This
2768 has been corrected. C<undef()> is now treated like other undefined
2769 scalars, as in Perl 5.005.
2773 =head2 Filehandle, last-accessed
2775 Perl has an internal variable that stores the last filehandle to be
2776 accessed. It is used by C<$.> and by C<tell> and C<eof> without
2783 It used to be possible to set this internal variable to a glob copy and
2784 then modify that glob copy to be something other than a glob, and still
2785 have the last-accessed filehandle associated with the variable after
2786 assigning a glob to it again:
2788 my $foo = *STDOUT; # $foo is a glob copy
2789 <$foo>; # $foo is now the last-accessed handle
2790 $foo = 3; # no longer a glob
2791 $foo = *STDERR; # still the last-accessed handle
2793 Now the C<$foo = 3> assignment unsets that internal variable, so there
2794 is no last-accessed filehandle, just as if C<< <$foo> >> had never
2797 This also prevents some unrelated handle from becoming the last-accessed
2798 handle if $foo falls out of scope and the same internal SV gets used for
2799 another handle [perl #97988].
2803 A regression in 5.14 caused these statements not to set that internal
2815 This is now fixed, but C<tell *{ *$fh }> still has the problem, and it
2816 is not clear how to fix it [perl #106536].
2820 =head2 Filetests and C<stat>
2822 The term "filetests" refers to the operators that consist of a hyphen
2823 followed by a single letter: C<-r>, C<-x>, C<-M>, etc. The term "stacked"
2824 when applied to filetests means followed by another filetest operator
2825 sharing the same operand, as in C<-r -x -w $fooo>.
2831 C<stat> produces more consistent warnings. It no longer warns for "_"
2832 [perl #71002] and no longer skips the warning at times for other unopened
2833 handles. It no longer warns about an unopened handle when the operating
2834 system's C<fstat> function fails.
2838 C<stat> would sometimes return negative numbers for large inode numbers,
2839 because it was using the wrong internal C type. [perl #84590]
2843 C<lstat> is documented to fall back to C<stat> (with a warning) when given
2844 a filehandle. When passed an IO reference, it was actually doing the
2845 equivalent of S<C<stat _>> and ignoring the handle.
2849 C<-T _> with no preceding C<stat> used to produce a
2850 confusing "uninitialized" warning, even though there
2851 is no visible uninitialized value to speak of.
2855 C<-T>, C<-B>, C<-l> and C<-t> now work
2856 when stacked with other filetest operators
2861 In 5.14.0, filetest ops (C<-r>, C<-x>, etc.) started calling FETCH on a
2862 tied argument belonging to the previous argument to a list operator, if
2863 called with a bareword argument or no argument at all. This has been
2864 fixed, so C<push @foo, $tied, -r> no longer calls FETCH on C<$tied>.
2868 In Perl 5.6, C<-l> followed by anything other than a bareword would treat
2869 its argument as a file name. That was changed in 5.8 for glob references
2870 (C<\*foo>), but not for globs themselves (C<*foo>). C<-l> started
2871 returning C<undef> for glob references without setting the last
2872 stat buffer that the "_" handle uses, but only if warnings
2873 were turned on. With warnings off, it was the same as 5.6.
2874 In other words, it was simply buggy and inconsistent. Now the 5.6
2875 behaviour has been restored.
2879 C<-l> followed by a bareword no longer "eats" the previous argument to
2880 the list operator in whose argument list it resides. Hence,
2881 C<print "bar", -l foo> now actually prints "bar", because C<-l>
2886 Perl keeps several internal variables to keep track of the last stat
2887 buffer, from which file(handle) it originated, what type it was, and
2888 whether the last stat succeeded.
2890 There were various cases where these could get out of synch, resulting in
2891 inconsistent or erratic behaviour in edge cases (every mention of C<-T>
2892 applies to C<-B> as well):
2898 C<-T I<HANDLE>>, even though it does a C<stat>, was not resetting the last
2899 stat type, so an C<lstat _> following it would merrily return the wrong
2900 results. Also, it was not setting the success status.
2904 Freeing the handle last used by C<stat> or a filetest could result in
2905 S<C<-T _>> using an unrelated handle.
2909 C<stat> with an IO reference would not reset the stat type or record the
2910 filehandle for S<C<-T _>> to use.
2914 Fatal warnings could cause the stat buffer not to be reset
2915 for a filetest operator on an unopened filehandle or C<-l> on any handle.
2916 Fatal warnings also stopped C<-T> from setting C<$!>.
2920 When the last stat was on an unreadable file, C<-T _> is supposed to
2921 return C<undef>, leaving the last stat buffer unchanged. But it was
2922 setting the stat type, causing C<lstat _> to stop working.
2926 C<-T I<FILENAME>> was not resetting the internal stat buffers for
2931 These have all been fixed.
2941 A number of edge cases have been fixed with formats and C<formline>;
2942 in particular, where the format itself is potentially variable (such as
2943 with ties and overloading), and where the format and data differ in their
2944 encoding. In both these cases, it used to possible for the output to be
2945 corrupted [perl #91032].
2949 C<formline> no longer converts its argument into a string in-place. So
2950 passing a reference to C<formline> no longer destroys the reference
2955 Assignment to C<$^A> (the format output accumulator) now recalculates
2956 the number of lines output.
2960 =head2 C<given> and C<when>
2966 C<given> was not scoping its implicit $_ properly, resulting in memory
2967 leaks or "Variable is not available" warnings [perl #94682].
2971 C<given> was not calling set-magic on the implicit lexical C<$_> that it
2972 uses. This meant, for example, that C<pos> would be remembered from one
2973 execution of the same C<given> block to the next, even if the input were a
2974 different variable [perl #84526].
2978 C<when> blocks are now capable of returning variables declared inside the
2979 enclosing C<given> block [perl #93548].
2983 =head2 The C<glob> operator
2989 On OSes other than VMS, Perl's C<glob> operator (and the C<< <...> >> form)
2990 use L<File::Glob> underneath. L<File::Glob> splits the pattern into words,
2991 before feeding each word to its C<bsd_glob> function.
2993 There were several inconsistencies in the way the split was done. Now
2994 quotation marks (' and ") are always treated as shell-style word delimiters
2995 (that allow whitespace as part of a word) and backslashes are always
2996 preserved, unless they exist to escape quotation marks. Before, those
2997 would only sometimes be the case, depending on whether the pattern
2998 contained whitespace. Also, escaped whitespace at the end of the pattern
2999 is no longer stripped [perl #40470].
3003 C<CORE::glob> now works as a way to call the default globbing function. It
3004 used to respect overrides, despite the C<CORE::> prefix.
3008 Under miniperl (used to configure modules when perl itself is built),
3009 C<glob> now clears %ENV before calling csh, since the latter croaks on some
3010 systems if it does not like the contents of the LS_COLORS enviroment
3011 variable [perl #98662].
3015 =head2 Lvalue subroutines
3021 Explicit return now returns the actual argument passed to return, instead
3022 of copying it [perl #72724, #72706].
3026 Lvalue subroutines used to enforce lvalue syntax (i.e., whatever can go on
3027 the left-hand side of C<=>) for the last statement and the arguments to
3028 return. Since lvalue subroutines are not always called in lvalue context,
3029 this restriction has been lifted.
3033 Lvalue subroutines are less restrictive as to what values can be returned.
3034 It used to croak on values returned by C<shift> and C<delete> and from
3035 other subroutines, but no longer does so [perl #71172].
3039 Empty lvalue subroutines (C<sub :lvalue {}>) used to return C<@_> in list
3040 context. In fact, all subroutines used to, but regular subs were fixed in
3041 Perl 5.8.2. Now lvalue subroutines have been likewise fixed.
3045 Autovivification now works on values returned from lvalue subroutines
3046 [perl #7946], as does returning C<keys> in lvalue context.
3050 Lvalue subroutines used to copy their return values in rvalue context. Not
3051 only was this a waste of CPU cycles, but it also caused bugs. A C<($)>
3052 prototype would cause an lvalue sub to copy its return value [perl #51408],
3053 and C<while(lvalue_sub() =~ m/.../g) { ... }> would loop endlessly
3058 When called in potential lvalue context
3059 (e.g., subroutine arguments or a list
3060 passed to C<for>), lvalue subroutines used to copy
3061 any read-only value that was returned. E.g., C< sub :lvalue { $] } >
3062 would not return C<$]>, but a copy of it.
3066 When called in potential lvalue context, an lvalue subroutine returning
3067 arrays or hashes used to bind the arrays or hashes to scalar variables,
3068 resulting in bugs. This was fixed in 5.14.0 if an array were the first
3069 thing returned from the subroutine (but not for C<$scalar, @array> or
3070 hashes being returned). Now a more general fix has been applied
3075 Method calls whose arguments were all surrounded with C<my()> or C<our()>
3076 (as in C<< $object->method(my($a,$b)) >>) used to force lvalue context on
3077 the subroutine. This would prevent lvalue methods from returning certain
3082 Lvalue sub calls that are not determined to be such at compile time
3083 (C<&$name> or &{"name"}) are no longer exempt from strict refs if they
3084 occur in the last statement of an lvalue subroutine [perl #102486].
3088 Sub calls whose subs are not visible at compile time, if
3089 they occurred in the last statement of an lvalue subroutine,
3090 would reject non-lvalue subroutines and die with "Can't modify non-lvalue
3091 subroutine call" [perl #102486].
3093 Non-lvalue sub calls whose subs I<are> visible at compile time exhibited
3094 the opposite bug. If the call occurred in the last statement of an lvalue
3095 subroutine, there would be no error when the lvalue sub was called in
3096 lvalue context. Perl would blindly assign to the temporary value returned
3097 by the non-lvalue subroutine.
3101 C<AUTOLOAD> routines used to take precedence over the actual sub being
3102 called (i.e., when autoloading wasn't needed), for sub calls in lvalue or
3103 potential lvalue context, if the subroutine was not visible at compile
3108 Applying the C<:lvalue> attribute to an XSUB or to an aliased subroutine
3109 stub with C<< sub foo :lvalue; >> syntax stopped working in Perl 5.12.
3110 This has been fixed.
3114 Applying the :lvalue attribute to subroutine that is already defined does
3115 not work properly, as the attribute changes the way the sub is compiled.
3116 Hence, Perl 5.12 began warning when an attempt is made to apply the
3117 attribute to an already defined sub. In such cases, the attribute is
3120 But the change in 5.12 missed the case where custom attributes are also
3121 present: that case still silently and ineffectively applied the attribute.
3122 That omission has now been corrected. C<sub foo :lvalue :Whatever> (when
3123 C<foo> is already defined) now warns about the :lvalue attribute, and does
3128 A bug affecting lvalue context propagation through nested lvalue subroutine
3129 calls has been fixed. Previously, returning a value in nested rvalue
3130 context would be treated as lvalue context by the inner subroutine call,
3131 resulting in some values (such as read-only values) being rejected.
3141 Arithmetic assignment (C<$left += $right>) involving overloaded objects
3142 that rely on the 'nomethod' override no longer segfault when the left
3143 operand is not overloaded.
3147 Errors that occur when methods cannot be found during overloading now
3148 mention the correct package name, as they did in 5.8.x, instead of
3149 erroneously mentioning the "overload" package, as they have since 5.10.0.
3153 Undefining C<%overload::> no longer causes a crash.
3157 =head2 Prototypes of built-in keywords
3163 The C<prototype> function no longer dies for the C<__FILE__>, C<__LINE__>
3164 and C<__PACKAGE__> directives. It now returns an empty-string prototype
3165 for them, because they are syntactically indistinguishable from nullary
3166 functions like C<time>.
3170 C<prototype> now returns C<undef> for all overridable infix operators,
3171 such as C<eq>, which are not callable in any way resembling functions.
3172 It used to return incorrect prototypes for some and die for others
3177 The prototypes of several built-in functions--C<getprotobynumber>, C<lock>,
3178 C<not> and C<select>--have been corrected, or at least are now closer to
3179 reality than before.
3183 =head2 Regular expressions
3185 =for comment Is it possible to merge some of these items?
3191 C</[[:ascii:]]/> and C</[[:blank:]]/> now use locale rules under
3192 C<use locale> when the platform supports that. Previously, they used
3193 the platform's native character set.
3197 C<m/[[:ascii:]]/i> and C</\p{ASCII}/i> now match identically (when not
3198 under a differing locale). This fixes a regression introduced in 5.14
3199 in which the first expression could match characters outside of ASCII,
3200 such as the KELVIN SIGN.
3204 C</.*/g> would sometimes refuse to match at the end of a string that ends
3205 with "\n". This has been fixed [perl #109206].
3209 Starting with 5.12.0, Perl used to get its internal bookkeeping muddled up
3210 after assigning C<${ qr// }> to a hash element and locking it with
3211 L<Hash::Util>. This could result in double frees, crashes or erratic
3216 The new (in 5.14.0) regular expression modifier C</a> when repeated like
3217 C</aa> forbids the characters outside the ASCII range that match
3218 characters inside that range from matching under C</i>. This did not
3219 work under some circumstances, all involving alternation, such as:
3221 "\N{KELVIN SIGN}" =~ /k|foo/iaa;
3223 succeeded inappropriately. This is now fixed.
3227 5.14.0 introduced some memory leaks in regular expression character
3228 classes such as C<[\w\s]>, which have now been fixed. (5.14.1)
3232 An edge case in regular expression matching could potentially loop.
3233 This happened only under C</i> in bracketed character classes that have
3234 characters with multi-character folds, and the target string to match
3235 against includes the first portion of the fold, followed by another
3236 character that has a multi-character fold that begins with the remaining
3237 portion of the fold, plus some more.
3239 "s\N{U+DF}" =~ /[\x{DF}foo]/i
3241 is one such case. C<\xDF> folds to C<"ss">. (5.14.1)
3245 A few characters in regular expression pattern matches did not
3246 match correctly in some circumstances, all involving C</i>. The
3247 affected characters are:
3248 COMBINING GREEK YPOGEGRAMMENI,
3249 GREEK CAPITAL LETTER IOTA,
3250 GREEK CAPITAL LETTER UPSILON,
3251 GREEK PROSGEGRAMMENI,
3252 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND OXIA,
3253 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS,
3254 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND OXIA,
3255 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS,
3256 LATIN SMALL LETTER LONG S,
3257 LATIN SMALL LIGATURE LONG S T,
3259 LATIN SMALL LIGATURE ST.
3263 A memory leak regression in regular expression compilation
3264 under threading has been fixed.
3268 A regression introduced in 5.13.6 has
3269 been fixed. This involved an inverted
3270 bracketed character class in a regular expression that consisted solely
3271 of a Unicode property. That property wasn't getting inverted outside the
3276 Three problematic Unicode characters now work better in regex pattern matching under C</i>
3278 In the past, three Unicode characters:
3279 LATIN SMALL LETTER SHARP S,
3280 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS,
3282 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS,
3283 along with the sequences that they fold to
3284 (including "ss" in the case of LATIN SMALL LETTER SHARP S),
3285 did not properly match under C</i>. 5.14.0 fixed some of these cases,
3286 but introduced others, including a panic when one of the characters or
3287 sequences was used in the C<(?(DEFINE)> regular expression predicate.
3288 The known bugs that were introduced in 5.14 have now been fixed; as well
3289 as some other edge cases that have never worked until now. All these
3290 involve using the characters and sequences outside bracketed character
3291 classes under C</i>. This closes [perl #98546].
3293 There remain known problems when using certain characters with
3294 multi-character folds inside bracketed character classes, including such
3295 constructs as C<qr/[\N{LATIN SMALL LETTER SHARP}a-z]/i>. These
3296 remaining bugs are addressed in [perl #89774].
3300 RT #78266: The regex engine has been leaking memory when accessing
3301 named captures that weren't matched as part of a regex ever since 5.10
3302 when they were introduced, e.g. this would consume over a hundred MB of
3305 for (1..10_000_000) {
3306 if ("foo" =~ /(foo|(?<capture>bar))?/) {
3307 my $capture = $+{capture}
3310 system "ps -o rss $$"'
3314 In 5.14, C</[[:lower:]]/i> and C</[[:upper:]]/i> no longer matched the
3315 opposite case. This has been fixed [perl #101970].
3319 A regular expression match with an overloaded object on the right-hand side
3320 would in some cases stringify the object too many times.
3324 A regression has been fixed that was introduced in 5.14, in C</i>
3325 regular expression matching, in which a match improperly fails if the
3326 pattern is in UTF-8, the target string is not, and a Latin-1 character
3327 precedes a character in the string that should match the pattern.
3332 In case-insensitive regular expression pattern matching, no longer on
3333 UTF-8 encoded strings does the scan for the start of match only look at
3334 the first possible position. This caused matches such as
3335 C<"f\x{FB00}" =~ /ff/i> to fail.
3339 The regexp optimiser no longer crashes on debugging builds when merging
3340 fixed-string nodes with inconvenient contents.
3344 A panic involving the combination of the regular expression modifiers
3345 C</aa> and the C<\b> escape sequence introduced in 5.14.0 has been
3346 fixed [perl #95964].
3350 The combination of the regular expression modifiers C</aa> and the C<\b>
3351 and C<\B> escape sequences did not work properly on UTF-8 encoded
3352 strings. All non-ASCII characters under C</aa> should be treated as
3353 non-word characters, but what was happening was that Unicode rules were
3354 used to determine wordness/non-wordness for non-ASCII characters. This
3355 is now fixed [perl #95968].
3359 C<< (?foo: ...) >> no longer loses passed in character set.
3363 The trie optimisation used to have problems with alternations containing
3364 an empty C<(?:)>, causing C<< "x" =~ /\A(?>(?:(?:)A|B|C?x))\z/ >> not to
3365 match, whereas it should [perl #111842].
3369 Use of lexical (C<my>) variables in code blocks embedded in regular
3370 expressions will no longer result in memory corruption or crashes.
3372 Nevertheless, these code blocks are still experimental, as there are still
3373 problems with the wrong variables being closed over (in loops for instance)
3374 and with abnormal exiting (e.g., C<die>) causing memory corruption.
3378 The C<\h>, C<\H>, C<\v> and C<\V> regular expression metacharacters used to
3379 cause a panic error message when attempting to match at the end of the
3380 string [perl #96354].
3384 The abbreviations for four C1 control characters C<MW> C<PM>, C<RI>, and
3385 C<ST> were previously unrecognized by C<\N{}>, vianame(), and
3390 Mentioning a variable named "&" other than C<$&> (i.e., C<@&> or C<%&>) no
3391 longer stops C<$&> from working. The same applies to variables named "'"
3392 and "`" [perl #24237].
3396 Creating a C<UNIVERSAL::AUTOLOAD> sub no longer stops C<%+>, C<%-> and
3397 C<%!> from working some of the time [perl #105024].
3401 =head2 Smartmatching
3407 C<~~> now correctly handles the precedence of Any~~Object, and is not tricked
3408 by an overloaded object on the left-hand side.
3412 In Perl 5.14.0, C<$tainted ~~ @array> stopped working properly. Sometimes
3413 it would erroneously fail (when C<$tainted> contained a string that occurs
3414 in the array I<after> the first element) or erroneously succeed (when
3415 C<undef> occurred after the first element) [perl #93590].
3419 =head2 The C<sort> operator
3425 C<sort> was not treating C<sub {}> and C<sub {()}> as equivalent when
3426 such a sub was provided as the comparison routine. It used to croak on
3431 C<sort> now works once more with custom sort routines that are XSUBs. It
3432 stopped working in 5.10.0.
3436 C<sort> with a constant for a custom sort routine, although it produces
3437 unsorted results, no longer crashes. It started crashing in 5.10.0.
3441 Warnings emitted by C<sort> when a custom comparison routine returns a
3442 non-numeric value now contain "in sort" and show the line number of the
3443 C<sort> operator, rather than the last line of the comparison routine. The
3444 warnings also occur now only if warnings are enabled in the scope where
3445 C<sort> occurs. Previously the warnings would occur if enabled in the
3446 comparison routine's scope.
3450 C<< sort { $a <=> $b } >>, which is optimised internally, now produces
3451 "uninitialized" warnings for NaNs (not-a-number values), since C<< <=> >>
3452 returns C<undef> for those. This brings it in line with
3453 S<C<< sort { 1; $a <=> $b } >>> and other more complex cases, which are not
3454 optimised [perl #94390].
3458 =head2 The C<substr> operator
3464 Tied (and otherwise magical) variables are no longer exempt from the
3465 "Attempt to use reference as lvalue in substr" warning.
3469 That warning now occurs when the returned lvalue is assigned to, not
3470 when C<substr> itself is called. This only makes a difference if the
3471 return value of C<substr> is referenced and assigned to later.
3475 Passing a substring of a read-only value or a typeglob to a function
3476 (potential lvalue context) no longer causes an immediate "Can't coerce"
3477 or "Modification of a read-only value" error. That error only occurs
3478 if and when the value passed is assigned to.
3480 The same thing happens with the "substr outside of string" error. If
3481 the lvalue is only read, not written to, it is now just a warning, as
3482 with rvalue C<substr>.
3486 C<substr> assignments no longer call FETCH twice if the first argument
3487 is a tied variable, just once.
3491 =head2 Support for embedded nulls
3493 Some parts of Perl did not work correctly with nulls (C<chr 0>) embedded in
3494 strings. That meant that, for instance, C<< $m = "a\0b"; foo->$m >> would
3495 call the "a" method, instead of the actual method name contained in $m.
3496 These parts of perl have been fixed to support nulls:
3506 Typeglob names (including filehandle and subroutine names)
3510 Package names, including the return value of C<ref()>
3514 Typeglob elements (C<*foo{"THING\0stuff"}>)
3522 Various warnings and error messages that mention variable names or values,
3527 One side effect of these changes is that blessing into "\0" no longer
3528 causes C<ref()> to return false.
3530 =head2 Threading bugs
3536 Typeglobs returned from threads are no longer cloned if the parent thread
3537 already has a glob with the same name. This means that returned
3538 subroutines will now assign to the right package variables [perl #107366].
3542 Some cases of threads crashing due to memory allocation during cloning have
3543 been fixed [perl #90006].
3547 Thread joining would sometimes emit "Attempt to free unreferenced scalar"
3548 warnings if C<caller> had been used from the C<DB> package prior to thread
3549 creation [perl #98092].
3553 Locking a subroutine (via C<lock &sub>) is no longer a compile-time error
3554 for regular subs. For lvalue subroutines, it no longer tries to return the
3555 sub as a scalar, resulting in strange side effects like C<ref \$_>
3556 returning "CODE" in some instances.
3558 C<lock &sub> is now a run-time error if L<threads::shared> is loaded (a
3559 no-op otherwise), but that may be rectified in a future version.
3563 =head2 Tied variables
3569 Various cases in which FETCH was being ignored or called too many times
3576 C<PerlIO::get_layers> [perl #97956]
3580 C<$tied =~ y/a/b/>, C<chop $tied> and C<chomp $tied> when $tied holds a
3585 When calling C<local $_> [perl #105912]
3589 Four-argument C<select>
3593 A tied buffer passed to C<sysread>
3601 Three-argument C<open>, the third being a tied file handle
3602 (as in C<< open $fh, ">&", $tied >>)
3606 C<sort> with a reference to a tied glob for the comparison routine.
3610 C<..> and C<...> in list context [perl #53554].
3614 C<${$tied}>, C<@{$tied}>, C<%{$tied}> and C<*{$tied}> where the tied
3615 variable returns a string (C<&{}> was unaffected)
3619 C<defined ${ $tied_variable }>
3623 Various functions that take a filehandle argument in rvalue context
3624 (C<close>, C<readline>, etc.) [perl #97482]
3628 Some cases of dereferencing a complex expression, such as
3629 C<${ (), $tied } = 1>, used to call C<FETCH> multiple times, but now call
3634 C<$tied-E<gt>method> where $tied returns a package name--even resulting in
3635 a failure to call the method, due to memory corruption
3639 Assignments like C<*$tied = \&{"..."}> and C<*glob = $tied>
3643 C<chdir>, C<chmod>, C<chown>, C<utime>, C<truncate>, C<stat>, C<lstat> and
3644 the filetest ops (C<-r>, C<-x>, etc.)
3650 C<caller> sets C<@DB::args> to the subroutine arguments when called from
3651 the DB package. It used to crash when doing so if C<@DB::args> happened to
3652 be tied. Now it croaks instead.
3656 Tying an element of %ENV or C<%^H> and then deleting that element would
3657 result in a call to the tie object's DELETE method, even though tying the
3658 element itself is supposed to be equivalent to tying a scalar (the element
3659 is, of course, a scalar) [perl #67490].
3663 When Perl autovivifies an element of a tied array or hash (which entails
3664 calling STORE with a new reference), it now calls FETCH immediately after
3665 the STORE, instead of assuming that FETCH would have returned the same
3666 reference. This can make it easier to implement tied objects [perl #35865, #43011].
3670 Four-argument C<select> no longer produces its "Non-string passed as
3671 bitmask" warning on tied or tainted variables that are strings.
3675 Localising a tied scalar that returns a typeglob no longer stops it from
3676 being tied till the end of the scope.
3680 Attempting to C<goto> out of a tied handle method used to cause memory
3681 corruption or crashes. Now it produces an error message instead
3686 A bug has been fixed that occurs when a tied variable is used as a
3687 subroutine reference: if the last thing assigned to or returned from the
3688 variable was a reference or typeglob, the C<\&$tied> could either crash or
3689 return the wrong subroutine. The reference case is a regression introduced
3690 in Perl 5.10.0. For typeglobs, it has probably never worked till now.
3694 =head2 Version objects and vstrings
3700 The bitwise complement operator (and possibly other operators, too) when
3701 passed a vstring would leave vstring magic attached to the return value,
3702 even though the string had changed. This meant that
3703 C<< version->new(~v1.2.3) >> would create a version looking like "v1.2.3"
3704 even though the string passed to C<< version->new >> was actually
3705 "\376\375\374". This also caused L<B::Deparse> to deparse C<~v1.2.3>
3706 incorrectly, without the C<~> [perl #29070].
3710 Assigning a vstring to a magic (e.g., tied, C<$!>) variable and then
3711 assigning something else used to blow away all the magic. This meant that
3712 tied variables would come undone, C<$!> would stop getting updated on
3713 failed system calls, C<$|> would stop setting autoflush, and other
3714 mischief would take place. This has been fixed.
3718 C<< version->new("version") >> and C<printf "%vd", "version"> no longer
3719 crash [perl #102586].
3723 Version comparisons, such as those that happen implicitly with C<use
3724 v5.43>, no longer cause locale settings to change [perl #105784].
3728 Version objects no longer cause memory leaks in boolean context
3733 =head2 Warnings, redefinition
3739 Subroutines from the C<autouse> namespace are once more exempt from
3740 redefinition warnings. This used to work in 5.005, but was broken in
3741 5.6 for most subroutines. For subs created via XS that redefine
3742 subroutines from the C<autouse> package, this stopped working in 5.10.
3746 New XSUBs now produce redefinition warnings if they overwrite existing
3747 subs, as they did in 5.8.x. (The C<autouse> logic was reversed in
3748 5.10-14. Only subroutines from the C<autouse> namespace would warn
3753 C<newCONSTSUB> used to use compile-time warning hints, instead of
3754 run-time hints. The following code should never produce a redefinition
3755 warning, but it used to, if C<newCONSTSUB> redefined an existing
3761 some_XS_function_that_calls_new_CONSTSUB();
3766 Redefinition warnings for constant subroutines are on by default (what
3767 are known as severe warnings in L<perldiag>). This was only the case
3768 when it was a glob assignment or declaration of a Perl subroutine that
3769 caused the warning. If the creation of XSUBs triggered the warning, it
3770 was not a default warning. This has been corrected.
3774 The internal check to see whether a redefinition warning should occur
3775 used to emit "uninitialized" warnings in cases like this:
3777 use warnings "uninitialized";
3778 use constant {u => undef, v => undef};
3784 =head2 Warnings, "Uninitialized"
3790 Various functions that take a filehandle argument in rvalue context
3791 (C<close>, C<readline>, etc.) used to warn twice for an undefined handle
3796 C<dbmopen> now only warns once, rather than three times, if the mode
3797 argument is C<undef> [perl #90064].
3801 The C<+=> operator does not usually warn when the left-hand side is
3802 C<undef>, but it was doing so for tied variables. This has been fixed
3807 A bug fix in Perl 5.14 introduced a new bug, causing "uninitialized"
3808 warnings to report the wrong variable if the operator in question had
3809 two operands and one was C<%{...}> or C<@{...}>. This has been fixed
3814 C<..> and C<...> in list context now mention the name of the variable in
3815 "uninitialized" warnings for string (as opposed to numeric) ranges.
3819 =head2 Weak references
3825 Weakening the first argument to an automatically-invoked C<DESTROY> method
3826 could result in erroneous "DESTROY created new reference" errors or
3827 crashes. Now it is an error to weaken a read-only reference.
3831 Weak references to lexical hashes going out of scope were not going stale
3832 (becoming undefined), but continued to point to the hash.
3836 Weak references to lexical variables going out of scope are now broken
3837 before any magical methods (e.g., DESTROY on a tie object) are called.
3838 This prevents such methods from modifying the variable that will be seen
3839 the next time the scope is entered.
3843 Creating a weak reference to an @ISA array or accessing the array index
3844 (C<$#ISA>) could result in confused internal bookkeeping for elements
3845 subsequently added to the @ISA array. For instance, creating a weak
3846 reference to the element itself could push that weak reference on to @ISA;
3847 and elements added after use of C<$#ISA> would be ignored by method lookup
3852 =head2 Other notable fixes
3858 C<quotemeta> now quotes consistently the same non-ASCII characters under
3859 C<use feature 'unicode_strings'>, regardless of whether the string is
3860 encoded in UTF-8 or not, hence fixing the last vestiges (we hope) of the
3861 infamous L<perlunicode/The "Unicode Bug">. [perl #77654].
3863 Which of these code points is quoted has changed, based on Unicode's
3864 recommendations. See L<perlfunc/quotemeta> for details.
3868 When one writes C<open foo || die>, which used to work in Perl 4, a
3869 "Precedence problem" warning is produced. This warning used erroneously to
3870 apply to fully-qualified bareword handle names not followed by C<||>. This
3875 After package aliasing (C<*foo:: = *bar::>), C<select> with 0 or 1 argument
3876 would sometimes return a name that could not be used to refer to the
3877 filehandle, or sometimes it would return C<undef> even when a filehandle
3878 was selected. Now it returns a typeglob reference in such cases.
3882 C<PerlIO::get_layers> no longer ignores some arguments that it thinks are
3883 numeric, while treating others as filehandle names. It is now consistent
3884 for flat scalars (i.e., not references).
3888 Unrecognised switches on C<#!> line
3890 If a switch, such as B<-x>, that cannot occur on the C<#!> line is used
3891 there, perl dies with "Can't emulate...".
3893 It used to produce the same message for switches that perl did not
3894 recognise at all, whether on the command line or the C<#!> line.
3896 Now it produces the "Unrecognized switch" error message [perl #104288].
3900 C<system> now temporarily blocks the SIGCHLD signal handler, to prevent the
3901 signal handler from stealing the exit status [perl #105700].
3905 The %n formatting code for C<printf> and C<sprintf>, which causes the number
3906 of characters to be assigned to the next argument, now actually
3907 assigns the number of characters, instead of the number of bytes.
3909 It also works now with special lvalue functions like C<substr> and with
3910 nonexistent hash and array elements [perl #3471, #103492].
3914 Perl skips copying values returned from a subroutine, for the sake of
3915 speed, if doing so would make no observable difference. Due to faulty
3916 logic, this would happen with the
3917 result of C<delete>, C<shift> or C<splice>, even if the result was
3918 referenced elsewhere. It also did so with tied variables about to be freed
3919 [perl #91844, #95548].
3923 C<utf8::decode> now refuses to modify read-only scalars [perl #91850].
3927 Freeing $_ inside a C<grep> or C<map> block, a code block embedded in a
3928 regular expression, or an @INC filter (a subroutine returned by a
3929 subroutine in @INC) used to result in double frees or crashes
3930 [perl #91880, #92254, #92256].
3934 C<eval> returns C<undef> in scalar context or an empty list in list
3935 context when there is a run-time error. When C<eval> was passed a
3936 string in list context and a syntax error occurred, it used to return a
3937 list containing a single undefined element. Now it returns an empty
3938 list in list context for all errors [perl #80630].
3942 C<goto &func> no longer crashes, but produces an error message, when
3943 the unwinding of the current subroutine's scope fires a destructor that
3944 undefines the subroutine being "goneto" [perl #99850].
3948 Perl now holds an extra reference count on the package that code is
3949 currently compiling in. This means that the following code no longer
3950 crashes [perl #101486]:
3953 BEGIN {*Foo:: = *Bar::}
3958 The C<x> repetition operator no longer crashes on 64-bit builds with large
3959 repeat counts [perl #94560].
3963 Calling C<require> on an implicit C<$_> when C<*CORE::GLOBAL::require> has
3964 been overridden does not segfault anymore, and C<$_> is now passed to the
3965 overriding subroutine [perl #78260].
3969 C<use> and C<require> are no longer affected by the I/O layers active in
3970 the caller's scope (enabled by L<open.pm|open>) [perl #96008].
3974 C<our $::é; $é> (which is invalid) no longer produces the "Compilation
3975 error at lib/utf8_heavy.pl..." error message, which it started emitting in
3976 5.10.0 [perl #99984].
3980 On 64-bit systems, C<read()> now understands large string offsets beyond
3985 Errors that occur when processing subroutine attributes no longer cause the
3986 subroutine's op tree to leak.
3990 Passing the same constant subroutine to both C<index> and C<formline> no
3991 longer causes one or the other to fail [perl #89218]. (5.14.1)
3995 List assignment to lexical variables declared with attributes in the same
3996 statement (C<my ($x,@y) : blimp = (72,94)>) stopped working in Perl 5.8.0.
3997 It has now been fixed.
4001 Perl 5.10.0 introduced some faulty logic that made "U*" in the middle of
4002 a pack template equivalent to "U0" if the input string was empty. This has
4003 been fixed [perl #90160].
4007 Destructors on objects were not called during global destruction on objects
4008 that were not referenced by any scalars. This could happen if an array
4009 element were blessed (e.g., C<bless \$a[0]>) or if a closure referenced a
4010 blessed variable (C<bless \my @a; sub foo { @a }>).
4012 Now there is an extra pass during global destruction to fire destructors on
4013 any objects that might be left after the usual passes that check for
4014 objects referenced by scalars [perl #36347].
4018 Fixed a case where it was possible that a freed buffer may have been read
4019 from when parsing a here document [perl #90128]. (5.14.1)
4023 C<each(I<ARRAY>)> is now wrapped in C<defined(...)>, like C<each(I<HASH>)>,
4024 inside a C<while> condition [perl #90888].
4028 A problem with context propagation when a C<do> block is an argument to
4029 C<return> has been fixed. It used to cause C<undef> to be returned in
4030 some cases of a C<return> inside an C<if> block which itself is followed by
4035 Calling C<index> with a tainted constant no longer causes constants in
4036 subsequently compiled code to become tainted [perl #64804].
4040 Infinite loops like C<1 while 1> used to stop C<strict 'subs'> mode from
4041 working for the rest of the block.t
4045 For list assignments like C<($a,$b) = ($b,$a)>, Perl has to make a copy of
4046 the items on the right-hand side before assignment them to the left. For
4047 efficiency's sake, it assigns the values on the right straight to the items
4048 on the left if no one variable is mentioned on both sides, as in C<($a,$b) =
4049 ($c,$d)>. The logic for determining when it can cheat was faulty, in that
4050 C<&&> and C<||> on the right-hand side could fool it. So C<($a,$b) =
4051 $some_true_value && ($b,$a)> would end up assigning the value of C<$b> to
4056 Perl no longer tries to apply lvalue context to the string in
4057 C<("string", $variable) ||= 1> (which used to be an error). Since the
4058 left-hand side of C<||=> is evaluated in scalar context, that's a scalar
4059 comma operator, which gives all but the last item void context. There is
4060 no such thing as void lvalue context, so it was a mistake for Perl to try
4061 to force it [perl #96942].
4065 C<caller> no longer leaks memory when called from the DB package if
4066 C<@DB::args> was assigned to after the first call to C<caller>. L<Carp>
4067 was triggering this bug [perl #97010].
4071 C<close> and similar filehandle functions, when called on built-in global
4072 variables (like C<$+>), used to die if the variable happened to hold the
4073 undefined value, instead of producing the usual "Use of uninitialized
4078 When autovivified file handles were introduced in Perl 5.6.0, C<readline>
4079 was inadvertently made to autovivify when called as C<readline($foo)> (but
4080 not as C<E<lt>$fooE<gt>>). It has now been fixed never to autovivify.
4084 Calling an undefined anonymous subroutine (e.g., what $x holds after
4085 C<undef &{$x = sub{}}>) used to cause a "Not a CODE reference" error, which
4086 has been corrected to "Undefined subroutine called" [perl #71154].
4090 Causing C<@DB::args> to be freed between uses of C<caller> no longer
4091 results in a crash [perl #93320].
4095 C<setpgrp($foo)> used to be equivalent to C<($foo, setpgrp)>, because
4096 C<setpgrp> was ignoring its argument if there was just one. Now it is
4097 equivalent to C<setpgrp($foo,0)>.
4101 C<shmread> was not setting the scalar flags correctly when reading from
4102 shared memory, causing the existing cached numeric representation in the
4103 scalar to persist [perl #98480].
4107 C<++> and C<--> now work on copies of globs, instead of dying.
4111 C<splice()> doesn't warn when truncating
4113 You can now limit the size of an array using C<splice(@a,MAX_LEN)> without
4114 worrying about warnings.
4118 C<< $$ >> is no longer tainted. Since this value comes directly from
4119 C<< getpid() >>, it is always safe.
4123 The parser no longer leaks a filehandle if STDIN was closed before parsing
4124 started [perl #37033].
4128 C<< die; >> with a non-reference, non-string, or magical (e.g., tainted)
4129 value in $@ now properly propagates that value [perl #111654].
4133 =head1 Known Problems
4139 On Solaris, we have two kinds of failure.
4141 If F<make> is Sun's F<make≥>, we get an error about a badly formed macro
4142 assignment in the F<Makefile>. That happens when F<./Configure> tries to
4143 make depends. F<Configure> then exits 0, but further F<make>-ing fails.
4145 If F<make> is F<gmake>, F<Configure> completes, then we get errors related
4146 to F</usr/include/stdbool.h>
4150 The following CPAN modules have test failures with perl 5.16. Patches have
4151 been submitted for all of these, so hopefully there will be new releases
4158 L<Date::Pcalc> version 6.1
4162 L<Module::CPANTS::Analyse> version 0.85
4164 This fails due to problems in L<Module::Find> 0.10 and L<File::MMagic>
4169 L<PerlIO::Util> version 0.72
4175 =head1 Acknowledgements
4177 Perl 5.16.0 represents approximately 12 months of development since Perl
4178 5.14.0 and contains approximately 590,000 lines of changes across 2,500
4179 files from 137 authors.
4181 Perl continues to flourish into its third decade thanks to a vibrant
4182 community of users and developers. The following people are known to
4183 have contributed the improvements that became Perl 5.14.1:
4185 Aaron Crane, Abhijit Menon-Sen, Abigail, Alan Haggai Alavi, Alberto
4186 Simões, Alexandr Ciornii, Andreas König, Andy Dougherty, Aristotle
4187 Pagaltzis, Bo Johansson, Bo Lindbergh, brian d foy, Brian Fraser, Brian
4188 Greenfield, Carl Hayter, Chas. Owens, Chia-liang Kao, Chip Salzenberg,
4189 Chris 'BinGOs' Williams, Christian Hansen, Christopher J. Madsen,
4190 chromatic, Claes Jacobsson, Claudio Ramirez, Craig A. Berry, Damian
4191 Conway, Daniel Kahn Gillmor, Darin McBride, Dave Rolsky, David Cantrell,
4192 David Golden, David Leadbeater, David Mitchell, Dee Newcum, Dennis
4193 Kaarsemaker, Dominic Hargreaves, Douglas Christopher Wilson, Eric Brine,
4194 Father Chrysostomos, Florian Ragwitz, Frederic Briere, George Greer,
4195 Gerard Goossen, Gisle Aas, H.Merijn Brand, Hojung Youn, Ian Goodacre,
4196 James E Keenan, Jan Dubois, Jerry D. Hedden, Jesse Luehrs, Jesse
4197 Vincent, Jilles Tjoelker, Jim Cromie, Jim Meyering, Joel Berger, Johan
4198 Vromans, Johannes Plunien, John Hawkinson, John P. Linderman, John
4199 Peacock, Joshua ben Jore, Juerd Waalboer, Karl Williamson, Karthik
4200 Rajagopalan, Keith Thompson, Kevin J. Woolley, Kevin Ryde, Laurent
4201 Dami, Leo Lapworth, Leon Brocard, Leon Timmermans, Louis Strous, Lukas
4202 Mai, Marc Green, Marcel Grünauer, Mark A. Stratman, Mark Dootson, Mark
4203 Jason Dominus, Martin Hasch, Matthew Horsfall, Max Maischein, Michael G
4204 Schwern, Michael Witten, Mike Sheldrake, Moritz Lenz, Nicholas Clark,
4205 Niko Tyni, Nuno Carvalho, Pau Amma, Paul Evans, Paul Green, Paul
4206 Johnson, Perlover, Peter John Acklam, Peter Martini, Peter Scott, Phil
4207 Monsen, Pino Toscano, Rafael Garcia-Suarez, Rainer Tammer, Reini Urban,
4208 Ricardo Signes, Robin Barker, Rodolfo Carvalho, Salvador Fandiño, Sam
4209 Kimbrel, Samuel Thibault, Shawn M Moore, Shigeya Suzuki, Shlomi Fish,
4210 Sisyphus, Slaven Rezic, Spiros Denaxas, Steffen Müller, Steffen
4211 Schwigon, Stephen Bennett, Stephen Oberholtzer, Stevan Little, Steve
4212 Hay, Steve Peters, Thomas Sibley, Thorsten Glaser, Timothe Litt, Todd
4213 Rinaldo, Tom Christiansen, Tom Hukins, Tony Cook, Vadim Konovalov,
4214 Vincent Pit, Vladimir Timofeev, Walt Mankowski, Yves Orton, Zefram,
4215 Zsbán Ambrus, Ævar Arnfjörð Bjarmason.
4217 The list above is almost certainly incomplete as it is automatically
4218 generated from version control history. In particular, it does not
4219 include the names of the (very much appreciated) contributors who
4220 reported issues to the Perl bug tracker.
4222 Many of the changes included in this version originated in the CPAN
4223 modules included in Perl's core. We're grateful to the entire CPAN
4224 community for helping Perl to flourish.
4226 For a more complete list of all of Perl's historical contributors,
4227 please see the F<AUTHORS> file in the Perl source distribution.
4229 =head1 Reporting Bugs
4231 If you find what you think is a bug, you might check the articles
4232 recently posted to the comp.lang.perl.misc newsgroup and the perl
4233 bug database at L<http://rt.perl.org/perlbug/>. There may also be
4234 information at L<http://www.perl.org/>, the Perl Home Page.
4236 If you believe you have an unreported bug, please run the L<perlbug>
4237 program included with your release. Be sure to trim your bug down
4238 to a tiny but sufficient test case. Your bug report, along with the
4239 output of C<perl -V>, will be sent off to perlbug@perl.org to be
4240 analysed by the Perl porting team.
4242 If the bug you are reporting has security implications, which make it
4243 inappropriate to send to a publicly archived mailing list, then please
4244 send it to perl5-security-report@perl.org. This points to a closed
4245 subscription unarchived mailing list, which includes all the core
4246 committers, who will be able to help assess the impact of issues, figure
4247 out a resolution, and help co-ordinate the release of patches to
4248 mitigate or fix the problem across all platforms on which Perl is
4249 supported. Please only use this address for security issues in the Perl
4250 core, not for modules independently distributed on CPAN.
4254 The F<Changes> file for an explanation of how to view exhaustive details
4257 The F<INSTALL> file for how to build Perl.
4259 The F<README> file for general stuff.
4261 The F<Artistic> and F<Copying> files for copyright information.