This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Following fbcaf61123069fe4, remove perlmain.c from the initial list of C files.
[perl5.git] / pod / perldelta.pod
CommitLineData
3a5c9134
CBW
1=encoding utf8
2
59773fc7 3=for comment
3ad6135d 4This has been completed up to dbe92b04c, except for 1b9f127-fad448f, which
f295f417 5Karl Williamson says he will do.
59773fc7 6
3a5c9134
CBW
7=head1 NAME
8
9[ this is a template for a new perldelta file. Any text flagged as
10XXX needs to be processed before release. ]
11
12perldelta - what is new for perl v5.13.8
13
14=head1 DESCRIPTION
15
16This document describes differences between the 5.13.8 release and
17the 5.13.7 release.
18
dbbe2d83 19If you are upgrading from an earlier release such as 5.13.6, first read
3a5c9134
CBW
20L<perl5137delta>, which describes differences between 5.13.6 and
215.13.7.
22
23=head1 Notice
24
25XXX Any important notices here
26
27=head1 Core Enhancements
28
29XXX New core language features go here. Summarise user-visible core language
30enhancements. Particularly prominent performance optimisations could go
31here, but most should go in the L</Performance Enhancements> section.
32
33[ List each enhancement as a =head2 entry ]
34
b19934fb
NC
35=head2 C<-d:-foo> calls C<Devel::foo::unimport>
36
37The syntax C<-dI<B<:>foo>> was extended in 5.6.1 to make C<-dI<:fooB<=bar>>>
6a8c8694
FC
38equivalent to C<-MDevel::foo=bar>, which expands
39internally to C<use Devel::foo 'bar';>.
b19934fb
NC
40F<perl> now allows prefixing the module name with C<->, with the same
41semantics as C<-M>, I<i.e.>
42
43=over 4
44
45=item C<-d:-foo>
46
6a8c8694
FC
47Equivalent to C<-M-Devel::foo>, expands to
48C<no Devel::foo;>, calls C<< Devel::foo->unimport() >>
b19934fb
NC
49if the method exists.
50
51=item C<-d:-foo=bar>
52
6a8c8694
FC
53Equivalent to C<-M-Devel::foo=bar>, expands to C<no Devel::foo 'bar';>,
54calls C<< Devel::foo->unimport('bar') >> if the method exists.
b19934fb
NC
55
56=back
57
58This is particularly useful to suppresses the default actions of a
59C<Devel::*> module's C<import> method whilst still loading it for debugging.
60
3a5c9134
CBW
61=head1 Security
62
63XXX Any security-related notices go here. In particular, any security
64vulnerabilities closed should be noted here rather than in the
65L</Selected Bug Fixes> section.
66
67[ List each security issue as a =head2 entry ]
68
69=head1 Incompatible Changes
70
2dc78664 71=head2 Attempting to use C<:=> as an empty attribute list is now a syntax error
3a5c9134 72
2dc78664
NC
73Previously C<my $pi := 4;> was exactly equivalent to C<my $pi : = 4;>,
74with the C<:> being treated as the start of an attribute list, ending before
75the C<=>. The use of C<:=> to mean C<: => was deprecated in 5.12.0, and is now
76a syntax error. This will allow the future use of C<:=> as a new token.
3a5c9134 77
2dc78664
NC
78We find no Perl 5 code on CPAN using this construction, outside the core's
79tests for it, so we believe that this change will have very little impact on
80real-world codebases.
81
82If it is absolutely necessary to have empty attribute lists (for example,
baed7a72
NC
83because of a code generator) then avoid the error by adding a space before
84the C<=>.
3a5c9134
CBW
85
86=head1 Deprecations
87
88XXX Any deprecated features, syntax, modules etc. should be listed here.
89In particular, deprecated modules should be listed here even if they are
90listed as an updated module in the L</Modules and Pragmata> section.
91
92[ List each deprecation as a =head2 entry ]
93
59773fc7
FC
94=head2 C<?PATTERN?> is deprecated
95
96C<?PATTERN?> (without the initial m) has been deprecated and now produces
97a warning.
98
d59a8b3e
NC
99=head2 C<sv_compile_2op> is now deprecated
100
101The C<sv_compile_2op> is now deprecated, and will be removed. Searches suggest
102that nothing on CPAN is using it, so this should have zero impact.
103
104It attempted to provide an API to compile code down to an optree, but failed
105to bind correctly to lexicals in the enclosing scope. It's not possible to
106fix this problem within the constraints of its parameters and return value.
107
3a5c9134
CBW
108=head1 Performance Enhancements
109
110XXX Changes which enhance performance without changing behaviour go here. There
111may well be none in a stable release.
112
113[ List each enhancement as a =item entry ]
114
115=over 4
116
117=item *
118
119XXX
120
121=back
122
123=head1 Modules and Pragmata
124
125XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
126go here. If Module::CoreList is updated, generate an initial draft of the
127following sections using F<Porting/corelist-perldelta.pl>, which prints stub
128entries to STDOUT. Results can be pasted in place of the '=head2' entries
129below. A paragraph summary for important changes should then be added by hand.
130In an ideal world, dual-life modules would have a F<Changes> file that could be
131cribbed.
132
133[ Within each section, list entries as a =item entry ]
134
135=head2 New Modules and Pragmata
136
137=over 4
138
139=item *
140
141XXX
142
143=back
144
145=head2 Updated Modules and Pragmata
146
147=over 4
148
149=item *
150
39b09a1b
CBW
151C<IPC::Cmd> has been upgraded from 0.64 to 0.66
152
153Resolves an issue with splitting Win32 command lines
154and documentation enhancements.
155
156=item *
157
28502098
FR
158C<Memoize> has been upgraded from version 1.01_03 to 1.02.
159
160=item *
161
37fa6334 162C<MIME::Base64> has been upgraded from 3.10 to 3.13
2456140e
CBW
163
164Now provides encode_base64url and decode_base64url functions to process
165the base64 scheme for "URL applications".
166
167=item *
168
2638c0ff
FC
169C<overload> has been upgraded from 1.11 to 1.12.
170
171=item *
172
173C<PerlIO::scalar> has been upgraded from 0.10 to 0.11.
174
175A C<read> after a C<seek> beyond the end of the string no longer thinks it
176has data to read
177L<[perl #78716]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78716>.
178
179=item *
180
f295f417
FC
181C<re> has been upgraded from 0.14 to 0.15.
182
183=item *
184
5ebfb99c 185C<Socket> has been upgraded from 1.91 to 1.92.
b373eab8
FC
186
187It has several new functions for handling IPv6 addresses.
188
189=item *
190
d4238815
FC
191C<Time::HiRes> has been upgraded from 1.9721 to 1.9721_01.
192
193=item *
194
68adb2b0
CBW
195C<Unicode::Collate> has been upgraded from 0.67 to 0.68
196
197=item *
198
59773fc7 199C<Unicode::UCD> has been upgraded from 0.29 to 0.30.
3a5c9134 200
c2e0289e
FC
201=item *
202
203C<version> has been upgraded from 0.82 to 0.86.
204
3a5c9134
CBW
205=back
206
207=head2 Removed Modules and Pragmata
208
209=over 4
210
211=item *
212
213XXX
214
215=back
216
217=head1 Documentation
218
219XXX Changes to files in F<pod/> go here. Consider grouping entries by
220file and be sure to link to the appropriate page, e.g. L<perlfunc>.
221
222=head2 New Documentation
223
224XXX Changes which create B<new> files in F<pod/> go here.
225
226=head3 L<XXX>
227
228XXX Description of the purpose of the new file here
229
230=head2 Changes to Existing Documentation
231
232XXX Changes which significantly change existing files in F<pod/> go here.
233However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
234section.
235
236=head3 L<XXX>
237
238=over 4
239
240=item *
241
242XXX Description of the change here
243
244=back
245
246=head1 Diagnostics
247
248The following additions or changes have been made to diagnostic output,
249including warnings and fatal error messages. For the complete list of
250diagnostic messages, see L<perldiag>.
251
252XXX New or changed warnings emitted by the core's C<C> code go here. Also
253include any changes in L<perldiag> that reconcile it to the C<C> code.
254
255[ Within each section, list entries as a =item entry ]
256
257=head2 New Diagnostics
258
259XXX Newly added diagnostic messages go here
260
261=over 4
262
263=item *
264
265XXX
266
267=back
268
269=head2 Changes to Existing Diagnostics
270
271XXX Changes (i.e. rewording) of diagnostic messages go here
272
273=over 4
274
275=item *
276
277XXX
278
279=back
280
281=head1 Utility Changes
282
283XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
284here. Most of these are built within the directories F<utils> and F<x2p>.
285
286[ List utility changes as a =head3 entry for each utility and =item
287entries for each change
288Use L<XXX> with program names to get proper documentation linking. ]
289
290=head3 L<XXX>
291
292=over 4
293
294=item *
295
296XXX
297
298=back
299
300=head1 Configuration and Compilation
301
302XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
303go here. Any other changes to the Perl build process should be listed here.
304However, any platform-specific changes should be listed in the
305L</Platform Support> section, instead.
306
307[ List changes as a =item entry ].
308
309=over 4
310
311=item *
312
313XXX
314
315=back
316
317=head1 Testing
318
319XXX Any significant changes to the testing of a freshly built perl should be
320listed here. Changes which create B<new> files in F<t/> go here as do any
321large changes to the testing harness (e.g. when parallel testing was added).
322Changes to existing files in F<t/> aren't worth summarising, although the bugs
323that they represent may be covered elsewhere.
324
325[ List each test improvement as a =item entry ]
326
327=over 4
328
329=item *
330
331XXX
332
333=back
334
335=head1 Platform Support
336
337XXX Any changes to platform support should be listed in the sections below.
338
339[ Within the sections, list each platform as a =item entry with specific
340changes as paragraphs below it. ]
341
342=head2 New Platforms
343
344XXX List any platforms that this version of perl compiles on, that previous
345versions did not. These will either be enabled by new files in the F<hints/>
346directories, or new subdirectories and F<README> files at the top level of the
347source tree.
348
349=over 4
350
351=item XXX-some-platform
352
353XXX
354
355=back
356
357=head2 Discontinued Platforms
358
359XXX List any platforms that this version of perl no longer compiles on.
360
361=over 4
362
363=item XXX-some-platform
364
365XXX
366
367=back
368
369=head2 Platform-Specific Notes
370
371XXX List any changes for specific platforms. This could include configuration
372and compilation changes or changes in portability/compatibility. However,
373changes within modules for platforms should generally be listed in the
374L</Modules and Pragmata> section.
375
376=over 4
377
378=item XXX-some-platform
379
380XXX
381
382=back
383
384=head1 Internal Changes
385
386XXX Changes which affect the interface available to C<XS> code go here.
387Other significant internal changes for future core maintainers should
388be noted as well.
389
390[ List each test improvement as a =item entry ]
391
392=over 4
393
394=item *
395
396XXX
397
398=back
399
400=head1 Selected Bug Fixes
401
402XXX Important bug fixes in the core language are summarised here.
403Bug fixes in files in F<ext/> and F<lib/> are best summarised in
404L</Modules and Pragmata>.
405
406[ List each fix as a =item entry ]
407
408=over 4
409
410=item *
411
88e9444c
NC
412C<BEGIN {require 5.12.0}> now behaves as documented, rather than behaving
413identically to C<use 5.12.0;>. Previously, C<require> in a C<BEGIN> block
414was erroneously executing the C<use feature ':5.12.0'> and
415C<use strict; use warnings;> behaviour, which only C<use> was documented to
b373eab8
FC
416provide
417L<[perl #69050]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=69050>.
418
419=item *
420
421C<use 5.42>
422L<[perl #69050]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=69050>,
423C<use 6> and C<no 5> no longer leak memory.
424
425=item *
426
427C<eval "BEGIN{die}"> no longer leaks memory on non-threaded builds.
3a5c9134 428
1428a560
FC
429=item *
430
431PerlIO no longer crashes when called recursively, e.g., from a signal
432handler. Now it just leaks memory
433L<[perl #75556]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75556>.
434
11cd2234
FC
435=item *
436
437Defining a constant with the same name as one of perl's special blocks
438(e.g., INIT) stopped working in 5.12.0, but has now been fixed
439L<[perl #78634]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78634>.
440
e3ef43a5
FC
441=item *
442
443A reference to a literal value used as a hash key (C<$hash{\"foo"}>) used
444to be stringified, even if the hash was tied
445L<[perl #79178]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=79178>.
446
3ad6135d
FC
447=item *
448
449A number of bugs with regular expression bracketed character classes
450have been fixed, mostly having to do with matching characters in the
451non-ASCII Latin-1 range.
452
453=item *
454
455A closure containing an C<if> statement followed by a constant or variable
456is no longer treated as a constant
457L<[perl #63540]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=63540>.
458
3a5c9134
CBW
459=back
460
461=head1 Known Problems
462
463XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
464tests that had to be C<TODO>ed for the release would be noted here, unless
465they were specific to a particular platform (see below).
466
467This is a list of some significant unfixed bugs, which are regressions
468from either 5.XXX.XXX or 5.XXX.XXX.
469
470[ List each fix as a =item entry ]
471
472=over 4
473
474=item *
475
3ad6135d 476XXX
3a5c9134
CBW
477
478=back
479
480=head1 Obituary
481
482XXX If any significant core contributor has died, we've added a short obituary
483here.
484
485=head1 Acknowledgements
486
487XXX The list of people to thank goes here.
488
489=head1 Reporting Bugs
490
491If you find what you think is a bug, you might check the articles
492recently posted to the comp.lang.perl.misc newsgroup and the perl
493bug database at http://rt.perl.org/perlbug/ . There may also be
494information at http://www.perl.org/ , the Perl Home Page.
495
496If you believe you have an unreported bug, please run the L<perlbug>
497program included with your release. Be sure to trim your bug down
498to a tiny but sufficient test case. Your bug report, along with the
499output of C<perl -V>, will be sent off to perlbug@perl.org to be
500analysed by the Perl porting team.
501
502If the bug you are reporting has security implications, which make it
503inappropriate to send to a publicly archived mailing list, then please send
504it to perl5-security-report@perl.org. This points to a closed subscription
505unarchived mailing list, which includes all the core committers, who be able
506to help assess the impact of issues, figure out a resolution, and help
507co-ordinate the release of patches to mitigate or fix the problem across all
508platforms on which Perl is supported. Please only use this address for
509security issues in the Perl core, not for modules independently
510distributed on CPAN.
511
512=head1 SEE ALSO
513
514The F<Changes> file for an explanation of how to view exhaustive details
515on what changed.
516
517The F<INSTALL> file for how to build Perl.
518
519The F<README> file for general stuff.
520
521The F<Artistic> and F<Copying> files for copyright information.
522
523=cut