This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow suffix form for /a /d /l /u
[perl5.git] / pod / perldelta.pod
1 =encoding utf8
2
3 =head1 NAME
4
5 [ this is a template for a new perldelta file. Any text flagged as
6 XXX needs to be processed before release. ]
7
8 perldelta - what is new for perl v5.13.10
9
10 =head1 DESCRIPTION
11
12 This document describes differences between the 5.XXX.XXX release and
13 the 5.XXX.XXX release.
14
15 If you are upgrading from an earlier release such as 5.YYY.YYY, first read
16 L<perl5YYYdelta>, which describes differences between 5.ZZZ.ZZZ and
17 5.YYY.YYY.
18
19 =head1 Notice
20
21 XXX Any important notices here
22
23 =head1 Core Enhancements
24
25 XXX New core language features go here. Summarise user-visible core language
26 enhancements. Particularly prominent performance optimisations could go
27 here, but most should go in the L</Performance Enhancements> section.
28
29 [ List each enhancement as a =head2 entry ]
30
31 =head2 The new regular expression modifiers available in suffix form
32
33 Various releases of the 5.13.x series have added new regular expression
34 modifiers, C</a>, C</d>, C</l>, and C</u>.  They were only available in
35 infix form (e.g., C<(?a:...)> until this release; now they are usable
36 in suffix form.  This change was made too late to change all the
37 affected documentation, so there are a number of places that erroneously
38 say these must be used in infix form.
39
40 However, there is an ambiguity with the construct, C<s/foo/bar/le...>.  Due
41 to backward compatibility constraints, in Perl 5.14 only, it will be
42 resolved as C<s/foo/bar/ le...>, that is, as meaning to take the result
43 of the substitution, and see if it is stringwise less-than-or-equal-to
44 what follows. In Perl 5.16 and later, it will instead be resolved as
45 meaing to do the pattern match using the rules of the current locale,
46 and evaluate the rhs as an expression when doing the substitution.  In
47 5.14, if you want the latter interpretation, you can write "el" instead.
48
49 =head2 Add C<\p{Titlecase}> as a synonym for C<\p{Title}>
50
51 This synonym is added for symmetry with the Unicode property names
52 C<\p{Uppercase}> and C<\p{Lowercase}>.
53
54 =head2 New regular expression modifier option C</aa>
55
56 Doubling the C</a> regular expression modifier increases its effect,
57 so that in case-insensitive matching, no ASCII character will match a
58 non-ASCII character.  For example, normally,
59
60     'k' =~ /\N{KELVIN SIGN}/
61
62 will match; it won't under C</aa>.
63
64 =head2 New warnings categories for problematic (non-)Unicode code points.
65
66 Three new warnings subcategories of <utf8> have been added.  These
67 allow you to turn off warnings for their covered events, while allowing
68 the other UTF-8 warnings to remain on.  The three categories are:
69 C<surrogate> when UTF-16 surrogates are encountered;
70 C<nonchar> when Unicode non-character code points are encountered;
71 and C<non_unicode> when code points that are above the legal Unicode
72 maximum of 0x10FFFF are encountered.
73
74 =head1 Security
75
76 XXX Any security-related notices go here.  In particular, any security
77 vulnerabilities closed should be noted here rather than in the
78 L</Selected Bug Fixes> section.
79
80 [ List each security issue as a =head2 entry ]
81
82 =head1 Incompatible Changes
83
84 XXX For a release on a stable branch, this section aspires to be:
85
86     There are no changes intentionally incompatible with 5.XXX.XXX. If any
87     exist, they are bugs and reports are welcome.
88
89 [ List each incompatible change as a =head2 entry ]
90
91 =head2 Most C<\p{}> properties are now immune from case-insensitive matching
92
93 For most Unicode properties, it doesn't make sense to have them match
94 differently under C</i> case-insensitive matching than not.  And doing
95 so leads to unexpected results and potential security holes.  For
96 example
97
98  m/\p{ASCII_Hex_Digit}+/i
99
100 could previously match non-ASCII characters because of the Unicode
101 matching rules.  There were a number of bugs in this feature until an
102 earlier release in the 5.13 series.  Now this release reverts, and
103 removes the feature completely except for the few properties where
104 people have come to expect it, namely the ones where casing is an
105 integral part of their functionality, such as C<m/\p{Uppercase}/i> and
106 C<m/\p{Lowercase}/i>, both of which match the exact same code points,
107 namely those matched by C<m/\p{Cased}/i>.  Details are in
108 L<perlrecharclass/Unicode Properties>.
109
110 User-defined property handlers that need to match differently under
111 C</i> must change to read the new boolean parameter passed it which is
112 non-zero if case-insensitive matching is in effect; 0 if not.  See
113 L<perluniprops/User-Defined Character Properties>.
114
115 =head2 [perl #82996] Use the user's from address as return-path in perlbug
116
117 Many systems these days don't have a valid Internet domain name and
118 perlbug@perl.org does not accept email with a return-path that does
119 not resolve. Therefore pass the user's address to sendmail so it's
120 less likely to get stuck in a mail queue somewhere. (019cfd2)
121
122 =head2 regex: \p{} in pattern implies Unicode semantics
123
124 Now, a Unicode property match specified in the pattern will indicate
125 that the pattern is meant for matching according to Unicode rules
126 (e40e74f)
127
128 =head2 add GvCV_set() and GvGP_set() macros and change GvGP()
129
130 This allows a future commit to eliminate some backref magic between GV
131 and CVs, which will require complete control over assignment to the
132 gp_cv slot.
133
134 If you've been using GvGP() in lvalue context this change will break
135 your code, you should use GvGP_set() instead. (c43ae56)
136
137 =head2 _swash_inversion_hash is no longer exported as part of the API
138
139 This function shouldn't be called from XS code. (4c2e113)
140
141 =head2 Unreferenced objects in global destruction
142
143 The fix for [perl #36347], which made sure that destructors were called on
144 unreferenced objects, broke the tests for three CPAN modules, which
145 apparently rely on the bug.
146
147 To provide more time for fixing them (as this is such a minor bug), we
148 have reverted the fix until after perl 5.14.0.
149
150 This resolves [perl #82542] and other related tickets.
151
152 =head2 C<close> on shared pipes
153
154 The C<close> function no longer waits for the child process to exit if the
155 underlying file descriptor is still in use by another thread, to avoid
156 deadlocks. It returns true in such cases.
157
158 =head1 Deprecations
159
160 =over
161
162 =item Deprecated Modules
163
164 The following modules will be removed from the core distribution in a
165 future release, and should be installed from CPAN instead. Distributions
166 on CPAN which require these should add them to their prerequisites. The
167 core versions of these modules warnings will issue a deprecation warning.
168
169 If you ship a packaged version of Perl, either alone or as part of a
170 larger system, then you should carefully consider the repercussions of
171 core module deprecations. You may want to consider shipping your default
172 build of Perl with packages for some or all deprecated modules which
173 install into C<vendor> or C<site> perl library directories. This will
174 inhibit the deprecation warnings.
175
176 Alternatively, you may want to consider patching F<lib/deprecate.pm>
177 to provide deprecation warnings specific to your packaging system
178 or distribution of Perl, consistent with how your packaging system
179 or distribution manages a staged transition from a release where the
180 installation of a single package provides the given functionality, to
181 a later release where the system administrator needs to know to install
182 multiple packages to get that same functionality.
183
184 You can silence these deprecation warnings by installing the modules
185 in question from CPAN.  To install the latest version of all of them,
186 just install C<Task::Deprecations::5_12>.
187
188 =over
189
190 =item L<Devel::DProf>
191
192 We strongly recommend that you install and used L<Devel::NYTProf> in
193 preference, as it offers significantly improved profiling and reporting.
194
195 =back
196
197 =back
198
199 =head2 User-defined case-mapping
200
201 This feature is being deprecated due to its many issues, as documented in
202 L<perlunicode/User-Defined Case Mappings (for serious hackers only)>.
203 It is planned to remove this feature in Perl 5.16.  A CPAN module
204 providing improved functionality is being prepared for release by the
205 time 5.14 is.
206
207 [ List each deprecation as a =head2 entry ]
208
209 =head1 Performance Enhancements
210
211 XXX Changes which enhance performance without changing behaviour go here. There
212 may well be none in a stable release.
213
214 [ List each enhancement as a =item entry ]
215
216 =over 4
217
218 =item *
219
220 XXX
221
222 =back
223
224 =head1 Modules and Pragmata
225
226 XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
227 go here.  If Module::CoreList is updated, generate an initial draft of the
228 following sections using F<Porting/corelist-perldelta.pl>, which prints stub
229 entries to STDOUT.  Results can be pasted in place of the '=head2' entries
230 below.  A paragraph summary for important changes should then be added by hand.
231 In an ideal world, dual-life modules would have a F<Changes> file that could be
232 cribbed.
233
234 [ Within each section, list entries as a =item entry ]
235
236 =head2 New Modules and Pragmata
237
238 =over 4
239
240 =item *
241
242 C<CPAN::Meta> version 2.110440 has been added as a dual-life module. It
243 provides a standard library to read, interpret and write CPAN distribution
244 metadata files (e.g. META.json and META.yml) which describes a
245 distribution, its contents, and the requirements for building it and
246 installing it. The latest CPAN distribution metadata specification is
247 included as C<CPAN::Meta::Spec> and notes on changes in the specification
248 over time are given in C<CPAN::Meta::History>.
249
250 =item *
251
252 C<Version::Requirements> version 0.101020 has been added as a dual-life
253 module.  It provides a standard library to model and manipulates module
254 prerequisites and version constraints as defined in the L<CPAN::Meta::Spec>.
255
256 =back
257
258 =head2 Updated Modules and Pragmata
259
260 =over 4
261
262 =item *
263
264 C<B> has been upgraded from version 1.27 to 1.28.
265
266 =item *
267
268 C<Carp> has been upgraded from version 1.19 to 1.20.
269
270 [perl #82854] It now avoids using regular expressions that cause perl to
271 load its Unicode tables, in order to avoid the 'BEGIN not safe after
272 errors' error that will ensue if there has been a syntax error.
273
274 =item *
275
276 C<CGI> has been upgraded from version 3.51 to 3.52
277
278 =item *
279
280 C<CPAN> has been upgraded from version 1.94_64 to 1.94_65
281
282 Includes support for META.json and MYMETA.json.
283
284 =item *
285
286 C<CPANPLUS> has been upgraded from version 0.9011 to 0.9101
287
288 Includes support for META.json and MYMETA.json and a change to
289 using Digest::SHA for CPAN checksums.
290
291 =item *
292
293 C<deprecate> has been upgraded from version 0.01 to 0.02.
294
295 =item *
296
297 C<diagnostics> has been upgraded from version 1.21 to 1.22.
298
299 It now renders pod links slightly better, and has been taught to find
300 descriptions for messages that share their descriptions with other
301 messages.
302
303 =item *
304
305 C<Devel::DProf> has been upgraded from version 20080331.00 to 20110217.00.
306
307 Merely loading C<Devel::DProf> now no longer triggers profiling to start.
308 C<use Devel::DProf> and C<perl -d:DProf ...> still behave as before and start
309 the profiler.
310
311 NOTE: C<Devel::DProf> is deprecated and will be removed from a future
312 version of Perl. We strongly recommend that you install and use
313 L<Devel::NYTProf> instead, as it offers significantly improved
314 profiling and reporting.
315
316 =item *
317
318 C<DynaLoader> has been upgraded from version 1.12 to 1.13.
319
320 [perl #84358] It no longer inherits from AutoLoader; hence it no longer
321 produces weird error messages for unsuccessful method calls on classes that
322 inherit from DynaLoader.
323
324 =item *
325
326 C<IO::Select> has been upgraded from version 1.17 to 1.18.
327
328 It now allows IO::Handle objects (and objects in derived classes) to be
329 removed from an IO::Select set even if the underlying file descriptor is
330 closed or invalid.
331
332 =item *
333
334 C<IPC::Cmd> has been upgraded from version 0.68 to 0.70
335
336 =item *
337
338 C<HTTP::Tiny> has been upgraded from version 0.009 to 0.010
339
340 =item *
341
342 C<Math::BigInt> has been upgraded from version 1.99_04 to 1.992.
343
344 =item *
345
346 C<Module::Build> has been upgraded from version 0.3607 to 0.37_05.
347
348 A notable change is the deprecation of several modules.
349 Module::Build::Version has been deprecated and Module::Build now relies
350 directly upon L<version>.  Module::Build::ModuleInfo has been deprecated in
351 favor of a standalone copy of it called L<Module::Metadata>.
352 Module::Build::YAML has been deprecated in favor of L<CPAN::Meta::YAML>.
353
354 Module::Build now also generates META.json and MYMETA.json files
355 in accordance with version 2 of the CPAN distribution metadata specification,
356 L<CPAN::Meta::Spec>.  The older format META.yml and MYMETA.yml files are
357 still generated, as well.
358
359 =item *
360
361 C<Module::Load::Conditional> has been upgraded from version 0.40 to 0.44
362
363 =item *
364
365 C<Module::Metadata> has been upgraded from version 1.000003 to 1.000004.
366
367 =item *
368
369 C<overload> has been upgraded from version 1.12 to 1.13.
370
371 The documentation has greatly improved. See L</Documentation> below.
372
373 =item *
374
375 C<Parse::CPAN::Meta> has been upgraded from version 1.40 to 1.4401.
376
377 The latest Parse::CPAN::Meta can now read YAML or JSON files using
378 L<CPAN::Meta::YAML> and L<JSON::PP>, which are now part of the Perl core.
379
380 =item *
381
382 C<re> has been upgraded from version 0.16 to 0.17.
383
384 It now supports the double-a flag: C<use re '/aa';>
385
386 The C<regmust> function used to crash when called on a regular expression
387 belonging to a pluggable engine. Now it has been disabled for those.
388
389 C<regmust> no longer leaks memory.
390
391 =item *
392
393 C<Term::UI> has been upgraded from version 0.24 to 0.26
394
395 =item *
396
397 C<Unicode::Collate> has been upgraded from version 0.68 to 0.72
398
399 This also sees the switch from using the pure-perl version of this
400 module to the XS version.`
401
402 =item *
403
404 C<VMS::DCLsym> has been upgraded from version 1.04 to 1.05.
405
406 Two bugs have been fixed [perl #84086]:
407
408 The symbol table name was lost when tying a hash, due to a thinko in
409 C<TIEHASH>. The result was that all tied hashes interacted with the
410 local symbol table.
411
412 Unless a symbol table name had been explicitly specified in the call
413 to the constructor, querying the special key ':LOCAL' failed to
414 identify objects connected to the local symbol table.
415
416 =item *
417
418 Added new function C<Unicode::UCD::num()>.  This function will return the
419 numeric value of the string passed it; C<undef> if the string in its
420 entirety has no safe numeric value.
421
422 To be safe, a string must be a single character which has a numeric
423 value, or consist entirely of characters that match \d, coming from the
424 same Unicode block of digits.  Thus, a mix of  Bengali and Western
425 digits would be considered unsafe, as well as a mix of half- and
426 full-width digits, but strings consisting entirely of Devanagari digits
427 or of "Mathematical Bold" digits would would be safe.
428
429 =item *
430
431 C<CPAN> has been upgraded from version1.94_63 to 1.94_64.
432
433 =item *
434
435 XXX
436
437 =back
438
439 =head2 Removed Modules and Pragmata
440
441 =over 4
442
443 =item *
444
445 XXX
446
447 =back
448
449 =head1 Documentation
450
451 XXX Changes to files in F<pod/> go here.  Consider grouping entries by
452 file and be sure to link to the appropriate page, e.g. L<perlfunc>.
453
454 =head2 New Documentation
455
456 XXX Changes which create B<new> files in F<pod/> go here.
457
458 =head3 L<XXX>
459
460 XXX Description of the purpose of the new file here
461
462 =head2 Changes to Existing Documentation
463
464 XXX Changes which significantly change existing files in F<pod/> go here.
465 However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
466 section.
467
468 =head3 L<overload>
469
470 =over 4
471
472 =item *
473
474 L<overload>'s documentation has practically undergone a rewrite. It
475 is now much more straightforward and clear.
476
477 =back
478
479 =head3 L<perlhack> and perlrepository
480
481 =over 4
482
483 =item *
484
485 The L<perlhack> and perlrepository documents have been heavily edited and
486 split up into several new documents.
487
488 The L<perlhack> document is now much shorter, and focuses on the Perl 5
489 development process and submitting patches to Perl. The technical content has
490 been moved to several new documents, L<perlsource>, L<perlinterp>,
491 L<perlhacktut>, and L<perlhacktips>. This technical content has only been
492 lightly edited.
493
494 The perlrepository document has been renamed to L<perlgit>. This new document
495 is just a how-to on using git with the Perl source code. Any other content
496 that used to be in perlrepository has been moved to perlhack.
497
498 =back
499
500 =head3 L<perlfunc>
501
502 =over 4
503
504 =item *
505
506 The documentation for the C<map> function now contains more examples,
507 see B<perldoc -f map> (f947627)
508
509 =back
510
511 =head3 L<perlfaq4>
512
513 =over 4
514
515 =item *
516
517 Examples in L<perlfaq4> have been updated to show the use of
518 L<Time::Piece>. (9243591)
519
520 =back
521
522 =head3 Miscellaneous
523
524 =over 4
525
526 =item *
527
528 Many POD related RT bugs and other issues which are too numerous to
529 enumerate have been solved by Michael Stevens.
530
531 =back
532
533 =head1 Diagnostics
534
535 The following additions or changes have been made to diagnostic output,
536 including warnings and fatal error messages.  For the complete list of
537 diagnostic messages, see L<perldiag>.
538
539 XXX New or changed warnings emitted by the core's C<C> code go here. Also
540 include any changes in L<perldiag> that reconcile it to the C<C> code.
541
542 [ Within each section, list entries as a =item entry ]
543
544 =head2 New Diagnostics
545
546 XXX Newly added diagnostic messages go here
547
548 =over 4
549
550 =item "\b{" is deprecated; use "\b\{" instead
551
552 =item "\B{" is deprecated; use "\B\{" instead
553
554 Use of an unescaped "{" immediately following a C<\b> or C<\B> is now
555 deprecated so as to reserve its use for Perl itself in a future release.
556
557 =item regcomp: Add warning if \p is used under locale. (fb2e24c)
558
559 C<\p> implies Unicode matching rules, which are likely going to be
560 different than the locale's.
561
562 =item panic: gp_free failed to free glob pointer - something is repeatedly re-creating entries
563
564 This new error is triggered if a destructor called on an object in a
565 typeglob that is being freed creates a new typeglob entry containing an
566 object with a destructor that creates a new entry containing an object....
567
568 =item refcnt: fd %d%s
569
570 This new error only occurs if a internal consistency check fails when a
571 pipe is about to be closed.
572
573 =back
574
575 =head2 Changes to Existing Diagnostics
576
577 XXX Changes (i.e. rewording) of diagnostic messages go here
578
579 =over 4
580
581 =item *
582
583 The warning message about regex unrecognized escapes passed through is
584 changed to include any literal '{' following the 2-char escape.  e.g.,
585 "\q{" will include the { in the message as part of the escape
586 (216bfc0).
587
588 =item * C<binmode $fh, ':scalar'> no longer warns (8250589)
589
590 Perl will now no longer produce this warning:
591
592     $ perl -we 'open my $f, ">", \my $x; binmode $f, "scalar"'
593     Use of uninitialized value in binmode at -e line 1.
594
595 =item *
596
597 XXX
598
599 =back
600
601 =head1 Utility Changes
602
603 XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
604 here. Most of these are built within the directories F<utils> and F<x2p>.
605
606 [ List utility changes as a =head3 entry for each utility and =item
607 entries for each change
608 Use L<XXX> with program names to get proper documentation linking. ]
609
610 =head3 L<XXX>
611
612 =over 4
613
614 =item *
615
616 XXX
617
618 =back
619
620 =head1 Configuration and Compilation
621
622 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
623 go here.  Any other changes to the Perl build process should be listed here.
624 However, any platform-specific changes should be listed in the
625 L</Platform Support> section, instead.
626
627 [ List changes as a =item entry ].
628
629 =over 4
630
631 =item * make reg_eval_scope.t TODOs consistently fail (daaf7ac)
632
633 Some of the TODO tests in reg_eval_scope.t spuriously passed under
634 non-threaded builds. Make the tests harder so they always fail.
635
636 Since one of the key bugs in (?{..}) is the trashing of the parent pad,
637 add some extra lexical vars to the parent scope and check they're still
638 there at the end.
639
640 =item *
641
642 Stop EU::CBuilder's tests from failing in parallel (cbf59d5)
643
644 It used to use the same paths for temporary files in all tests. This
645 blew up randomly when the tests were run in parallel.
646
647 =item *
648
649 XXX
650
651 =back
652
653 =head1 Testing
654
655 XXX Any significant changes to the testing of a freshly built perl should be
656 listed here.  Changes which create B<new> files in F<t/> go here as do any
657 large changes to the testing harness (e.g. when parallel testing was added).
658 Changes to existing files in F<t/> aren't worth summarising, although the bugs
659 that they represent may be covered elsewhere.
660
661 [ List each test improvement as a =item entry ]
662
663 =over 4
664
665 =item *
666
667 F<porting/FindExt.t> now skips all tests on a static (-Uusedl) build
668 of perl.
669
670 =item *
671
672 F<porting/FindExt.t> now passes on non-Win32 platforms when some
673 extensions are built statically.
674
675 =back
676
677 =head1 Platform Support
678
679 XXX Any changes to platform support should be listed in the sections below.
680
681 [ Within the sections, list each platform as a =item entry with specific
682 changes as paragraphs below it. ]
683
684 =head2 New Platforms
685
686 XXX List any platforms that this version of perl compiles on, that previous
687 versions did not. These will either be enabled by new files in the F<hints/>
688 directories, or new subdirectories and F<README> files at the top level of the
689 source tree.
690
691 =over 4
692
693 =item XXX-some-platform
694
695 XXX
696
697 =back
698
699 =head2 Discontinued Platforms
700
701 XXX List any platforms that this version of perl no longer compiles on.
702
703 =over 4
704
705 =item XXX-some-platform
706
707 XXX
708
709 =back
710
711 =head2 Platform-Specific Notes
712
713 XXX List any changes for specific platforms. This could include configuration
714 and compilation changes or changes in portability/compatibility.  However,
715 changes within modules for platforms should generally be listed in the
716 L</Modules and Pragmata> section.
717
718 =over 4
719
720 =item Windows
721
722 =over 4
723
724 =item *
725
726 The C<test-prep> build target now depends on F<pod/perltoc.pod> to allow the
727 F<t/porting/buildtoc.t> test to run successfully.
728
729 =back
730
731 =item MirBSD
732
733 =over 4
734
735 =item *
736
737 [perl #82988] Skip hanging taint.t test on MirBSD 10 (1fb83d0)
738
739 Skip a hanging test under MirBSD that was already being skipped under
740 OpenBSD.
741
742 =item *
743
744 Previously if you build perl with a shared libperl.so on MirBSD (the
745 default config), it will work up to the installation; however, once
746 installed, it will be unable to find libperl. Treat path handling
747 like in the other BSD dialects.
748
749 =back
750
751 =back
752
753 =head1 Internal Changes
754
755 XXX Changes which affect the interface available to C<XS> code go here.
756 Other significant internal changes for future core maintainers should
757 be noted as well.
758
759 [ List each test improvement as a =item entry ]
760
761 =over 4
762
763 =item * Fix harmless invalid read in Perl_re_compile() (f6d9469)
764
765 [perl #2460] described a case where electric fence reported an invalid
766 read. This could be reproduced under valgrind with blead and -e'/x/',
767 but only on a non-debugging build.
768
769 This was because it was checking for certain pairs of nodes (e.g. BOL + END)
770 and wasn't allowing for EXACT nodes, which have the string at the next
771 node position when using a naive NEXTOPER(first). In the non-debugging
772 build, the nodes aren't initialised to zero, and a 1-char EXACT node isn't
773 long enough to spill into the type field of the "next node".
774
775 Fix this by only using NEXTOPER(first) when we know the first node is
776 kosher.
777
778 =item * Break out the generated function Perl_keywords() into F<keywords.c>, a new file. (26ea9e1)
779
780 As it and Perl_yylex() both need FEATURE_IS_ENABLED, feature_is_enabled() is
781 no longer static, and the two macro definitions move from toke.c to perl.h
782
783 Previously, one had to cut and paste the output of perl_keywords.pl into the
784 middle of toke.c, and it was not clear that it was generated code.
785
786 =item *
787
788 A lot of tests have been ported from Test to Test::More, e.g. in
789 3842ad6.
790
791 =item * Increase default PerlIO buffer size. (b83080d)
792
793 The previous default size of a PerlIO buffer (4096 bytes) has been increased
794 to the larger of 8192 bytes and your local BUFSIZ.  Benchmarks show that doubling
795 this decade-old default increases read and write performance in the neighborhood
796 of 25% to 50% when using the default layers of perlio on top of unix.  To choose
797 a non-default size, such as to get back the old value or to obtain and even
798 larger value, configure with:
799
800      ./Configure -Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=N
801
802 where N is the desired size in bytes; it should probably be a multiple of
803 your page size.
804
805
806 =item *
807
808 XXX
809
810 =back
811
812 =head1 Selected Bug Fixes
813
814 XXX Important bug fixes in the core language are summarised here.
815 Bug fixes in files in F<ext/> and F<lib/> are best summarised in
816 L</Modules and Pragmata>.
817
818 [ List each fix as a =item entry ]
819
820 =over 4
821
822 =item *
823
824 A Unicode C<\p{}> property match in a regular expression pattern will
825 now force Unicode rules for the rest of the regular expression
826
827 =item *
828
829 [perl #38456] binmode FH, ":crlf" only modifies top crlf layer (7826b36)
830
831 When pushed on top of the stack, crlf will no longer enable crlf layers
832 lower in the stack. This will prevent unexpected results.
833
834 =item *
835
836 Fix 'raw' layer for RT #80764 (ecfd064)
837
838 Made a ':raw' open do what it advertises to do (first open the file,
839 then binmode it), instead of leaving off the top layer.
840
841 =item *
842
843 Use PerlIOBase_open for pop, utf8 and bytes layers (c0888ac)
844
845 Three of Perl's builtin PerlIO layers (C<:pop>, C<:utf8> and
846 C<:bytes>) didn't allow stacking when opening a file. For example
847 this:
848
849     open FH, '>:pop:perlio', 'some.file' or die $!;
850
851 Would throw an error: "Invalid argument". This has been fixed in this
852 release.
853
854 =item *
855
856 An issue present since 5.13.1, where s/A/B/ with A utf8 and B
857 non-utf8, could cause corruption or segfaults has been
858 fixed. (c95ca9b)
859
860 =item *
861
862 String evals will no longer fail after 2 billion scopes have been
863 compiled (d1bfb64, 2df5bdd, 0d311cd and 6012dc8)
864
865 =item *
866
867 [perl #81750] When strict 'refs' mode is off,
868 C<%{...}> in rvalue context returns C<undef> if
869 its argument is undefined. An optimisation introduced in perl 5.12.0 to
870 make C<keys %{...}> faster when used as a boolean did not take this into
871 account, causing C<keys %{+undef}> (and C<keys %$foo> when C<$foo> is
872 undefined) to be an error, which it should only be in strict mode.
873
874 =item *
875
876 [perl #83194] Combining the vector (%v) flag and dynamic precision would
877 cause sprintf to confuse the order of its arguments, making it treat the
878 string as the precision and vice versa.
879
880 =item *
881
882 [perl #77692] Sometimes the UTF8 length cache would not be reset on a value
883 returned by substr, causing C<length(substr($uni_string,...))> to give
884 wrong answers. With C<${^UTF8CACHE}> set to -1, it would produce a 'panic'
885 error message, too.
886
887 =item *
888
889 During the restoration of a localised typeglob on scope exit, any
890 destructors called as a result would be able to see the typeglob in an
891 inconsistent state, containing freed entries, which could result in a
892 crash. This would affect code like this:
893
894   local *@;
895   eval { die bless [] }; # puts an object in $@
896   sub DESTROY {
897     local $@; # boom
898   }
899
900 Now the glob entries are cleared before any destructors are called. This
901 also means that destructors can vivify entries in the glob. So perl tries
902 again and, if the entries are re-created too many times, dies with a
903 'panic: gp_free...' error message.
904
905 =item *
906
907 [perl #78494] When pipes are shared between threads, the C<close> function
908 (and any implicit close, such as on thread exit) no longer blocks.
909
910 =item *
911
912 Several contexts no longer allow a Unicode character to begin a word
913 that should never begin words, for an example an accent that must follow
914 another character previously could precede all other characters.
915
916 =item *
917
918 Case insensitive matching in regular expressions compiled under C<use
919 locale> now works much more sanely when the pattern and/or target string
920 are encoded in UTF-8.  Previously, under these conditions the localeness
921 was completely lost.  Now, code points above 255 are treated as Unicode,
922 but code points between 0 and 255 are treated using the current locale
923 rules, regardless of whether the pattern or string are encoded in UTF-8.
924 The few case insensitive matches that cross the 255/256 boundary are not
925 allowed.  For example, 0xFF does not caselessly match the character at
926 0x178, LATIN CAPITAL LETTER Y WITH DIAERESIS, because 0xFF may not be
927 LATIN SMALL LETTER Y in the current locale, and Perl has no way of
928 knowing if that character even exists in the locale, much less what code
929 point it is.
930
931 =back
932
933 =head1 Known Problems
934
935 XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
936 tests that had to be C<TODO>ed for the release would be noted here, unless
937 they were specific to a particular platform (see below).
938
939 This is a list of some significant unfixed bugs, which are regressions
940 from either 5.XXX.XXX or 5.XXX.XXX.
941
942 [ List each fix as a =item entry ]
943
944 =over 4
945
946 =item *
947
948 XXX
949
950 =back
951
952 =head1 Obituary
953
954 XXX If any significant core contributor has died, we've added a short obituary
955 here.
956
957 =head1 Acknowledgements
958
959 XXX The list of people to thank goes here.
960
961 =head1 Reporting Bugs
962
963 If you find what you think is a bug, you might check the articles
964 recently posted to the comp.lang.perl.misc newsgroup and the perl
965 bug database at http://rt.perl.org/perlbug/ .  There may also be
966 information at http://www.perl.org/ , the Perl Home Page.
967
968 If you believe you have an unreported bug, please run the L<perlbug>
969 program included with your release.  Be sure to trim your bug down
970 to a tiny but sufficient test case.  Your bug report, along with the
971 output of C<perl -V>, will be sent off to perlbug@perl.org to be
972 analysed by the Perl porting team.
973
974 If the bug you are reporting has security implications, which make it
975 inappropriate to send to a publicly archived mailing list, then please send
976 it to perl5-security-report@perl.org. This points to a closed subscription
977 unarchived mailing list, which includes all the core committers, who be able
978 to help assess the impact of issues, figure out a resolution, and help
979 co-ordinate the release of patches to mitigate or fix the problem across all
980 platforms on which Perl is supported. Please only use this address for
981 security issues in the Perl core, not for modules independently
982 distributed on CPAN.
983
984 =head1 SEE ALSO
985
986 The F<Changes> file for an explanation of how to view exhaustive details
987 on what changed.
988
989 The F<INSTALL> file for how to build Perl.
990
991 The F<README> file for general stuff.
992
993 The F<Artistic> and F<Copying> files for copyright information.
994
995 =cut