This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for Carp dot
[perl5.git] / pod / perldelta.pod
CommitLineData
44691e6f
AB
1=encoding utf8
2
249950d7 3=for comment
c0f37554 4This has been completed up to 0aae26c14, except for:
10c62b23 5803e389 rurban CYG17 utf8 paths
ff4ff6f3 6d9298c1 rurban mymalloc isn't thread safe
249950d7 7
44691e6f
AB
8=head1 NAME
9
c1e74734
CBW
10[ this is a template for a new perldelta file. Any text flagged as
11XXX needs to be processed before release. ]
ad32999b 12
c1e74734 13perldelta - what is new for perl v5.15.8
88c5c971 14
c1e74734 15=head1 DESCRIPTION
8f12b018 16
c1e74734
CBW
17This document describes differences between the 5.15.7 release and
18the 5.15.8 release.
8f12b018 19
c1e74734
CBW
20If you are upgrading from an earlier release such as 5.15.6, first read
21L<perl5157delta>, which describes differences between 5.15.6 and
225.15.7.
26afcec5 23
c1e74734 24=head1 Notice
8f12b018 25
c1e74734 26XXX Any important notices here
d7fbd56d 27
c1e74734 28=head1 Core Enhancements
d7fbd56d 29
c1e74734
CBW
30XXX New core language features go here. Summarise user-visible core language
31enhancements. Particularly prominent performance optimisations could go
32here, but most should go in the L</Performance Enhancements> section.
d7fbd56d 33
c1e74734 34[ List each enhancement as a =head2 entry ]
711a3903 35
66cbab2c
KW
36=head2 Improved ability to mix locales and Unicode, including UTF-8 locales
37
38An optional parameter has been added to C<use locale>
39
40 use locale ':not_characters';
41
42which tells Perl to use all but the C<LC_CTYPE> and C<LC_COLLATE>
43portions of the current locale. Instead, the character set is assumed
44to be Unicode. This allows locales and Unicode to be seamlessly mixed,
45including the increasingly frequent UTF-8 locales. When using this
46hybrid form of locales, the C<:locale> layer to the L<open> pragma can
47be used to interface with the file system, and there are CPAN modules
48available for ARGV and environment variable conversions.
49
50Full details are in L<perllocale>.
51
628253b8
BF
52=head2 New function C<fc> and corresponding escape sequence C<\F> for Unicode foldcase
53
54Unicode foldcase is an extension to lowercase that gives better results
55when comparing two strings case-insensitively. It has long been used
56internally in regular expression C</i> matching. Now it is available
57explicitly through the new C<fc> function call (enabled by
58S<C<"use feature 'fc'">>, or C<use v5.16>, or explicitly callable via
249950d7 59C<CORE::fc>) or through the new C<\F> sequence in double-quotish
628253b8
BF
60strings.
61
62Full details are in L<perlfunc/fc>.
63
10c62b23
FC
64=head2 C<_> in subroutine prototypes
65
66The C<_> character in subroutine prototypes is now allowed before C<@> or
67C<%>.
68
c1e74734 69=head1 Security
711a3903 70
c1e74734
CBW
71XXX Any security-related notices go here. In particular, any security
72vulnerabilities closed should be noted here rather than in the
73L</Selected Bug Fixes> section.
711a3903 74
c1e74734 75[ List each security issue as a =head2 entry ]
6ba817f3 76
c1e74734 77=head1 Incompatible Changes
6ba817f3 78
c1e74734 79XXX For a release on a stable branch, this section aspires to be:
6b339779 80
c1e74734
CBW
81 There are no changes intentionally incompatible with 5.XXX.XXX
82 If any exist, they are bugs, and we request that you submit a
83 report. See L</Reporting Bugs> below.
6b339779 84
c1e74734 85[ List each incompatible change as a =head2 entry ]
b240fc0f 86
249950d7
FC
87=head2 Special blocks called in void context
88
89Special blocks (C<BEGIN>, C<CHECK>, C<INIT>, C<UNITCHECK>, C<END>) are now
90called in void context. This avoids wasteful copying of the result of the
91last statement [perl #108794].
92
eff8c8ec
FC
93=head2 The C<overloading> pragma and regexp objects
94
95With C<no overloading>, regular expression objects returned by C<qr//> are
96now stringified as "Regexp=REGEXP(0xbe600d)" instead of the regular
97expression itself [perl #108780].
98
84ecb73f
S
99=head2 Two XS typemap Entries removed
100
101Two presumably unused XS typemap entries have been removed from the
102core typemap: T_DATAUNIT and T_CALLBACK. If you are, against all odds,
103a user of these, please see the instructions on how to regain them
104in L<perlxstypemap>.
105
c1e74734 106=head1 Deprecations
b240fc0f 107
c1e74734
CBW
108XXX Any deprecated features, syntax, modules etc. should be listed here.
109In particular, deprecated modules should be listed here even if they are
110listed as an updated module in the L</Modules and Pragmata> section.
4e6ab4ad 111
c1e74734 112[ List each deprecation as a =head2 entry ]
4e6ab4ad 113
c1e74734 114=head1 Performance Enhancements
79e10968 115
c1e74734
CBW
116XXX Changes which enhance performance without changing behaviour go here. There
117may well be none in a stable release.
79e10968 118
c1e74734 119[ List each enhancement as a =item entry ]
ea88c40c 120
c1e74734 121=over 4
9d055b1a
CBW
122
123=item *
124
c1e74734 125XXX
cadced9f 126
c1e74734 127=back
cadced9f 128
c1e74734 129=head1 Modules and Pragmata
cadced9f 130
c1e74734
CBW
131XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
132go here. If Module::CoreList is updated, generate an initial draft of the
133following sections using F<Porting/corelist-perldelta.pl>, which prints stub
134entries to STDOUT. Results can be pasted in place of the '=head2' entries
135below. A paragraph summary for important changes should then be added by hand.
136In an ideal world, dual-life modules would have a F<Changes> file that could be
137cribbed.
cadced9f 138
c1e74734 139[ Within each section, list entries as a =item entry ]
07feb684 140
c1e74734 141=head2 New Modules and Pragmata
cadced9f 142
c1e74734 143=over 4
632c5d30
NC
144
145=item *
146
2f987927
FC
147The C<mmap> PerlIO layer is no longer implemented by perl itself, but has
148been moved out into the new L<PerlIO::mmap> module.
4e6e9b23 149
c1e74734 150=back
4e6e9b23 151
c1e74734 152=head2 Updated Modules and Pragmata
4e6e9b23 153
c1e74734 154=over 4
1887da8c
RS
155
156=item *
157
eeac62ad
FC
158L<arybase> has been upgraded from version 0.03 to version 0.04.
159
160List slices no longer modify items on the stack belonging to outer lists
161[perl #109570].
162
163=item *
164
197aacaf
FC
165L<B> has been upgraded from version 1.33 to version 1.34.
166
167C<B::COP> now has a C<stashflags> method, corresponding to a new internal
168field added in 5.15.4 [perl #108860].
169
170=item *
171
c0f37554
FC
172L<Carp> has been upgraded from version 1.24 to version 1.25.
173
174It now puts a dot after the file and line number, just like errors from
175C<die> [perl #106538].
176
177=item *
178
df697508 179L<Compress::Raw::Bzip2> has been upgraded from version 2.045 to version 2.048.
76f546a2
CBW
180
181=item *
182
ecea5ab2 183L<Compress::Raw::Zlib> has been upgraded from version 2.045 to version 2.048.
589c1691
CBW
184
185=item *
186
8dcc3739 187L<Compress::Zlib> has been upgraded from version 2.046 to version 2.048.
422d6414
CBW
188
189=item *
190
b34385a6 191L<DB_File> has been upgraded from version 1.824 to version 1.826.
acb29889
CBW
192
193=item *
194
ce2c4022
NC
195L<diagnostics> has been upgraded from version 1.27 to version 1.28.
196
197When searching for F<perldiag.pod>, it no longer uses paths that were only
198relevant on Perl 5.004 and earlier.
199
200=item *
201
84ecb73f
S
202L<ExtUtils::ParseXS> has been upgraded from version 3.12 to version 3.15.
203
204The new version comes with important tools for sharing typemaps between
205different CPAN distributions.
206
207=item *
208
a3cc0403
FC
209L<File::Copy> has been upgraded from version 2.21 to version 2.23.
210
211It no longer emits warnings when copying files with newlines in their names
212[perl #109104].
213
214=item *
215
eb96f3fa
CBW
216L<IPC::Cmd> has been upgraded from version 0.72 to version 0.76.
217
218=item *
219
04ae1553
Z
220L<Math::Complex> has been upgraded from version 1.58 to version 1.59.
221
222This avoids a new core warning.
223
224=item *
225
1051d5b5 226L<Pod::Parser> has been upgraded from version 1.37 to version 1.51.
88c5c971 227
2a7afa74
NC
228=item *
229
ecd144ea
FC
230L<Term::ReadLine> has been upgraded from version 1.07 to version 1.08.
231
232Its C<tkRunning> method now supports L<AnyEvent> event loops, and not just
233L<Tk>. A more general mechanism has been proposed, so this may be reverted
234before Perl 5.16 [perl #108470].
235
236=item *
237
858dcda5
Z
238L<Time::HiRes> has been upgraded from version 1.9724 to version 1.9725.
239
694644e0 240C<Time::HiRes::stat()> no longer corrupts the Perl stack.
858dcda5
Z
241
242=item *
243
2a7afa74
NC
244L<Unicode::UCD> has been upgraded from version 0.39 to 0.40.
245
246The only change is to fix a formatting error in the Pod.
247
c1e74734 248=back
c0504019 249
c1e74734 250=head2 Removed Modules and Pragmata
937a45d0 251
c1e74734 252=over 4
937a45d0 253
ef337e16
CBW
254=item *
255
c1e74734 256XXX
ef337e16 257
7f28d7ed 258=back
679b54e7 259
52deee2e 260=head1 Documentation
3c7c5233 261
c1e74734
CBW
262XXX Changes to files in F<pod/> go here. Consider grouping entries by
263file and be sure to link to the appropriate page, e.g. L<perlfunc>.
a71d67b1 264
c1e74734 265=head2 New Documentation
cadced9f 266
c1e74734 267XXX Changes which create B<new> files in F<pod/> go here.
cadced9f 268
84ecb73f
S
269=head3 L<perlxstypemap>
270
271The new manual describes the XS typemapping mechanism in unprecedented
272detail and combines new documentation with information extracted from
273L<perlxs> and the previously unofficial list of all core typemaps.
274
c1e74734 275=head3 L<XXX>
cadced9f 276
c1e74734 277XXX Description of the purpose of the new file here
cadced9f 278
c1e74734 279=head2 Changes to Existing Documentation
cadced9f 280
c1e74734
CBW
281XXX Changes which significantly change existing files in F<pod/> go here.
282However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
283section.
cadced9f 284
c1e74734 285=head3 L<XXX>
7e7629fa 286
52deee2e 287=over 4
7e7629fa
FC
288
289=item *
290
c1e74734 291XXX Description of the change here
c2654555 292
52deee2e 293=back
85ca3be7 294
52deee2e 295=head1 Diagnostics
85ca3be7 296
52deee2e
DR
297The following additions or changes have been made to diagnostic output,
298including warnings and fatal error messages. For the complete list of
299diagnostic messages, see L<perldiag>.
7788a270 300
c1e74734
CBW
301XXX New or changed warnings emitted by the core's C<C> code go here. Also
302include any changes in L<perldiag> that reconcile it to the C<C> code.
6138a722 303
c1e74734
CBW
304[ Within each section, list entries as a =item entry that links to perldiag,
305 e.g.
a47fb3fe 306
c1e74734 307 =item *
4888c563 308
c1e74734
CBW
309 L<Invalid version object|perldiag/"Invalid version object">
310]
a3f52e2e 311
c1e74734 312=head2 New Diagnostics
52272450 313
c1e74734 314XXX Newly added diagnostic messages go here
52272450 315
c1e74734 316=head3 New Errors
a47fb3fe 317
0aaeb177 318=over 4
7ef25837 319
6d110ad0
FC
320=item *
321
c1e74734 322XXX L<message|perldiag/"message">
604a99bd 323
c1e74734 324=back
ea88c40c 325
c1e74734 326=head3 New Warnings
ea88c40c 327
c1e74734 328=over 4
ea88c40c
FC
329
330=item *
331
c1e74734 332XXX L<message|perldiag/"message">
ea88c40c 333
6d110ad0
FC
334=back
335
c1e74734
CBW
336=head2 Changes to Existing Diagnostics
337
338XXX Changes (i.e. rewording) of diagnostic messages go here
cadced9f
FC
339
340=over 4
341
342=item *
343
c1e74734 344XXX Describe change here
cadced9f
FC
345
346=back
347
0aaeb177 348=head1 Utility Changes
9cfd094e 349
c1e74734
CBW
350XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
351here. Most of these are built within the directories F<utils> and F<x2p>.
d7fbd56d 352
c1e74734
CBW
353[ List utility changes as a =head3 entry for each utility and =item
354entries for each change
355Use L<XXX> with program names to get proper documentation linking. ]
d7fbd56d 356
c1e74734 357=head3 L<XXX>
d7fbd56d 358
c1e74734 359=over 4
ba91b4f3 360
b18aa002
FC
361=item *
362
c1e74734 363XXX
b18aa002 364
52deee2e 365=back
ba91b4f3 366
52deee2e 367=head1 Configuration and Compilation
f4912a50 368
c1e74734
CBW
369XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
370go here. Any other changes to the Perl build process should be listed here.
371However, any platform-specific changes should be listed in the
372L</Platform Support> section, instead.
a3f52e2e 373
c1e74734 374[ List changes as a =item entry ].
a3f52e2e 375
0aaeb177 376=over 4
ad32999b 377
f4912a50 378=item *
ad32999b 379
c1e74734 380XXX
c15f899f 381
7f28d7ed 382=back
ad32999b 383
c1e74734 384=head1 Testing
39de7394 385
c1e74734
CBW
386XXX Any significant changes to the testing of a freshly built perl should be
387listed here. Changes which create B<new> files in F<t/> go here as do any
388large changes to the testing harness (e.g. when parallel testing was added).
389Changes to existing files in F<t/> aren't worth summarising, although the bugs
390that they represent may be covered elsewhere.
39de7394 391
c1e74734 392[ List each test improvement as a =item entry ]
39de7394 393
c1e74734 394=over 4
5dd80d85 395
52272450
FC
396=item *
397
c1e74734 398XXX
52272450 399
84ecb73f
S
400=item *
401
402The test suite for typemaps has been extended to cover a larger fraction of
403the core typemaps.
404
52deee2e 405=back
5dd80d85 406
c1e74734 407=head1 Platform Support
52272450 408
c1e74734 409XXX Any changes to platform support should be listed in the sections below.
52272450 410
c1e74734
CBW
411[ Within the sections, list each platform as a =item entry with specific
412changes as paragraphs below it. ]
ad266194 413
c1e74734 414=head2 New Platforms
ad266194 415
c1e74734
CBW
416XXX List any platforms that this version of perl compiles on, that previous
417versions did not. These will either be enabled by new files in the F<hints/>
418directories, or new subdirectories and F<README> files at the top level of the
419source tree.
ad266194 420
c1e74734 421=over 4
838cf719 422
c1e74734 423=item XXX-some-platform
838cf719 424
c1e74734 425XXX
b00f6edb 426
c1e74734 427=back
b00f6edb 428
c1e74734 429=head2 Discontinued Platforms
7a3fd9ed 430
c1e74734 431XXX List any platforms that this version of perl no longer compiles on.
7a3fd9ed 432
c1e74734 433=over 4
1a50d74b 434
c1e74734 435=item XXX-some-platform
1a50d74b 436
c1e74734 437XXX
ea88c40c 438
c1e74734 439=back
ea88c40c 440
c1e74734 441=head2 Platform-Specific Notes
ea88c40c 442
c1e74734
CBW
443XXX List any changes for specific platforms. This could include configuration
444and compilation changes or changes in portability/compatibility. However,
445changes within modules for platforms should generally be listed in the
446L</Modules and Pragmata> section.
ea88c40c 447
c1e74734 448=over 4
ea88c40c 449
c1e74734 450=item XXX-some-platform
ea88c40c 451
c1e74734 452XXX
ea88c40c 453
c1e74734 454=back
ea88c40c 455
c1e74734 456=head1 Internal Changes
ea88c40c 457
c1e74734
CBW
458XXX Changes which affect the interface available to C<XS> code go here.
459Other significant internal changes for future core maintainers should
460be noted as well.
ea88c40c 461
c1e74734 462[ List each change as a =item entry ]
ea88c40c 463
c1e74734 464=over 4
ea88c40c
FC
465
466=item *
467
c1e74734 468XXX
ea88c40c 469
c1e74734 470=back
ea88c40c 471
c1e74734 472=head1 Selected Bug Fixes
ea88c40c 473
c1e74734
CBW
474XXX Important bug fixes in the core language are summarised here.
475Bug fixes in files in F<ext/> and F<lib/> are best summarised in
476L</Modules and Pragmata>.
ea88c40c 477
c1e74734 478[ List each fix as a =item entry ]
ea88c40c 479
c1e74734 480=over 4
ea88c40c
FC
481
482=item *
483
6025c6dd
RS
484C<~~> now correctly handles the precedence of Any~~Object, and is not tricked
485by an overloaded object on the left-hand side.
ea88c40c 486
249950d7
FC
487=item *
488
489C<stat _> no longer warns about unopened filehandles [perl #71002].
490
491=item *
492
493C<stat> on an unopened filehandle now warns consistently, instead of
494skipping the warning at times.
495
496=item *
497
498A change in an earlier 5.15 release caused warning hints to propagate into
499C<do $file>. This has been fixed [rt.cpan.org #72767].
500
501=item *
502
503Starting with 5.12.0, Perl used to get its internal bookkeeping muddled up
504after assigning C<${ qr// }> to a hash element and locking it with
505L<Hash::Util>. This could result in double frees, crashes or erratic
506behaviour.
507
92c88ef1
FC
508=item *
509
510In 5.15.7, some typeglobs in the CORE namespace were made read-only by
511mistake. This has been fixed [rt.cpan.org #74289].
512
b1ea7742
FC
513=item *
514
515C<-t> now works when stacked with other filetest operators [perl #77388].
516
a1d95121
FC
517=item *
518
519Stacked filetest operators now only call FETCH once on a tied argument.
520
ff4ff6f3
FC
521=item *
522
523C</.*/g> would sometimes refuse to match at the end of a string that ends
524with "\n". This has been fixed [perl #109206].
525
a7bff800
FC
526=item *
527
528Method calls whose arguments were all surrounded with C<my()> or C<our()>
529(as in C<<$object->method(my($a,$b)) >>) used to force lvalue context on
530the subroutine. This would prevent lvalue methods from returning certain
531values. Due to lvalue fixes earlier in the 5.15.x series, it would also
532prevent non-lvalue methods from being called [perl #109264].
533
534=for comment
535This bug I<did> affect earlier stable releases. It is just the last
536sentence that does not apply to 5.14.
537
0aae26c1
FC
538=item *
539
540The C<SvPVutf8> C function no longer tries to modify its argument,
541resulting in errors [perl #108994].
542
543=item *
544
545C<SvPVutf8> now works properly with magical variables.
546
547=item *
548
549C<SvPVbyte> now works properly non-PVs.
550
ea88c40c
FC
551=back
552
c1e74734 553=head1 Known Problems
ea88c40c 554
c1e74734
CBW
555XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
556tests that had to be C<TODO>ed for the release would be noted here, unless
557they were specific to a particular platform (see below).
ea88c40c 558
c1e74734
CBW
559This is a list of some significant unfixed bugs, which are regressions
560from either 5.XXX.XXX or 5.XXX.XXX.
ea88c40c 561
c1e74734 562[ List each fix as a =item entry ]
ea88c40c 563
c1e74734 564=over 4
18af289e 565
c1e74734 566=item *
18af289e 567
c1e74734 568XXX
1ac442bc 569
c1e74734 570=back
c0154fe2 571
c1e74734 572=head1 Obituary
1ac442bc 573
c1e74734
CBW
574XXX If any significant core contributor has died, we've added a short obituary
575here.
84b2a83e 576
52deee2e 577=head1 Acknowledgements
8fe05716 578
c1e74734
CBW
579XXX Generate this with:
580
581 perl Porting/acknowledgements.pl v5.15.7..HEAD
29cf780c 582
44691e6f
AB
583=head1 Reporting Bugs
584
585If you find what you think is a bug, you might check the articles
52deee2e
DR
586recently posted to the comp.lang.perl.misc newsgroup and the perl
587bug database at http://rt.perl.org/perlbug/ . There may also be
44691e6f
AB
588information at http://www.perl.org/ , the Perl Home Page.
589
590If you believe you have an unreported bug, please run the L<perlbug>
52deee2e
DR
591program included with your release. Be sure to trim your bug down
592to a tiny but sufficient test case. Your bug report, along with the
593output of C<perl -V>, will be sent off to perlbug@perl.org to be
594analysed by the Perl porting team.
44691e6f
AB
595
596If the bug you are reporting has security implications, which make it
52deee2e
DR
597inappropriate to send to a publicly archived mailing list, then please send
598it to perl5-security-report@perl.org. This points to a closed subscription
599unarchived mailing list, which includes
600all the core committers, who will be able
601to help assess the impact of issues, figure out a resolution, and help
602co-ordinate the release of patches to mitigate or fix the problem across all
603platforms on which Perl is supported. Please only use this address for
604security issues in the Perl core, not for modules independently
605distributed on CPAN.
44691e6f
AB
606
607=head1 SEE ALSO
608
52deee2e
DR
609The F<Changes> file for an explanation of how to view exhaustive details
610on what changed.
44691e6f
AB
611
612The F<INSTALL> file for how to build Perl.
613
614The F<README> file for general stuff.
615
616The F<Artistic> and F<Copying> files for copyright information.
617
618=cut