5 [ this is a template for a new perldelta file. Any text flagged as
6 XXX needs to be processed before release. ]
8 perldelta - what is new for perl v5.13.1
12 This document describes differences between the 5.13.0 release and
15 If you are upgrading from an earlier release such as 5.10, first read
16 L<perl5120delta>, which describes differences between 5.10 and
21 XXX Any important notices here
23 =head1 Incompatible Changes
27 The backslash-c construct was designed as a way of specifying
28 non-printable characters, but there were no restrictions (on ASCII
29 platforms) on what the character following the C<c> could be. Now, that
30 character must be one of the ASCII characters.
32 =head2 localised tied hashes, arrays and scalars are no longed tied
39 # here, @a is a now a new, untied array
41 # here, @a refers again to the old, tied array
43 The new local array used to be made tied too, which was fairly pointless,
44 and has now been fixed. This fix could however potentially cause a change
45 in behaviour of some code.
47 =head1 Core Enhancements
49 XXX New core language features go here. Summarise user-visible core language
50 enhancements. Particularly prominent performance optimisations could go
51 here, but most should go in the L</Performance Enhancements> section.
53 =head2 Exception Handling Reliability
55 Several changes have been made to the way C<die>, C<warn>, and C<$@>
56 behave, in order to make them more reliable and consistent.
58 When an exception is thrown inside an C<eval>, the exception is no
59 longer at risk of being clobbered by code running during unwinding
60 (e.g., destructors). Previously, the exception was written into C<$@>
61 early in the throwing process, and would be overwritten if C<eval> was
62 used internally in the destructor for an object that had to be freed
63 while exiting from the outer C<eval>. Now the exception is written
64 into C<$@> last thing before exiting the outer C<eval>, so the code
65 running immediately thereafter can rely on the value in C<$@> correctly
66 corresponding to that C<eval>.
68 Likewise, a C<local $@> inside an C<eval> will no longer clobber any
69 exception thrown in its scope. Previously, the restoration of C<$@> upon
70 unwinding would overwrite any exception being thrown. Now the exception
71 gets to the C<eval> anyway. So C<local $@> is safe inside an C<eval>,
72 albeit of rather limited use.
74 Exceptions thrown from object destructors no longer modify the C<$@>
75 of the surrounding context. (If the surrounding context was exception
76 unwinding, this used to be another way to clobber the exception being
77 thrown. Due to the above change it no longer has that significance,
78 but there are other situations where C<$@> is significant.) Previously
79 such an exception was sometimes emitted as a warning, and then either
80 string-appended to the surrounding C<$@> or completely replaced the
81 surrounding C<$@>, depending on whether that exception and the surrounding
82 C<$@> were strings or objects. Now, an exception in this situation is
83 always emitted as a warning, leaving the surrounding C<$@> untouched.
84 In addition to object destructors, this also affects any function call
85 performed by XS code using the C<G_KEEPERR> flag.
87 C<$@> is also no longer used as an internal temporary variable when
88 preparing to C<die>. Previously it was internally necessary to put
89 any exception object (any non-string exception) into C<$@> first,
90 before it could be used as an exception. (The C API still offers the
91 old option, so an XS module might still clobber C<$@> in the old way.)
92 This change together with the foregoing means that, in various places,
93 C<$@> may be observed to contain its previously-assigned value, rather
94 than having been overwritten by recent exception-related activity.
96 Warnings for C<warn> can now be objects, in the same way as exceptions
97 for C<die>. If an object-based warning gets the default handling,
98 of writing to standard error, it will of course still be stringified
99 along the way. But a C<$SIG{__WARN__}> handler will now receive an
100 object-based warning as an object, where previously it was passed the
101 result of stringifying the object.
105 XXX List any platforms that this version of perl compiles on, that previous
106 versions did not. These will either be enabled by new files in the F<hints/>
107 directories, or new subdirectories and F<README> files at the top level of the
110 =head1 Modules and Pragmata
112 XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
113 go here. If Module::CoreList is updated, generate an initial draft of the
114 following sections using F<Porting/corelist-perldelta.pl>, which prints stub
115 entries to STDOUT. Results can be pasted in place of the '=head2' entries
116 below. A paragraph summary for important changes should then be added by hand.
117 In an ideal world, dual-life modules would have a F<Changes> file that could be
120 =head2 New Modules and Pragmata
122 =head2 Pragmata Changes
124 =head2 Updated Modules
128 =item Perl 4 C<.pl> libraries
130 These historical libraries have been minimally modified to avoid using
131 C<$[>. This is to prepare them for the deprecation of C<$[>.
135 A bug has been fixed when deparsing a nextstate op that has both a
136 change of package (relative to the previous nextstate), or a change of
137 C<%^H> or other state, and a label. Previously the label was emitted
138 first, leading to syntactically invalid output because a label is not
139 permitted immediately before a package declaration, B<BEGIN> block,
140 or some other things. Now the label is emitted last.
144 =head2 Removed Modules and Pragmata
146 =head1 Utility Changes
148 XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
149 here. Most of these are built within the directories F<utils> and F<x2p>.
159 =head1 New Documentation
161 XXX Changes which create B<new> files in F<pod/> go here.
171 =head1 Changes to Existing Documentation
173 XXX Changes which significantly change existing files in F<pod/> go here.
174 Any changes to F<pod/perldiag.pod> should go in L</New or Changed Diagnostics>.
177 =head1 Performance Enhancements
179 XXX Changes which enhance performance without changing behaviour go here. There
180 may well be none in a stable release.
190 =head1 Installation and Configuration Improvements
192 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
195 =head2 Configuration improvements
199 =head2 Compilation improvements
203 =head2 Platform Specific Changes
207 =item XXX-some-platform
213 =head1 Selected Bug Fixes
215 XXX Important bug fixes in the core language are summarised here.
216 Bug fixes in files in F<ext/> and F<lib/> are best summarised in
217 L</Modules and Pragmata>.
227 =head1 New or Changed Diagnostics
229 XXX New or changed warnings emitted by the core's C<C> code go here.
239 =head1 Changed Internals
241 XXX Changes which affect the interface available to C<XS> code go here.
253 XXX Changes which create B<new> files in F<t/> go here. Changes to
254 existing files in F<t/> aren't worth summarising, although the bugs that
255 they represent may be.
265 =head1 Known Problems
267 XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
268 tests that had to be C<TODO>ed for the release would be noted here, unless
269 they were specific to a particular platform (see below).
271 This is a list of some significant unfixed bugs, which are regressions
272 from either 5.XXX.XXX or 5.XXX.XXX.
284 XXX Add any new known deprecations here.
286 The following items are now deprecated.
296 =head1 Platform Specific Notes
298 XXX Any changes specific to a particular platform. VMS and Win32 are the usual
299 stars here. It's probably best to group changes under the same section layout
300 as the main perldelta
304 XXX If any significant core contributor has died, we've added a short obituary
307 =head1 Acknowledgements
309 XXX The list of people to thank goes here.
312 =head1 Reporting Bugs
314 If you find what you think is a bug, you might check the articles
315 recently posted to the comp.lang.perl.misc newsgroup and the perl
316 bug database at http://rt.perl.org/perlbug/ . There may also be
317 information at http://www.perl.org/ , the Perl Home Page.
319 If you believe you have an unreported bug, please run the B<perlbug>
320 program included with your release. Be sure to trim your bug down
321 to a tiny but sufficient test case. Your bug report, along with the
322 output of C<perl -V>, will be sent off to perlbug@perl.org to be
323 analysed by the Perl porting team.
325 If the bug you are reporting has security implications, which make it
326 inappropriate to send to a publicly archived mailing list, then please send
327 it to perl5-security-report@perl.org. This points to a closed subscription
328 unarchived mailing list, which includes all the core committers, who be able
329 to help assess the impact of issues, figure out a resolution, and help
330 co-ordinate the release of patches to mitigate or fix the problem across all
331 platforms on which Perl is supported. Please only use this address for
332 security issues in the Perl core, not for modules independently
337 The F<Changes> file for an explanation of how to view exhaustive details
340 The F<INSTALL> file for how to build Perl.
342 The F<README> file for general stuff.
344 The F<Artistic> and F<Copying> files for copyright information.