This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Perl_blockhook_register to perl5133delta.
[perl5.git] / pod / perl5133delta.pod
CommitLineData
855e1b21
NC
1=encoding utf8
2
3=head1 NAME
4
5[ this is a template for a new perldelta file. Any text flagged as
6XXX needs to be processed before release. ]
7
8perldelta - what is new for perl v5.13.3
9
10=head1 DESCRIPTION
11
12This document describes differences between the 5.13.3 release and
13the 5.13.2 release.
14
7ea08b87
DG
15If you are upgrading from an earlier release such as 5.13.1, first read
16L<perl5132delta>, which describes differences between 5.13.1 and
175.13.2.
855e1b21
NC
18
19=head1 Notice
20
21XXX Any important notices here
22
7ea08b87
DG
23=head1 Core Enhancements
24
25XXX New core language features go here. Summarise user-visible core language
26enhancements. Particularly prominent performance optimisations could go
27here, but most should go in the L</Performance Enhancements> section.
28
29[ List each enhancement as a =head2 entry ]
30
63098191 31=head2 C<\N{I<name>}> and C<charnames> enhancements
16036bcd 32
63098191
KW
33C<\N{}> and C<charnames::vianame> now know about the abbreviated character
34names listed by Unicode, such as NBSP, SHY, LRO, ZWJ, etc., as well as all the
35customary abbreviations for the C0 and C1 control characters (such as ACK, BEL,
36CAN, etc.), as well as a few new variants in common usage of some C1 full
37names.
16036bcd
KW
38
39In the past, it was ineffective to override one of Perl's abbreviations with
40your own custom alias. Now it works.
41
232cbbee 42And you can create a custom alias directly to the ordinal of a character, known
8f3c3cf1 43by C<\N{...}>, C<charnames::vianame()>, and C<charnames::viacode()>.
232cbbee
KW
44Previously, an alias had to be to an official Unicode character name. This
45made it impossible to create an alias for a code point that had no name,
46such as the ones reserved for private use. So this change allows you to make
47more effective use of private use characters. Only if there is no official
48name will C<charnames::viacode()> return your custom one.
49
50See L<charnames> for details on all these changes.
51
655d344e
DG
52=head2 Other enhancements
53
efdecbbd
NC
54=over
55
655d344e
DG
56=item *
57
58Uppercase X/B allowed in hexadecimal/binary literals (RT#76296) (a674e8d)
59
efdecbbd
NC
60=back
61
7ea08b87
DG
62=head1 Security
63
64XXX Any security-related notices go here. In particular, any security
65vulnerabilities closed should be noted here rather than in the
66L</Selected Bug Fixes> section.
67
68[ List each security issue as a =head2 entry ]
69
855e1b21
NC
70=head1 Incompatible Changes
71
72XXX For a release on a stable branch, this section aspires to be:
73
74 There are no changes intentionally incompatible with 5.XXX.XXX. If any
75 exist, they are bugs and reports are welcome.
76
7ea08b87 77[ List each incompatible change as a =head2 entry ]
855e1b21 78
7ea08b87 79=head1 Deprecations
855e1b21 80
7ea08b87
DG
81XXX Any deprecated features, syntax, modules etc. should be listed here.
82In particular, deprecated modules should be listed here even if they are
83listed as an updated module in the L</Modules and Pragmata> section.
855e1b21 84
7ea08b87 85[ List each deprecation as a =head2 entry ]
855e1b21 86
a0316a43
DG
87=head2 Omitting a space between regular expression and subsequent word
88
89Omitting a space between a regex pattern or pattern modifiers and the
90following word is deprecated. Deprecation for regular expression matches
91was added in Perl 5.13.2. In this release, the deprecation is extended
92to regular expression substitutions. For example,
93C<< s/foo/bar/sand $bar >> will still be parsed as
94C<< s/foo/bar/s and $bar >> but will issue a warning.
95
96=head2 Deprecation warning added for deprecated-in-core .pl libs
97
98This is a mandatory warning, not obeying -X or lexical warning bits.
99The warning is modelled on that supplied by deprecate.pm for
100deprecated-in-core .pm libraries. It points to the specific CPAN
101distribution that contains the .pl libraries. The CPAN version, of
102course, does not generate the warning. (0111154)
103
7ea08b87
DG
104=head1 Performance Enhancements
105
106XXX Changes which enhance performance without changing behaviour go here. There
107may well be none in a stable release.
108
109[ List each enhancement as a =item entry ]
110
111=over 4
112
113=item *
114
655d344e 115There are several small optimizations to improve CPU cache performance
7ea08b87
DG
116
117=back
855e1b21
NC
118
119=head1 Modules and Pragmata
120
121XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
122go here. If Module::CoreList is updated, generate an initial draft of the
123following sections using F<Porting/corelist-perldelta.pl>, which prints stub
124entries to STDOUT. Results can be pasted in place of the '=head2' entries
125below. A paragraph summary for important changes should then be added by hand.
126In an ideal world, dual-life modules would have a F<Changes> file that could be
127cribbed.
128
7ea08b87
DG
129[ Within each section, list entries as a =item entry ]
130
855e1b21
NC
131=head2 New Modules and Pragmata
132
7ea08b87 133=over 4
855e1b21 134
7ea08b87 135=item *
855e1b21 136
7ea08b87 137XXX
855e1b21 138
7ea08b87 139=back
855e1b21 140
7ea08b87 141=head2 Updated Modules and Pragmata
855e1b21 142
a0316a43
DG
143XXX Make sure these get sorted, are phrased similarly and all version
144numbers are correct
145
855e1b21
NC
146=over 4
147
7ea08b87
DG
148=item *
149
e8cfd41a
DG
150autodie updated to CPAN version 2.10 (a009834)
151
152=item *
153
655d344e
DG
154charnames -- viacode() is now significantly faster (f3227b7)
155
156=item *
157
a0316a43
DG
158version now prevents object methods from being called as class methods
159(d808b68)
160
161=item *
162
e8cfd41a
DG
163warnings updated to 1.10. Calling C<use warnings> without
164arguments is now significantly more efficient. (8452af9)
165
166=item *
167
ca68faa2
CBW
168Archive-Extract updated to CPAN version 0.42 (d7f8799)
169
170Updates since 0.38 include: a safe print method that Michael Schwern
171contributed, that guards Archive::Extract from changes to $\; a
172fix to the tests when run in core perl from Robin Barker; and
173support for TZ files contributed by Paul Marquess, who also supplied a
174modification for the lzma logic to favour IO::Uncompress::Unlzma
175
176=item *
177
a0316a43
DG
178Archive-Tar updated to version 1.64 (afabe0e)
179
827ada3b
CBW
180Important changes since 1.54 include: compatibility with busybox
181implementations of tar which was added by Mark Swayne; a fix so
182that write() and create_archive() close only handles
183they opened by Darrell K.; and a bug was fixed regarding the exit code
184of extract_archive which was spotted by and upstreamed from RedHat by
185Martin Cermak.
186
187=item *
188
e8cfd41a
DG
189Attribute-Handlers updated to CPAN version 0.88 (f2ea78b)
190
191=item *
192
655d344e
DG
193Compress-Raw-Bzip2 updated to CPAN version 2.027 (9e09409)
194
195=item *
196
197Compress-Raw-Zlib updated to CPAN version 2.027 (f02c02e)
198
199=item *
200
a0316a43
DG
201CPANPLUS updated to version 0.9007 (d4e225a)
202
203Fix the shell test to skip if test is not being run under a
204terminal; resolved the issue where a prereq on Config would not be
205recognised as a core module
206
207=item *
208
209Digest-MD5 updated to CPAN version 2.40 (326fafa)
210
211=item *
212
2c1a561b
CBW
213Digest-SHA updated to CPAN version 5.48 (dfe1edc)
214
215=item *
216
a0316a43
DG
217Exporter no longer overrides C<$SIG{__WARN__}> (RT #74472) (9b86bb5)
218
219=item *
220
e8cfd41a
DG
221ExtUtils-CBuilder updated to CPAN version 0.2703 (7b0eef9)
222
223=item *
224
225ExtUtils-Manifest updated to CPAN version 1.58 (49c6bc4)
226
227=item *
228
a0316a43
DG
229ExtUtil-ParseXS updated to version 2.2206 (494e8c4)
230
231=item *
232
233File::Copy skips suid tests on a nosuid partition (cae9400)
234
235=item *
236
655d344e
DG
237IO-Compress upated to CPAN version 2.027 (e8796d6)
238
239=item *
240
a0316a43
DG
241IPC-Cmd updated to CPAN version 0.60 (e667e1e)
242
243=item *
244
2d635dbf
CBW
245IPC-SysV updated to CPAN version 2.03 (10613b6)
246
a0316a43
DG
247=item *
248
249Locale::Maketext guts have been merged back into the main module (87d86da)
250and adds external cache support (ace47d6)
251
2d635dbf
CBW
252=item *
253
a0316a43 254Module-Build updated to CPAN version 0.3607 (40c9afb)
655d344e
DG
255
256=item *
257
ee10537b
CBW
258Module-Load updated to CPAN version 0.18 (93eaa32)
259
260=item *
261
e8cfd41a
DG
262Time-HiRes updated to CPAN version 1.9721 (68c5b4d)
263
264=item *
265
266Time-Piece updated to CPAN version 1.20 (90d55c2)
267
268=item *
269
270Unicode-Collate updated to CPAN version 0.53. Includes Unicode Collation
271Algorithm 18 (74b94a7)
272
273=item *
274
275Unicode-Normalize updated to CPAN release 1.06 (a96160d)
7ea08b87
DG
276
277=back
278
279=head2 Removed Modules and Pragmata
280
281=over 4
282
283=item *
855e1b21
NC
284
285XXX
286
287=back
288
7ea08b87
DG
289=head1 Documentation
290
291XXX Changes to files in F<pod/> go here. Consider grouping entries by
292file and be sure to link to the appropriate page, e.g. L<perlfunc>.
293
294[ Within each section, list entries as a =item entry ]
295
296=head2 New Documentation
855e1b21
NC
297
298XXX Changes which create B<new> files in F<pod/> go here.
299
a0316a43 300=head3 L<perl5121delta>
855e1b21 301
655d344e 302The Perl 5.12.1 perldelta file was added from the Perl maintenance branch
855e1b21 303
7ea08b87 304=head2 Changes to Existing Documentation
855e1b21
NC
305
306XXX Changes which significantly change existing files in F<pod/> go here.
7ea08b87
DG
307However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
308section.
855e1b21 309
a0316a43 310=head3 General changes
655d344e 311
a0316a43 312=over
855e1b21 313
655d344e 314=item *
855e1b21 315
a0316a43
DG
316Octal character escapes in documentation now prefer either the C<\gDIGIT>
317escape or else a three-digit octal escape as they have less ambiguity than
318other forms of octal escapes. (ce7b6f0) (d8b950d)
319
320=item *
321
322Documentation now standardizes on the term 'capture group' over 'buffer'
323in regular expression documentation(c27a5cf)
655d344e
DG
324
325=back
326
327=head3 L<perlfunc>
328
329=over
330
331=item *
332
333Added cautionary note about "no VERSION" (e0de7c2)
334
335=item *
336
337Add additional notes regarding srand and forking (d460397)
7ea08b87
DG
338
339=back
340
a0316a43
DG
341=head3 L<perlop>
342
343=over 4
344
345=item *
346
347Improved documentation of unusual character escapes (bf82ca4)
348
349=back
350
351=head3 L<perlrun>
352
353=over
354
355=item *
356
357Clarifies the behavior of the C<-0NNN> switch for C<-0400> or higher (7ba31cb)
358
359=back
360
361=head3 L<perlpolicy>
362
363=over
364
365=item *
366
367Added the policy on compatibility and deprecation along with definitions of
368terms like "deprecation" (70e4a83)
369
370=back
371
372=head3 L<perltie>
373
374=over
375
376=item *
377
378Some examples updated for modern Perl style (67d00dd)
379
380=back
381
7ea08b87
DG
382=head1 Diagnostics
383
384The following additions or changes have been made to diagnostic output,
385including warnings and fatal error messages. For the complete list of
386diagnostic messages, see L<perldiag>.
387
388XXX New or changed warnings emitted by the core's C<C> code go here. Also
389include any changes in L<perldiag> that reconcile it to the C<C> code.
390
391[ Within each section, list entries as a =item entry ]
392
393=head2 New Diagnostics
394
395XXX Newly added diagnostic messages go here
855e1b21
NC
396
397=over 4
398
399=item *
400
401XXX
402
403=back
404
7ea08b87 405=head2 Changes to Existing Diagnostics
855e1b21 406
7ea08b87 407XXX Changes (i.e. rewording) of diagnostic messages go here
855e1b21 408
7ea08b87
DG
409=over 4
410
411=item *
855e1b21
NC
412
413XXX
414
7ea08b87
DG
415=back
416
417=head1 Utility Changes
418
419XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
420here. Most of these are built within the directories F<utils> and F<x2p>.
421
a0316a43 422=head3 L<perldb>
7ea08b87 423
a0316a43 424=over
7ea08b87 425
976a3bea
JJ
426=item *
427
428The remote terminal works after forking and spawns new sessions - one
429for each forked process.
430
a0316a43 431=item *
855e1b21 432
a0316a43 433Uses the less pager path from Config instead of searching for it (bf320d6)
855e1b21 434
7ea08b87
DG
435=back
436
a0316a43 437
7ea08b87
DG
438=head1 Configuration and Compilation
439
440XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
441go here. Any other changes to the Perl build process should be listed here.
442However, any platform-specific changes should be listed in the
443L</Platform Support> section, instead.
444
445[ List changes as a =item entry ].
855e1b21
NC
446
447=over 4
448
7ea08b87 449=item *
855e1b21 450
a0316a43 451Adjusts 'make test.valgrind' to account for cpan/dist/ext separation. (e07ce2e)
855e1b21
NC
452
453=back
454
7ea08b87 455=head1 Testing
855e1b21 456
7ea08b87
DG
457XXX Any significant changes to the testing of a freshly built perl should be
458listed here. Changes which create B<new> files in F<t/> go here as do any
459large changes to the testing harness (e.g. when parallel testing was added).
460Changes to existing files in F<t/> aren't worth summarising, although the bugs
461that they represent may be covered elsewhere.
462
463[ List each test improvement as a =item entry ]
855e1b21
NC
464
465=over 4
466
467=item *
468
655d344e
DG
469F<t/harness> clears PERL5LIB, PERLLIB, PERL5OPT as t/TEST does (a2d3de1)
470
471=item *
472
473Many common testing routines were refactored into t/lib/common.pl
474
475=item *
476
477Several test files have been modernized to use Test::More
855e1b21
NC
478
479=back
480
7ea08b87
DG
481=head1 Platform Support
482
483XXX Any changes to platform support should be listed in the sections below.
484
485[ Within the sections, list each platform as a =item entry with specific
486changes as paragraphs below it. ]
487
488=head2 New Platforms
855e1b21 489
7ea08b87
DG
490XXX List any platforms that this version of perl compiles on, that previous
491versions did not. These will either be enabled by new files in the F<hints/>
492directories, or new subdirectories and F<README> files at the top level of the
493source tree.
855e1b21
NC
494
495=over 4
496
7ea08b87 497=item XXX-some-platform
855e1b21
NC
498
499XXX
500
501=back
502
7ea08b87 503=head2 Discontinued Platforms
855e1b21 504
7ea08b87 505XXX List any platforms that this version of perl no longer compiles on.
855e1b21
NC
506
507=over 4
508
e8cfd41a 509=item MacOS Classic
855e1b21 510
e8cfd41a
DG
511Support for MacOS Classic within ExtUtils::MakeMaker was removed from Perl in
512December 2004. Vestigial MacOS Classic specific code has now been removed
513from other core modules as well.
855e1b21
NC
514
515=back
516
7ea08b87 517=head2 Platform-Specific Notes
855e1b21 518
7ea08b87
DG
519XXX List any changes for specific platforms. This could include configuration
520and compilation changes or changes in portability/compatibility. However,
521changes within modules for platforms should generally be listed in the
522L</Modules and Pragmata> section.
855e1b21
NC
523
524=over 4
525
a0316a43 526=item Win32
855e1b21 527
a0316a43
DG
528t/io/openpid.t now uses the alarm() watchdog strategy for more
529robustness. (5732108)
855e1b21
NC
530
531=back
532
7ea08b87 533=head1 Internal Changes
855e1b21 534
7ea08b87
DG
535XXX Changes which affect the interface available to C<XS> code go here.
536Other significant internal changes for future core maintainers should
537be noted as well.
855e1b21 538
a0316a43 539[ List each improvement as a =item entry ]
855e1b21
NC
540
541=over 4
542
543=item *
544
6ea72ee3
BM
545It is now possible for XS code to hook into Perl's lexical scope
546mechanism at compile time, using the new C<Perl_blockhook_register>
547function. See L<perlguts/"Compile-time scope hooks">.
855e1b21 548
a0316a43 549=item *
855e1b21 550
a0316a43
DG
551Added C<Perl_croak_no_modify()> to implement
552C<Perl_croak("%s", PL_no_modify)>. (6ad8f25)
efdecbbd 553
655d344e
DG
554=item *
555
a0316a43
DG
556Added prototypes for C<tie()> and C<untie()> to allow overloading. (RT#75902)
557(1db4d19)
558
559=item *
560
561Adds C<my_[l]stat_flags()> to replace C<my_[l]stat()>. C<my_stat()> and
562C<my_lstat()> call get magic on the stack arg, so create C<_flags()>
563variants that allow us to control this. (0d7d409)
655d344e 564
efdecbbd
NC
565=back
566
7ea08b87 567=head1 Selected Bug Fixes
855e1b21 568
7ea08b87
DG
569XXX Important bug fixes in the core language are summarised here.
570Bug fixes in files in F<ext/> and F<lib/> are best summarised in
571L</Modules and Pragmata>.
855e1b21 572
7ea08b87 573[ List each fix as a =item entry ]
855e1b21
NC
574
575=over 4
576
577=item *
578
976a3bea
JJ
579Fixed readline() when interrupted by signals so it no longer returns
580the "same thing" as before or random memory.
581
582=item *
583
e8cfd41a 584Fixed a regression of kill() when a match variable is used for the
655d344e 585process ID to kill. (RT#75812) (8af710e)
e8cfd41a
DG
586
587=item *
588
589Fixed several subtle bugs in sort() when @_ is accessed within a subroutine
590used for sorting. (RT#72334) (8f443ca)
591
655d344e
DG
592=item *
593
594Catch yyparse() exceptions in C<< (?{...}) >> (RT#2353) (634d691)
595
596=item *
597
598Avoid UTF-8 cache panics with offsets beyond a string (RT #75898) (3e2d381)
599
600=item *
601
602Fixed POSIX::strftime memory leak (RT#73520) (c4bc4aa)
603
604=item *
605
606Doesn't set strict with C<no VERSION> if C<VERSION> is greater than 5.12.
607(da8fb5d)
608
a0316a43
DG
609=item *
610
611Avoids multiple FETCH/stringify on filetest ops (40c852d)
612
613=item *
614
615Fixed issue with string C<eval> not detecting taint of overloaded/tied
616arguments (RT #75716) (895b760)
617
618=item *
619
620Fix potential crashes of string C<eval> when evaluating a object with
621overloaded stringification by creating a stringified copy when necessary
622(3e5c018)
623
624=item *
625
626Fixed bug where overloaded stringification could remove tainting
627(RT #75716) (a02ec77)
628
629=item *
630
631Plugs more memory leaks in vms.c. (9e2bec0)
632
633=item *
634
635Fix pthread include error for Time::Piece (e9f284c)
855e1b21
NC
636
637=back
638
7ea08b87 639=head1 Known Problems
855e1b21 640
7ea08b87
DG
641XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
642tests that had to be C<TODO>ed for the release would be noted here, unless
643they were specific to a particular platform (see below).
644
645This is a list of some significant unfixed bugs, which are regressions
646from either 5.XXX.XXX or 5.XXX.XXX.
647
648[ List each fix as a =item entry ]
649
650=over 4
651
652=item *
653
976a3bea
JJ
654readline() returns an empty string instead of undef when it is
655interrupted by a signal.
7ea08b87
DG
656
657=back
855e1b21 658
e8cfd41a
DG
659=head1 Errata
660
661=over 4
662
663=item *
664
665Retroactively added the Acknowledgements list to L<perl5132delta>,
666which was excluded in the original release (d1e2db0)
667
668=back
669
855e1b21
NC
670=head1 Obituary
671
672XXX If any significant core contributor has died, we've added a short obituary
673here.
674
675=head1 Acknowledgements
676
677XXX The list of people to thank goes here.
678
855e1b21
NC
679=head1 Reporting Bugs
680
681If you find what you think is a bug, you might check the articles
682recently posted to the comp.lang.perl.misc newsgroup and the perl
683bug database at http://rt.perl.org/perlbug/ . There may also be
684information at http://www.perl.org/ , the Perl Home Page.
685
686If you believe you have an unreported bug, please run the B<perlbug>
687program included with your release. Be sure to trim your bug down
688to a tiny but sufficient test case. Your bug report, along with the
689output of C<perl -V>, will be sent off to perlbug@perl.org to be
690analysed by the Perl porting team.
691
692If the bug you are reporting has security implications, which make it
693inappropriate to send to a publicly archived mailing list, then please send
694it to perl5-security-report@perl.org. This points to a closed subscription
695unarchived mailing list, which includes all the core committers, who be able
696to help assess the impact of issues, figure out a resolution, and help
697co-ordinate the release of patches to mitigate or fix the problem across all
698platforms on which Perl is supported. Please only use this address for
699security issues in the Perl core, not for modules independently
700distributed on CPAN.
701
702=head1 SEE ALSO
703
704The F<Changes> file for an explanation of how to view exhaustive details
705on what changed.
706
707The F<INSTALL> file for how to build Perl.
708
709The F<README> file for general stuff.
710
711The F<Artistic> and F<Copying> files for copyright information.
712
713=cut