5 [ this is a template for a new perldelta file. Any text flagged as XXX needs
6 to be processed before release. ]
8 perldelta - what is new for perl v5.17.3
12 This document describes differences between the 5.17.2 release and the 5.17.3
15 If you are upgrading from an earlier release such as 5.17.1, first read
16 L<perl5172delta>, which describes differences between 5.17.1 and 5.17.2.
20 XXX Any important notices here
22 =head1 Core Enhancements
24 XXX New core language features go here. Summarize user-visible core language
25 enhancements. Particularly prominent performance optimisations could go
26 here, but most should go in the L</Performance Enhancements> section.
28 [ List each enhancement as a =head2 entry ]
30 =head2 Computed Labels
32 The loop controls C<next>, C<last> and C<redo>, and the special C<dump>
33 operator, now allow arbitrary expressions to be used to compute labels at
34 run time. Previously, any argument that was not a constant was treated as
39 XXX Any security-related notices go here. In particular, any security
40 vulnerabilities closed should be noted here rather than in the
41 L</Selected Bug Fixes> section.
43 [ List each security issue as a =head2 entry ]
45 =head1 Incompatible Changes
47 [ List each incompatible change as a =head2 entry ]
49 =head2 C<$ENV{foo} = undef> deletes value from environ, like C<delete $ENV{foo}>
51 This facilitates use of C<local()> with C<%ENV> entries. In previous
52 versions of Perl, C<undef> was converted to the empty string.
54 =head2 Defined values stored in environment are forced to byte strings
56 A value stored in an environment variable has always been stringified. In
57 this release, it is converted to be only a byte string. First, it is forced
58 to be a only a string. Then if the string is utf8 and the equivalent of
59 C<utf8::downgrade()> works, that result is used; otherwise, the equivalent of
60 C<utf8::encode()> is used, and a warning is issued about wide characters
63 =head2 C<given> now aliases the global C<$_>
65 Instead of assigning to an implicit lexical C<$_>, C<given> now makes the
66 global C<$_> an alias for its argument, just like C<foreach>. However, it
67 still uses lexical C<$_> if there is lexical C<$_> in scope (again, just like
72 XXX Any deprecated features, syntax, modules etc. should be listed here. In
73 particular, deprecated modules should be listed here even if they are listed as
74 an updated module in the L</Modules and Pragmata> section.
76 [ List each deprecation as a =head2 entry ]
78 =head1 Performance Enhancements
80 XXX Changes which enhance performance without changing behaviour go here.
81 There may well be none in a stable release.
83 [ List each enhancement as a =item entry ]
93 =head1 Modules and Pragmata
95 XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
96 go here. If Module::CoreList is updated, generate an initial draft of the
97 following sections using F<Porting/corelist-perldelta.pl>, which prints stub
98 entries to STDOUT. Results can be pasted in place of the '=head2' entries
99 below. A paragraph summary for important changes should then be added by hand.
100 In an ideal world, dual-life modules would have a F<Changes> file that could be
103 [ Within each section, list entries as a =item entry ]
105 =head2 New Modules and Pragmata
115 =head2 Updated Modules and Pragmata
121 L<B> has been upgraded from version 1.36 to 1.37. All C<CVf_*> and C<GVf_*>
122 and more SV-related flag values are now provided as constants in the C<B::>
123 namespace and available for export. The default export list has not changed.
127 L<B::Concise> has been upgraded from version 1.91 to 1.92. XXX Add change
132 L<B::Deparse> has been upgraded from version 1.15 to 1.16. It now deparses
133 loop controls with the correct precedence.
137 L<Compress::Raw::Bzip2> has been upgraded from version 2.05201 to 2.055. XXX
142 L<Compress::Raw::Zlib> has been upgraded from version 2.05401 to 2.056. XXX
147 L<Data::Dumper> has been upgraded from version 2.135_06 to 2.135_07. It has
148 been optimized to only build a seen-scalar hash as necessary, thereby speeding
149 up serialization drastically.
153 L<Devel::Peek> has been upgraded from version 1.08 to 1.09. XXX Add change
158 L<Encode> has been upgraded from version 2.44 to 2.46. XXX Add change notes.
162 L<IO::Compress> has been upgraded from version 2.052 to 2.055. XXX Add change
167 L<Module::Build> has been upgraded from version 0.40 to 0.4002. XXX Add change
172 L<Module::CoreList> has been upgraded from version 2.69 to 2.70. XXX Add
177 L<Module::Load::Conditional> has been upgraded from version 0.50 to 0.54. XXX
182 L<Module::Metadata> has been upgraded from version 1.000009 to 1.000010. XXX
187 L<re> has been upgraded from version 0.21 to 0.22. XXX Add change notes.
191 L<Storable> has been upgraded from version 2.37 to 2.38. It can now freeze
192 and thaw vstrings correctly. This causes a slight incompatible change in
193 the storage format, so the format version has increased to 2.9.
197 L<Time::Local> has been upgraded from version 1.2000 to 1.2300. XXX Add change
202 L<Unicode::UCD> has been upgraded from version 0.44 to 0.45. XXX Add change
207 L<Win32CORE> has been upgraded from version 0.02 to 0.03. XXX Add change
212 =head2 Removed Modules and Pragmata
224 XXX Changes to files in F<pod/> go here. Consider grouping entries by file and
225 be sure to link to the appropriate page, e.g. L<perlfunc>.
227 =head2 New Documentation
229 XXX Changes which create B<new> files in F<pod/> go here.
233 XXX Description of the purpose of the new file here
235 =head2 Changes to Existing Documentation
237 XXX Changes which significantly change existing files in F<pod/> go here.
238 However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
241 =head3 L<perlfunc>, L<perlop>
247 Loop control verbs (C<dump>, C<goto>, C<next>, C<last> and C<redo>) have
248 always had the same precedence as assignment operators, but this was never
249 documented until now.
255 The following additions or changes have been made to diagnostic output,
256 including warnings and fatal error messages. For the complete list of
257 diagnostic messages, see L<perldiag>.
259 XXX New or changed warnings emitted by the core's C<C> code go here. Also
260 include any changes in L<perldiag> that reconcile it to the C<C> code.
262 =head2 New Diagnostics
264 XXX Newly added diagnostic messages go under here, separated into New Errors
273 L<Unterminated delimiter for here document|perldiag/"Unterminated delimiter for here document">
275 This message now occurs when a here document label has an initial quotation
276 mark but the final quotation mark is missing.
278 This replaces a bogus and misleading error message about not finding the
279 label itself [perl #114104].
289 L<Wide character in setenv|perldiag/"Wide character in setenv">
291 Attempts to put wide characters into environment variables via C<%ENV> now
292 provoke this warning.
296 =head2 Changes to Existing Diagnostics
298 XXX Changes (i.e. rewording) of diagnostic messages go here
304 XXX Describe change here
308 =head1 Utility Changes
310 XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here.
311 Most of these are built within the directories F<utils> and F<x2p>.
313 [ List utility changes as a =head3 entry for each utility and =item
314 entries for each change
315 Use L<XXX> with program names to get proper documentation linking. ]
327 =head1 Configuration and Compilation
329 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
330 go here. Any other changes to the Perl build process should be listed here.
331 However, any platform-specific changes should be listed in the
332 L</Platform Support> section, instead.
334 [ List changes as a =item entry ].
346 XXX Any significant changes to the testing of a freshly built perl should be
347 listed here. Changes which create B<new> files in F<t/> go here as do any
348 large changes to the testing harness (e.g. when parallel testing was added).
349 Changes to existing files in F<t/> aren't worth summarizing, although the bugs
350 that they represent may be covered elsewhere.
352 [ List each test improvement as a =item entry ]
362 =head1 Platform Support
364 XXX Any changes to platform support should be listed in the sections below.
366 [ Within the sections, list each platform as a =item entry with specific
367 changes as paragraphs below it. ]
371 XXX List any platforms that this version of perl compiles on, that previous
372 versions did not . These will either be enabled by new files in the F<hints/>
373 directories, or new subdirectories and F<README> files at the top level of the
378 =item XXX-some-platform
384 =head2 Discontinued Platforms
386 XXX List any platforms that this version of perl no longer compiles on.
390 =item XXX-some-platform
396 =head2 Platform-Specific Notes
398 XXX List any changes for specific platforms. This could include configuration
399 and compilation changes or changes in portability/compatibility. However,
400 changes within modules for platforms should generally be listed in the
401 L</Modules and Pragmata> section.
405 =item XXX-some-platform
411 =head1 Internal Changes
413 XXX Changes which affect the interface available to C<XS> code go here. Other
414 significant internal changes for future core maintainers should be noted as
417 [ List each change as a =item entry ]
427 =head1 Selected Bug Fixes
429 XXX Important bug fixes in the core language are summarized here. Bug fixes in
430 files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
432 [ List each fix as a =item entry ]
438 C<\w> now matches the code points U+200C (ZERO WIDTH NON-JOINER) and
439 U+200D (ZERO WIDTH JOINER). C<\W> no longer matches these. This change
440 is because Unicode corrected their definition of what C<\w> should match.
444 C<dump LABEL> no longer leaks its label.
448 Constant folding no longer changes the behaviour of functions like C<stat()>
449 and C<truncate()> that can take either filenames or handles.
450 C<stat 1 ? foo : bar> nows treats its argument as a file name (since it is
451 an arbitrary expression), rather than the handle "foo".
455 C<truncate FOO, $len> no longer falls back to treating "FOO" as a file name
456 if the filehandle has been deleted. This was broken in Perl 5.16.0.
460 Subroutine redefinitions after sub-to-glob and glob-to-glob assignments no
461 longer cause double frees or panic messages.
465 C<s///> now turns vstrings into plain strings when performing a
466 substitution, even if the resulting string is the same (C<s/a/a/>).
470 Prototype mismatch warnings no longer erroneously treat constant subs as
471 having no prototype when they actually have "".
475 Constant subroutines and forward declarations no longer prevent prototype
476 mismatch warnings from omitting the sub name.
480 C<undef> on a subroutine now clears call checkers.
484 The C<ref> operator started leaking memory on blessed objects in Perl
485 5.16.0. This has been fixed [perl #114340].
489 =head1 Known Problems
491 XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
492 tests that had to be C<TODO>ed for the release would be noted here. Unfixed
493 platform specific bugs also go here.
495 [ List each fix as a =item entry ]
507 XXX If any significant core contributor has died, we've added a short obituary
510 =head1 Acknowledgements
512 XXX Generate this with:
514 perl Porting/acknowledgements.pl v5.17.2..HEAD
516 =head1 Reporting Bugs
518 If you find what you think is a bug, you might check the articles recently
519 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
520 http://rt.perl.org/perlbug/ . There may also be information at
521 http://www.perl.org/ , the Perl Home Page.
523 If you believe you have an unreported bug, please run the L<perlbug> program
524 included with your release. Be sure to trim your bug down to a tiny but
525 sufficient test case. Your bug report, along with the output of C<perl -V>,
526 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
528 If the bug you are reporting has security implications, which make it
529 inappropriate to send to a publicly archived mailing list, then please send it
530 to perl5-security-report@perl.org. This points to a closed subscription
531 unarchived mailing list, which includes all the core committers, who will be
532 able to help assess the impact of issues, figure out a resolution, and help
533 co-ordinate the release of patches to mitigate or fix the problem across all
534 platforms on which Perl is supported. Please only use this address for
535 security issues in the Perl core, not for modules independently distributed on
540 The F<Changes> file for an explanation of how to view exhaustive details on
543 The F<INSTALL> file for how to build Perl.
545 The F<README> file for general stuff.
547 The F<Artistic> and F<Copying> files for copyright information.