-
Notifications
You must be signed in to change notification settings - Fork 2
/
perl5240delta.html
1512 lines (966 loc) · 86 KB
/
perl5240delta.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>perl5240delta - what is new for perl v5.24.0</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Core-Enhancements">Core Enhancements</a>
<ul>
<li><a href="#Postfix-dereferencing-is-no-longer-experimental">Postfix dereferencing is no longer experimental</a></li>
<li><a href="#Unicode-8.0-is-now-supported">Unicode 8.0 is now supported</a></li>
<li><a href="#perl-will-now-croak-when-closing-an-in-place-output-file-fails">perl will now croak when closing an in-place output file fails</a></li>
<li><a href="#New-b-lb-boundary-in-regular-expressions">New \b{lb} boundary in regular expressions</a></li>
<li><a href="#qr-now-works-in-UTF-8-locales">qr/(?[ ])/ now works in UTF-8 locales</a></li>
<li><a href="#Integer-shift-and-now-more-explicitly-defined">Integer shift (<< and >>) now more explicitly defined</a></li>
<li><a href="#printf-and-sprintf-now-allow-reordered-precision-arguments">printf and sprintf now allow reordered precision arguments</a></li>
<li><a href="#More-fields-provided-to-sigaction-callback-with-SA_SIGINFO">More fields provided to sigaction callback with SA_SIGINFO</a></li>
<li><a href="#Hashbang-redirection-to-Perl-6">Hashbang redirection to Perl 6</a></li>
</ul>
</li>
<li><a href="#Security">Security</a>
<ul>
<li><a href="#Set-proper-umask-before-calling-mkstemp-3">Set proper umask before calling mkstemp(3)</a></li>
<li><a href="#Fix-out-of-boundary-access-in-Win32-path-handling">Fix out of boundary access in Win32 path handling</a></li>
<li><a href="#Fix-loss-of-taint-in-canonpath">Fix loss of taint in canonpath</a></li>
<li><a href="#Avoid-accessing-uninitialized-memory-in-win32-crypt">Avoid accessing uninitialized memory in win32 crypt()</a></li>
<li><a href="#Remove-duplicate-environment-variables-from-environ">Remove duplicate environment variables from environ</a></li>
</ul>
</li>
<li><a href="#Incompatible-Changes">Incompatible Changes</a>
<ul>
<li><a href="#The-autoderef-feature-has-been-removed">The autoderef feature has been removed</a></li>
<li><a href="#Lexical-_-has-been-removed">Lexical $_ has been removed</a></li>
<li><a href="#qr-b-wb-is-now-tailored-to-Perl-expectations">qr/\b{wb}/ is now tailored to Perl expectations</a></li>
<li><a href="#Regular-expression-compilation-errors">Regular expression compilation errors</a></li>
<li><a href="#qr-N-now-disallowed-under-use-re-strict">qr/\N{}/ now disallowed under use re "strict"</a></li>
<li><a href="#Nested-declarations-are-now-disallowed">Nested declarations are now disallowed</a></li>
<li><a href="#The-C-character-class-has-been-removed">The /\C/ character class has been removed.</a></li>
<li><a href="#chdir-no-longer-chdirs-home">chdir('') no longer chdirs home</a></li>
<li><a href="#ASCII-characters-in-variable-names-must-now-be-all-visible">ASCII characters in variable names must now be all visible</a></li>
<li><a href="#An-off-by-one-issue-in-Carp::MaxArgNums-has-been-fixed">An off by one issue in $Carp::MaxArgNums has been fixed</a></li>
<li><a href="#Only-blanks-and-tabs-are-now-allowed-within-...-within">Only blanks and tabs are now allowed within [...] within (?[...]).</a></li>
</ul>
</li>
<li><a href="#Deprecations">Deprecations</a>
<ul>
<li><a href="#Using-code-points-above-the-platforms-IV_MAX-is-now-deprecated">Using code points above the platform's IV_MAX is now deprecated</a></li>
<li><a href="#Doing-bitwise-operations-on-strings-containing-code-points-above-0xFF-is-deprecated">Doing bitwise operations on strings containing code points above 0xFF is deprecated</a></li>
<li><a href="#sysread-syswrite-recv-and-send-are-deprecated-on-:utf8-handles">sysread(), syswrite(), recv() and send() are deprecated on :utf8 handles</a></li>
</ul>
</li>
<li><a href="#Performance-Enhancements">Performance Enhancements</a></li>
<li><a href="#Modules-and-Pragmata">Modules and Pragmata</a>
<ul>
<li><a href="#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a></li>
</ul>
</li>
<li><a href="#Documentation">Documentation</a>
<ul>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
<ul>
<li><a href="#perlapi">perlapi</a></li>
<li><a href="#perlcall">perlcall</a></li>
<li><a href="#perlfunc">perlfunc</a></li>
<li><a href="#perlguts">perlguts</a></li>
<li><a href="#perllocale">perllocale</a></li>
<li><a href="#perlmodlib">perlmodlib</a></li>
<li><a href="#perlop">perlop</a></li>
<li><a href="#perlpolicy">perlpolicy</a></li>
<li><a href="#perlreftut">perlreftut</a></li>
<li><a href="#perlrebackslash">perlrebackslash</a></li>
<li><a href="#perlsub">perlsub</a></li>
<li><a href="#perlsyn">perlsyn</a></li>
<li><a href="#perltie">perltie</a></li>
<li><a href="#perlunicode">perlunicode</a></li>
<li><a href="#perlvar">perlvar</a></li>
<li><a href="#perlxs">perlxs</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#Diagnostics">Diagnostics</a>
<ul>
<li><a href="#New-Diagnostics">New Diagnostics</a>
<ul>
<li><a href="#New-Errors">New Errors</a></li>
<li><a href="#New-Warnings">New Warnings</a></li>
</ul>
</li>
<li><a href="#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a></li>
</ul>
</li>
<li><a href="#Configuration-and-Compilation">Configuration and Compilation</a></li>
<li><a href="#Testing">Testing</a></li>
<li><a href="#Platform-Support">Platform Support</a>
<ul>
<li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></li>
</ul>
</li>
<li><a href="#Internal-Changes">Internal Changes</a></li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a></li>
<li><a href="#Acknowledgements">Acknowledgements</a></li>
<li><a href="#Reporting-Bugs">Reporting Bugs</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>perl5240delta - what is new for perl v5.24.0</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes the differences between the 5.22.0 release and the 5.24.0 release.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<h2 id="Postfix-dereferencing-is-no-longer-experimental">Postfix dereferencing is no longer experimental</h2>
<p>Using the <code>postderef</code> and <code>postderef_qq</code> features no longer emits a warning. Existing code that disables the <code>experimental::postderef</code> warning category that they previously used will continue to work. The <code>postderef</code> feature has no effect; all Perl code can use postfix dereferencing, regardless of what feature declarations are in scope. The <code>5.24</code> feature bundle now includes the <code>postderef_qq</code> feature.</p>
<h2 id="Unicode-8.0-is-now-supported">Unicode 8.0 is now supported</h2>
<p>For details on what is in this release, see <a href="http://www.unicode.org/versions/Unicode8.0.0/">http://www.unicode.org/versions/Unicode8.0.0/</a>.</p>
<h2 id="perl-will-now-croak-when-closing-an-in-place-output-file-fails">perl will now croak when closing an in-place output file fails</h2>
<p>Until now, failure to close the output file for an in-place edit was not detected, meaning that the input file could be clobbered without the edit being successfully completed. Now, when the output file cannot be closed successfully, an exception is raised.</p>
<h2 id="New-b-lb-boundary-in-regular-expressions">New <code>\b{lb}</code> boundary in regular expressions</h2>
<p><code>lb</code> stands for Line Break. It is a Unicode property that determines where a line of text is suitable to break (typically so that it can be output without overflowing the available horizontal space). This capability has long been furnished by the <a>Unicode::LineBreak</a> module, but now a light-weight, non-customizable version that is suitable for many purposes is in core Perl.</p>
<h2 id="qr-now-works-in-UTF-8-locales"><code>qr/(?[ ])/</code> now works in UTF-8 locales</h2>
<p><a href="/cperl/perlrecharclass.html#Extended-Bracketed-Character-Classes">Extended Bracketed Character Classes</a> now will successfully compile when <span style="white-space: nowrap;"><code>use locale</code></span> is in effect. The compiled pattern will use standard Unicode rules. If the runtime locale is not a UTF-8 one, a warning is raised and standard Unicode rules are used anyway. No tainting is done since the outcome does not actually depend on the locale.</p>
<h2 id="Integer-shift-and-now-more-explicitly-defined">Integer shift (<code><<</code> and <code>>></code>) now more explicitly defined</h2>
<p>Negative shifts are reverse shifts: left shift becomes right shift, and right shift becomes left shift.</p>
<p>Shifting by the number of bits in a native integer (or more) is zero, except when the "overshift" is right shifting a negative value under <code>use integer</code>, in which case the result is -1 (arithmetic shift).</p>
<p>Until now negative shifting and overshifting have been undefined because they have relied on whatever the C implementation happens to do. For example, for the overshift a common C behavior is "modulo shift":</p>
<pre><code> 1 >> 64 == 1 >> (64 % 64) == 1 >> 0 == 1 # Common C behavior.
# And the same for <<, while Perl now produces 0 for both.</code></pre>
<p>Now these behaviors are well-defined under Perl, regardless of what the underlying C implementation does. Note, however, that you are still constrained by the native integer width: you need to know how far left you can go. You can use for example:</p>
<pre><code> use Config;
my $wordbits = $Config{uvsize} * 8; # Or $Config{uvsize} << 3.</code></pre>
<p>If you need a more bits on the left shift, you can use for example the <code>bigint</code> pragma, or the <code>Bit::Vector</code> module from CPAN.</p>
<h2 id="printf-and-sprintf-now-allow-reordered-precision-arguments">printf and sprintf now allow reordered precision arguments</h2>
<p>That is, <code>sprintf '|%.*2$d|', 2, 3</code> now returns <code>|002|</code>. This extends the existing reordering mechanism (which allows reordering for arguments that are used as format fields, widths, and vector separators).</p>
<h2 id="More-fields-provided-to-sigaction-callback-with-SA_SIGINFO">More fields provided to <code>sigaction</code> callback with <code>SA_SIGINFO</code></h2>
<p>When passing the <code>SA_SIGINFO</code> flag to <a href="/cperl/lib/POSIX.html#sigaction">sigaction</a>, the <code>errno</code>, <code>status</code>, <code>uid</code>, <code>pid</code>, <code>addr</code> and <code>band</code> fields are now included in the hash passed to the handler, if supported by the platform.</p>
<h2 id="Hashbang-redirection-to-Perl-6">Hashbang redirection to Perl 6</h2>
<p>Previously perl would redirect to another interpreter if it found a hashbang path unless the path contains "perl" (see <a href="/cperl/perlrun.html">perlrun</a>). To improve compatibility with Perl 6 this behavior has been extended to also redirect if "perl" is followed by "6".</p>
<h1 id="Security">Security</h1>
<h2 id="Set-proper-umask-before-calling-mkstemp-3">Set proper umask before calling <code>mkstemp(3)</code></h2>
<p>In 5.22 perl started setting umask to 0600 before calling <code>mkstemp(3)</code> and restoring it afterwards. This wrongfully tells <code>open(2)</code> to strip the owner read and write bits from the given mode before applying it, rather than the intended negation of leaving only those bits in place.</p>
<p>Systems that use mode 0666 in <code>mkstemp(3)</code> (like old versions of glibc) create a file with permissions 0066, leaving world read and write permissions regardless of current umask.</p>
<p>This has been fixed by using umask 0177 instead. [perl #127322]</p>
<h2 id="Fix-out-of-boundary-access-in-Win32-path-handling">Fix out of boundary access in Win32 path handling</h2>
<p>This is CVE-2015-8608. For more information see <a href="https://rt.perl.org/Ticket/Display.html?id=126755">[perl #126755]</a></p>
<h2 id="Fix-loss-of-taint-in-canonpath">Fix loss of taint in canonpath</h2>
<p>This is CVE-2015-8607. For more information see <a href="https://rt.perl.org/Ticket/Display.html?id=126862">[perl #126862]</a></p>
<h2 id="Avoid-accessing-uninitialized-memory-in-win32-crypt">Avoid accessing uninitialized memory in win32 <code>crypt()</code></h2>
<p>Added validation that will detect both a short salt and invalid characters in the salt. <a href="https://rt.perl.org/Ticket/Display.html?id=126922">[perl #126922]</a></p>
<h2 id="Remove-duplicate-environment-variables-from-environ">Remove duplicate environment variables from <code>environ</code></h2>
<p>Previously, if an environment variable appeared more than once in <code>environ[]</code>, <code>%ENV</code> would contain the last entry for that name, while a typical <code>getenv()</code> would return the first entry. We now make sure <code>%ENV</code> contains the same as what <code>getenv</code> returns.</p>
<p>Second, we remove duplicates from <code>environ[]</code>, so if a setting with that name is set in <code>%ENV</code>, we won't pass an unsafe value to a child process.</p>
<p>[CVE-2016-2381]</p>
<h1 id="Incompatible-Changes">Incompatible Changes</h1>
<h2 id="The-autoderef-feature-has-been-removed">The <code>autoderef</code> feature has been removed</h2>
<p>The experimental <code>autoderef</code> feature (which allowed calling <code>push</code>, <code>pop</code>, <code>shift</code>, <code>unshift</code>, <code>splice</code>, <code>keys</code>, <code>values</code>, and <code>each</code> on a scalar argument) has been deemed unsuccessful. It has now been removed; trying to use the feature (or to disable the <code>experimental::autoderef</code> warning it previously triggered) now yields an exception.</p>
<h2 id="Lexical-_-has-been-removed">Lexical $_ has been removed</h2>
<p><code>my $_</code> was introduced in Perl 5.10, and subsequently caused much confusion with no obvious solution. In Perl 5.18.0, it was made experimental on the theory that it would either be removed or redesigned in a less confusing (but backward-incompatible) way. Over the following years, no alternatives were proposed. The feature has now been removed and will fail to compile.</p>
<h2 id="qr-b-wb-is-now-tailored-to-Perl-expectations"><code>qr/\b{wb}/</code> is now tailored to Perl expectations</h2>
<p>This is now more suited to be a drop-in replacement for plain <code>\b</code>, but giving better results for parsing natural language. Previously it strictly followed the current Unicode rules which calls for it to match between each white space character. Now it doesn't generally match within spans of white space, behaving like <code>\b</code> does. See <a href="/cperl/perlrebackslash.html#b-wb">"\b{wb}" in perlrebackslash</a></p>
<h2 id="Regular-expression-compilation-errors">Regular expression compilation errors</h2>
<p>Some regular expression patterns that had runtime errors now don't compile at all.</p>
<p>Almost all Unicode properties using the <code>\p{}</code> and <code>\P{}</code> regular expression pattern constructs are now checked for validity at pattern compilation time, and invalid ones will cause the program to not compile. In earlier releases, this check was often deferred until run time. Whenever an error check is moved from run- to compile time, erroneous code is caught 100% of the time, whereas before it would only get caught if and when the offending portion actually gets executed, which for unreachable code might be never.</p>
<h2 id="qr-N-now-disallowed-under-use-re-strict"><code>qr/\N{}/</code> now disallowed under <code>use re "strict"</code></h2>
<p>An empty <code>\N{}</code> makes no sense, but for backwards compatibility is accepted as doing nothing, though a deprecation warning is raised by default. But now this is a fatal error under the experimental feature <a href="/cperl/lib/re.html#strict-mode">"'strict' mode" in re</a>.</p>
<h2 id="Nested-declarations-are-now-disallowed">Nested declarations are now disallowed</h2>
<p>A <code>my</code>, <code>our</code>, or <code>state</code> declaration is no longer allowed inside of another <code>my</code>, <code>our</code>, or <code>state</code> declaration.</p>
<p>For example, these are now fatal:</p>
<pre><code> my ($x, my($y));
our (my $x);</code></pre>
<p><a href="https://rt.perl.org/Ticket/Display.html?id=125587">[perl #125587]</a></p>
<p><a href="https://rt.perl.org/Ticket/Display.html?id=121058">[perl #121058]</a></p>
<h2 id="The-C-character-class-has-been-removed">The <code>/\C/</code> character class has been removed.</h2>
<p>This regular expression character class was deprecated in v5.20.0 and has produced a deprecation warning since v5.22.0. It is now a compile-time error. If you need to examine the individual bytes that make up a UTF8-encoded character, then use <code>utf8::encode()</code> on the string (or a copy) first.</p>
<h2 id="chdir-no-longer-chdirs-home"><code>chdir('')</code> no longer chdirs home</h2>
<p>Using <code>chdir('')</code> or <code>chdir(undef)</code> to chdir home has been deprecated since perl v5.8, and will now fail. Use <code>chdir()</code> instead.</p>
<h2 id="ASCII-characters-in-variable-names-must-now-be-all-visible">ASCII characters in variable names must now be all visible</h2>
<p>It was legal until now on ASCII platforms for variable names to contain non-graphical ASCII control characters (ordinals 0 through 31, and 127, which are the C0 controls and <code>DELETE</code>). This usage has been deprecated since v5.20, and as of now causes a syntax error. The variables these names referred to are special, reserved by Perl for whatever use it may choose, now, or in the future. Each such variable has an alternative way of spelling it. Instead of the single non-graphic control character, a two character sequence beginning with a caret is used, like <code>$^]</code> and <code>${^GLOBAL_PHASE}</code>. Details are at <a href="/cperl/perlvar.html">perlvar</a>. It remains legal, though unwise and deprecated (raising a deprecation warning), to use certain non-graphic non-ASCII characters in variables names when not under <span style="white-space: nowrap;"><code>use utf8</code></span>. No code should do this, as all such variables are reserved by Perl, and Perl doesn't currently define any of them (but could at any time, without notice).</p>
<h2 id="An-off-by-one-issue-in-Carp::MaxArgNums-has-been-fixed">An off by one issue in <code>$Carp::MaxArgNums</code> has been fixed</h2>
<p><code>$Carp::MaxArgNums</code> is supposed to be the number of arguments to display. Prior to this version, it was instead showing <code>$Carp::MaxArgNums</code> + 1 arguments, contrary to the documentation.</p>
<h2 id="Only-blanks-and-tabs-are-now-allowed-within-...-within">Only blanks and tabs are now allowed within <code>[...]</code> within <code>(?[...])</code>.</h2>
<p>The experimental Extended Bracketed Character Classes can contain regular bracketed character classes within them. These differ from regular ones in that white space is generally ignored, unless escaped by preceding it with a backslash. The white space that is ignored is now limited to just tab <code>\t</code> and SPACE characters. Previously, it was any white space. See <a href="/cperl/perlrecharclass.html#Extended-Bracketed-Character-Classes">"Extended Bracketed Character Classes" in perlrecharclass</a>.</p>
<h1 id="Deprecations">Deprecations</h1>
<h2 id="Using-code-points-above-the-platforms-IV_MAX-is-now-deprecated">Using code points above the platform's <code>IV_MAX</code> is now deprecated</h2>
<p>Unicode defines code points in the range <code>0..0x10FFFF</code>. Some standards at one time defined them up to 2**31 - 1, but Perl has allowed them to be as high as anything that will fit in a word on the platform being used. However, use of those above the platform's <code>IV_MAX</code> is broken in some constructs, notably <code>tr///</code>, regular expression patterns involving quantifiers, and in some arithmetic and comparison operations, such as being the upper limit of a loop. Now the use of such code points raises a deprecation warning, unless that warning category is turned off. <code>IV_MAX</code> is typically 2**31 -1 on 32-bit platforms, and 2**63-1 on 64-bit ones.</p>
<h2 id="Doing-bitwise-operations-on-strings-containing-code-points-above-0xFF-is-deprecated">Doing bitwise operations on strings containing code points above 0xFF is deprecated</h2>
<p>The string bitwise operators treat their operands as strings of bytes, and values beyond 0xFF are nonsensical in this context. To operate on encoded bytes, first encode the strings. To operate on code points' numeric values, use <code>split</code> and <code>map ord</code>. In the future, this warning will be replaced by an exception.</p>
<h2 id="sysread-syswrite-recv-and-send-are-deprecated-on-:utf8-handles"><code>sysread()</code>, <code>syswrite()</code>, <code>recv()</code> and <code>send()</code> are deprecated on :utf8 handles</h2>
<p>The <code>sysread()</code>, <code>recv()</code>, <code>syswrite()</code> and <code>send()</code> operators are deprecated on handles that have the <code>:utf8</code> layer, either explicitly, or implicitly, eg., with the <code>:encoding(UTF-16LE)</code> layer.</p>
<p>Both <code>sysread()</code> and <code>recv()</code> currently use only the <code>:utf8</code> flag for the stream, ignoring the actual layers. Since <code>sysread()</code> and <code>recv()</code> do no UTF-8 validation they can end up creating invalidly encoded scalars.</p>
<p>Similarly, <code>syswrite()</code> and <code>send()</code> use only the <code>:utf8</code> flag, otherwise ignoring any layers. If the flag is set, both write the value UTF-8 encoded, even if the layer is some different encoding, such as the example above.</p>
<p>Ideally, all of these operators would completely ignore the <code>:utf8</code> state, working only with bytes, but this would result in silently breaking existing code. To avoid this a future version of perl will throw an exception when any of <code>sysread()</code>, <code>recv()</code>, <code>syswrite()</code> or <code>send()</code> are called on handle with the <code>:utf8</code> layer.</p>
<h1 id="Performance-Enhancements">Performance Enhancements</h1>
<ul>
<li><p>The overhead of scope entry and exit has been considerably reduced, so for example subroutine calls, loops and basic blocks are all faster now. This empty function call now takes about a third less time to execute:</p>
<pre><code> sub f{} f();</code></pre>
</li>
<li><p>Many languages, such as Chinese, are caseless. Perl now knows about most common ones, and skips much of the work when a program tries to change case in them (like <code>ucfirst()</code>) or match caselessly (<code>qr//i</code>). This will speed up a program, such as a web server, that can operate on multiple languages, while it is operating on a caseless one.</p>
</li>
<li><p><code>/fixed-substr/</code> has been made much faster.</p>
<p>On platforms with a libc <code>memchr()</code> implementation which makes good use of underlying hardware support, patterns which include fixed substrings will now often be much faster; for example with glibc on a recent x86_64 CPU, this:</p>
<pre><code> $s = "a" x 1000 . "wxyz";
$s =~ /wxyz/ for 1..30000</code></pre>
<p>is now about 7 times faster. On systems with slow <code>memchr()</code>, e.g. 32-bit ARM Raspberry Pi, there will be a small or little speedup. Conversely, some pathological cases, such as <code>"ab" x 1000 =~ /aa/</code> will be slower now; up to 3 times slower on the rPi, 1.5x slower on x86_64.</p>
</li>
<li><p>Faster addition, subtraction and multiplication.</p>
<p>Since 5.8.0, arithmetic became slower due to the need to support 64-bit integers. To deal with 64-bit integers, a lot more corner cases need to be checked, which adds time. We now detect common cases where there is no need to check for those corner cases, and special-case them.</p>
</li>
<li><p>Preincrement, predecrement, postincrement, and postdecrement have been made faster by internally splitting the functions which handled multiple cases into different functions.</p>
</li>
<li><p>Creating Perl debugger data structures (see <a href="/cperl/perldebguts.html#Debugger-Internals">"Debugger Internals" in perldebguts</a>) for XSUBs and const subs has been removed. This removed one glob/scalar combo for each unique <code>.c</code> file that XSUBs and const subs came from. On startup (<code>perl -e"0"</code>) about half a dozen glob/scalar debugger combos were created. Loading XS modules created more glob/scalar combos. These things were being created regardless of whether the perl debugger was being used, and despite the fact that it can't debug C code anyway</p>
</li>
<li><p>On Win32, <code>stat</code>ing or <code>-X</code>ing a path, if the file or directory does not exist, is now 3.5x faster than before.</p>
</li>
<li><p>Single arguments in list assign are now slightly faster:</p>
<pre><code> ($x) = (...);
(...) = ($x);</code></pre>
</li>
<li><p>Less peak memory is now used when compiling regular expression patterns.</p>
</li>
</ul>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<ul>
<li><p><a>arybase</a> has been upgraded from version 0.10 to 0.11.</p>
</li>
<li><p><a href="/cperl/lib/Attribute/Handlers.html">Attribute::Handlers</a> has been upgraded from version 0.97 to 0.99.</p>
</li>
<li><p><a href="/cperl/lib/autodie.html">autodie</a> has been upgraded from version 2.26 to 2.29.</p>
</li>
<li><p><a href="/cperl/lib/autouse.html">autouse</a> has been upgraded from version 1.08 to 1.11.</p>
</li>
<li><p><a href="/cperl/lib/B.html">B</a> has been upgraded from version 1.58 to 1.62.</p>
</li>
<li><p><a href="/cperl/lib/B/Deparse.html">B::Deparse</a> has been upgraded from version 1.35 to 1.37.</p>
</li>
<li><p><a href="/cperl/lib/base.html">base</a> has been upgraded from version 2.22 to 2.23.</p>
</li>
<li><p><a href="/cperl/lib/Benchmark.html">Benchmark</a> has been upgraded from version 1.2 to 1.22.</p>
</li>
<li><p><a href="/cperl/lib/bignum.html">bignum</a> has been upgraded from version 0.39 to 0.42.</p>
</li>
<li><p><a href="/cperl/lib/bytes.html">bytes</a> has been upgraded from version 1.04 to 1.05.</p>
</li>
<li><p><a href="/cperl/lib/Carp.html">Carp</a> has been upgraded from version 1.36 to 1.40.</p>
</li>
<li><p><a href="/cperl/lib/Compress/Raw/Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.068 to 2.069.</p>
</li>
<li><p><a href="/cperl/lib/Compress/Raw/Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.068 to 2.069.</p>
</li>
<li><p><a href="/cperl/lib/Config/Perl/V.html">Config::Perl::V</a> has been upgraded from version 0.24 to 0.25.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta.html">CPAN::Meta</a> has been upgraded from version 2.150001 to 2.150005.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta/Requirements.html">CPAN::Meta::Requirements</a> has been upgraded from version 2.132 to 2.140.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta/YAML.html">CPAN::Meta::YAML</a> has been upgraded from version 0.012 to 0.018.</p>
</li>
<li><p><a href="/cperl/lib/Data/Dumper.html">Data::Dumper</a> has been upgraded from version 2.158 to 2.160.</p>
</li>
<li><p><a href="/cperl/lib/Devel/Peek.html">Devel::Peek</a> has been upgraded from version 1.22 to 1.23.</p>
</li>
<li><p><a href="/cperl/lib/Devel/PPPort.html">Devel::PPPort</a> has been upgraded from version 3.31 to 3.32.</p>
</li>
<li><p><a href="/cperl/lib/Dumpvalue.html">Dumpvalue</a> has been upgraded from version 1.17 to 1.18.</p>
</li>
<li><p><a href="/cperl/lib/DynaLoader.html">DynaLoader</a> has been upgraded from version 1.32 to 1.38.</p>
</li>
<li><p><a href="/cperl/lib/Encode.html">Encode</a> has been upgraded from version 2.72 to 2.80.</p>
</li>
<li><p><a href="/cperl/lib/encoding.html">encoding</a> has been upgraded from version 2.14 to 2.17.</p>
</li>
<li><p><a href="/cperl/lib/encoding/warnings.html">encoding::warnings</a> has been upgraded from version 0.11 to 0.12.</p>
</li>
<li><p><a href="/cperl/lib/English.html">English</a> has been upgraded from version 1.09 to 1.10.</p>
</li>
<li><p><a href="/cperl/lib/Errno.html">Errno</a> has been upgraded from version 1.23 to 1.25.</p>
</li>
<li><p><a href="/cperl/lib/experimental.html">experimental</a> has been upgraded from version 0.013 to 0.016.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.280221 to 0.280225.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Embed.html">ExtUtils::Embed</a> has been upgraded from version 1.32 to 1.33.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 7.04_01 to 7.10_01.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 3.28 to 3.31.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Typemaps.html">ExtUtils::Typemaps</a> has been upgraded from version 3.28 to 3.31.</p>
</li>
<li><p><a href="/cperl/lib/feature.html">feature</a> has been upgraded from version 1.40 to 1.42.</p>
</li>
<li><p><a href="/cperl/lib/fields.html">fields</a> has been upgraded from version 2.17 to 2.23.</p>
</li>
<li><p><a href="/cperl/lib/File/Find.html">File::Find</a> has been upgraded from version 1.29 to 1.34.</p>
</li>
<li><p><a href="/cperl/lib/File/Glob.html">File::Glob</a> has been upgraded from version 1.24 to 1.26.</p>
</li>
<li><p><a href="/cperl/lib/File/Path.html">File::Path</a> has been upgraded from version 2.09 to 2.12_01.</p>
</li>
<li><p><a href="/cperl/lib/File/Spec.html">File::Spec</a> has been upgraded from version 3.56 to 3.63.</p>
</li>
<li><p><a href="/cperl/lib/Filter/Util/Call.html">Filter::Util::Call</a> has been upgraded from version 1.54 to 1.55.</p>
</li>
<li><p><a href="/cperl/lib/Getopt/Long.html">Getopt::Long</a> has been upgraded from version 2.45 to 2.48.</p>
</li>
<li><p><a href="/cperl/lib/Hash/Util.html">Hash::Util</a> has been upgraded from version 0.18 to 0.19.</p>
</li>
<li><p><a href="/cperl/lib/Hash/Util/FieldHash.html">Hash::Util::FieldHash</a> has been upgraded from version 1.15 to 1.19.</p>
</li>
<li><p><a href="/cperl/lib/HTTP/Tiny.html">HTTP::Tiny</a> has been upgraded from version 0.054 to 0.056.</p>
</li>
<li><p><a href="/cperl/lib/I18N/Langinfo.html">I18N::Langinfo</a> has been upgraded from version 0.12 to 0.13.</p>
</li>
<li><p><a href="/cperl/lib/if.html">if</a> has been upgraded from version 0.0604 to 0.0606.</p>
</li>
<li><p><a href="/cperl/lib/IO.html">IO</a> has been upgraded from version 1.35 to 1.36.</p>
</li>
<li><p>IO-Compress has been upgraded from version 2.068 to 2.069.</p>
</li>
<li><p><a href="/cperl/lib/IPC/Open3.html">IPC::Open3</a> has been upgraded from version 1.18 to 1.20.</p>
</li>
<li><p><a href="/cperl/lib/IPC/SysV.html">IPC::SysV</a> has been upgraded from version 2.04 to 2.06_01.</p>
</li>
<li><p><a href="/cperl/lib/List/Util.html">List::Util</a> has been upgraded from version 1.41 to 1.42_02.</p>
</li>
<li><p><a href="/cperl/lib/locale.html">locale</a> has been upgraded from version 1.06 to 1.08.</p>
</li>
<li><p><a>Locale::Codes</a> has been upgraded from version 3.34 to 3.37.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigInt.html">Math::BigInt</a> has been upgraded from version 1.9997 to 1.999715.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigInt/FastCalc.html">Math::BigInt::FastCalc</a> has been upgraded from version 0.31 to 0.40.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigRat.html">Math::BigRat</a> has been upgraded from version 0.2608 to 0.260802.</p>
</li>
<li><p><a href="/cperl/lib/Module/CoreList.html">Module::CoreList</a> has been upgraded from version 5.20150520 to 5.20160320.</p>
</li>
<li><p><a href="/cperl/lib/Module/Metadata.html">Module::Metadata</a> has been upgraded from version 1.000026 to 1.000031.</p>
</li>
<li><p><a href="/cperl/lib/mro.html">mro</a> has been upgraded from version 1.17 to 1.18.</p>
</li>
<li><p><a>ODBM_File</a> has been upgraded from version 1.12 to 1.14.</p>
</li>
<li><p><a href="/cperl/lib/Opcode.html">Opcode</a> has been upgraded from version 1.32 to 1.34.</p>
</li>
<li><p><a href="/cperl/lib/parent.html">parent</a> has been upgraded from version 0.232 to 0.234.</p>
</li>
<li><p><a href="/cperl/lib/Parse/CPAN/Meta.html">Parse::CPAN::Meta</a> has been upgraded from version 1.4414 to 1.4417.</p>
</li>
<li><p><a href="/cperl/lib/Perl/OSType.html">Perl::OSType</a> has been upgraded from version 1.008 to 1.009.</p>
</li>
<li><p><a href="/cperl/lib/perlfaq.html">perlfaq</a> has been upgraded from version 5.021009 to 5.021010.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/encoding.html">PerlIO::encoding</a> has been upgraded from version 0.21 to 0.24.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/mmap.html">PerlIO::mmap</a> has been upgraded from version 0.014 to 0.016.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/scalar.html">PerlIO::scalar</a> has been upgraded from version 0.22 to 0.24.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/via.html">PerlIO::via</a> has been upgraded from version 0.15 to 0.16.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Functions.html">Pod::Functions</a> has been upgraded from version 1.09 to 1.10.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Perldoc.html">Pod::Perldoc</a> has been upgraded from version 3.25 to 3.25_02.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Simple.html">Pod::Simple</a> has been upgraded from version 3.29 to 3.32.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Usage.html">Pod::Usage</a> has been upgraded from version 1.64 to 1.68.</p>
</li>
<li><p><a href="/cperl/lib/POSIX.html">POSIX</a> has been upgraded from version 1.53 to 1.65.</p>
</li>
<li><p><a href="/cperl/lib/Scalar/Util.html">Scalar::Util</a> has been upgraded from version 1.41 to 1.42_02.</p>
</li>
<li><p><a href="/cperl/lib/SDBM_File.html">SDBM_File</a> has been upgraded from version 1.13 to 1.14.</p>
</li>
<li><p><a href="/cperl/lib/SelfLoader.html">SelfLoader</a> has been upgraded from version 1.22 to 1.23.</p>
</li>
<li><p><a href="/cperl/lib/Socket.html">Socket</a> has been upgraded from version 2.018 to 2.020_03.</p>
</li>
<li><p><a href="/cperl/lib/Storable.html">Storable</a> has been upgraded from version 2.53 to 2.56.</p>
</li>
<li><p><a href="/cperl/lib/strict.html">strict</a> has been upgraded from version 1.09 to 1.11.</p>
</li>
<li><p><a href="/cperl/lib/Term/ANSIColor.html">Term::ANSIColor</a> has been upgraded from version 4.03 to 4.04.</p>
</li>
<li><p><a href="/cperl/lib/Term/Cap.html">Term::Cap</a> has been upgraded from version 1.15 to 1.17.</p>
</li>
<li><p><a href="/cperl/lib/Test.html">Test</a> has been upgraded from version 1.26 to 1.28.</p>
</li>
<li><p><a href="/cperl/lib/Test/Harness.html">Test::Harness</a> has been upgraded from version 3.35 to 3.36.</p>
</li>
<li><p><a href="/cperl/lib/Thread/Queue.html">Thread::Queue</a> has been upgraded from version 3.05 to 3.08.</p>
</li>
<li><p><a href="/cperl/lib/threads.html">threads</a> has been upgraded from version 2.01 to 2.06.</p>
</li>
<li><p><a href="/cperl/lib/threads/shared.html">threads::shared</a> has been upgraded from version 1.48 to 1.50.</p>
</li>
<li><p><a href="/cperl/lib/Tie/File.html">Tie::File</a> has been upgraded from version 1.01 to 1.02.</p>
</li>
<li><p><a href="/cperl/lib/Tie/Scalar.html">Tie::Scalar</a> has been upgraded from version 1.03 to 1.04.</p>
</li>
<li><p><a href="/cperl/lib/Time/HiRes.html">Time::HiRes</a> has been upgraded from version 1.9726 to 1.9732.</p>
</li>
<li><p><a href="/cperl/lib/Time/Piece.html">Time::Piece</a> has been upgraded from version 1.29 to 1.31.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/Collate.html">Unicode::Collate</a> has been upgraded from version 1.12 to 1.14.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.18 to 1.25.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/UCD.html">Unicode::UCD</a> has been upgraded from version 0.61 to 0.64.</p>
</li>
<li><p><a href="/cperl/lib/UNIVERSAL.html">UNIVERSAL</a> has been upgraded from version 1.12 to 1.13.</p>
</li>
<li><p><a href="/cperl/lib/utf8.html">utf8</a> has been upgraded from version 1.17 to 1.19.</p>
</li>
<li><p><a href="/cperl/lib/version.html">version</a> has been upgraded from version 0.9909 to 0.9916.</p>
</li>
<li><p><a href="/cperl/lib/warnings.html">warnings</a> has been upgraded from version 1.32 to 1.36.</p>
</li>
<li><p><a href="/cperl/lib/File/Spec/Win32.html">Win32</a> has been upgraded from version 0.51 to 0.52.</p>
</li>
<li><p><a>Win32API::File</a> has been upgraded from version 0.1202 to 0.1203.</p>
</li>
<li><p><a href="/cperl/lib/XS/Typemap.html">XS::Typemap</a> has been upgraded from version 0.13 to 0.14.</p>
</li>
<li><p><a href="/cperl/lib/XSLoader.html">XSLoader</a> has been upgraded from version 0.20 to 0.21.</p>
</li>
</ul>
<h1 id="Documentation">Documentation</h1>
<h2 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h2>
<h3 id="perlapi"><a href="/cperl/perlapi.html">perlapi</a></h3>
<ul>
<li><p>The process of using undocumented globals has been documented, namely, that one should send email to <a href="mailto:[email protected]">[email protected]</a> first to get the go-ahead for documenting and using an undocumented function or global variable.</p>
</li>
</ul>
<h3 id="perlcall"><a href="/cperl/perlcall.html">perlcall</a></h3>
<ul>
<li><p>A number of cleanups have been made to perlcall, including:</p>
<ul>
<li><p>use <code>EXTEND(SP, n)</code> and <code>PUSHs()</code> instead of <code>XPUSHs()</code> where applicable and update prose to match</p>
</li>
<li><p>add POPu, POPul and POPpbytex to the "complete list of POP macros" and clarify the documentation for some of the existing entries, and a note about side-effects</p>
</li>
<li><p>add API documentation for POPu and POPul</p>
</li>
<li><p>use ERRSV more efficiently</p>
</li>
<li><p>approaches to thread-safety storage of SVs.</p>
</li>
</ul>
</li>
</ul>
<h3 id="perlfunc"><a href="/cperl/perlfunc.html">perlfunc</a></h3>
<ul>
<li><p>The documentation of <code>hex</code> has been revised to clarify valid inputs.</p>
</li>
<li><p>Better explain meaning of negative PIDs in <code>waitpid</code>. <a href="https://rt.perl.org/Ticket/Display.html?id=127080">[perl #127080]</a></p>
</li>
<li><p>General cleanup: there's more consistency now (in POD usage, grammar, code examples), better practices in code examples (use of <code>my</code>, removal of bareword filehandles, dropped usage of <code>&</code> when calling subroutines, ...), etc.</p>
</li>
</ul>
<h3 id="perlguts"><a href="/cperl/perlguts.html">perlguts</a></h3>
<ul>
<li><p>A new section has been added, <a href="/cperl/perlguts.html#Dynamic-Scope-and-the-Context-Stack">"Dynamic Scope and the Context Stack" in perlguts</a>, which explains how the perl context stack works.</p>
</li>
</ul>
<h3 id="perllocale"><a href="/cperl/perllocale.html">perllocale</a></h3>
<ul>
<li><p>A stronger caution about using locales in threaded applications is given. Locales are not thread-safe, and you can get wrong results or even segfaults if you use them there.</p>
</li>
</ul>
<h3 id="perlmodlib"><a href="/cperl/perlmodlib.html">perlmodlib</a></h3>
<ul>
<li><p>We now recommend contacting the module-authors list or PAUSE in seeking guidance on the naming of modules.</p>
</li>
</ul>
<h3 id="perlop"><a href="/cperl/perlop.html">perlop</a></h3>
<ul>
<li><p>The documentation of <code>qx//</code> now describes how <code>$?</code> is affected.</p>
</li>
</ul>
<h3 id="perlpolicy"><a href="/cperl/perlpolicy.html">perlpolicy</a></h3>
<ul>
<li><p>This note has been added to perlpolicy:</p>
<pre><code> While civility is required, kindness is encouraged; if you have any
doubt about whether you are being civil, simply ask yourself, "Am I
being kind?" and aspire to that.</code></pre>
</li>
</ul>
<h3 id="perlreftut"><a href="/cperl/perlreftut.html">perlreftut</a></h3>
<ul>
<li><p>Fix some examples to be <a href="/cperl/lib/strict.html">strict</a> clean.</p>
</li>
</ul>
<h3 id="perlrebackslash"><a href="/cperl/perlrebackslash.html">perlrebackslash</a></h3>
<ul>
<li><p>Clarify that in languages like Japanese and Thai, dictionary lookup is required to determine word boundaries.</p>
</li>
</ul>
<h3 id="perlsub"><a href="/cperl/perlsub.html">perlsub</a></h3>
<ul>
<li><p>Updated to note that anonymous subroutines can have signatures.</p>
</li>
</ul>
<h3 id="perlsyn"><a href="/cperl/perlsyn.html">perlsyn</a></h3>
<ul>
<li><p>Fixed a broken example where <code>=</code> was used instead of <code>==</code> in conditional in do/while example.</p>
</li>
</ul>
<h3 id="perltie"><a href="/cperl/perltie.html">perltie</a></h3>
<ul>
<li><p>The usage of <code>FIRSTKEY</code> and <code>NEXTKEY</code> has been clarified.</p>
</li>
</ul>
<h3 id="perlunicode"><a href="/cperl/perlunicode.html">perlunicode</a></h3>
<ul>
<li><p>Discourage use of 'In' as a prefix signifying the Unicode Block property.</p>
</li>
</ul>
<h3 id="perlvar"><a href="/cperl/perlvar.html">perlvar</a></h3>
<ul>
<li><p>The documentation of <code>$@</code> was reworded to clarify that it is not just for syntax errors in <code>eval</code>. <a href="https://rt.perl.org/Ticket/Display.html?id=124034">[perl #124034]</a></p>
</li>
<li><p>The specific true value of <code>$!{E...}</code> is now documented, noting that it is subject to change and not guaranteed.</p>
</li>
<li><p>Use of <code>$OLD_PERL_VERSION</code> is now discouraged.</p>
</li>
</ul>
<h3 id="perlxs"><a href="/cperl/perlxs.html">perlxs</a></h3>
<ul>
<li><p>The documentation of <code>PROTOTYPES</code> has been corrected; they are <i>disabled</i> by default, not <i>enabled</i>.</p>
</li>
</ul>
<h1 id="Diagnostics">Diagnostics</h1>
<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="/cperl/perldiag.html">perldiag</a>.</p>
<h2 id="New-Diagnostics">New Diagnostics</h2>
<h3 id="New-Errors">New Errors</h3>
<ul>
<li><p><a href="/cperl/perldiag.html#s-must-not-be-a-named-sequence-in-transliteration-operator">%s must not be a named sequence in transliteration operator</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Can-t-find-Unicode-property-definition-s-in-regex-marked-by----HERE-in-m-s">Can't find Unicode property definition "%s" in regex;</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Can-t-redeclare-s-in-s">Can't redeclare "%s" in "%s"</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Character-following-c-must-be-or-a-single-character-Unicode-property-name-in-regex-marked-by----HERE-in-m-s">Character following \p must be '{' or a single-character Unicode property name in regex;</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Empty-c-in-regex-marked-by----HERE-in-m-s">Empty \%c in regex; marked by <-- HERE in m/%s/ </a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Illegal-user-defined-property-name">Illegal user-defined property name</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Invalid-number-s-for--C-option">Invalid number '%s' for -C option.</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Sequence-...-not-terminated-in-regex-marked-by----HERE-in-m-s">Sequence (?... not terminated in regex; marked by <span style="white-space: nowrap;"><-- HERE</span> in m/%s/</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Sequence-P-...-not-terminated-in-regex-marked-by----HERE-in-m-s">Sequence (?P<... not terminated in regex; marked by <-- HERE in m/%s/ </a></p>
</li>
<li><p><a href="/cperl/perldiag.html#Sequence-P-...-not-terminated-in-regex-marked-by----HERE-in-m-s">Sequence (?P>... not terminated in regex; marked by <-- HERE in m/%s/ </a></p>
</li>
</ul>
<h3 id="New-Warnings">New Warnings</h3>
<ul>
<li><p><a>Assuming NOT a POSIX class since %s in regex; marked by <-- HERE in m/%s/</a></p>
</li>
<li><p><a href="/cperl/perldiag.html#s-is-deprecated-on-:utf8-handles">%s() is deprecated on :utf8 handles</a></p>
</li>
</ul>
<h2 id="Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</h2>
<ul>
<li><p>Accessing the <code>IO</code> part of a glob as <code>FILEHANDLE</code> instead of <code>IO</code> is no longer deprecated. It is discouraged to encourage uniformity (so that, for example, one can grep more easily) but it will not be removed. <a href="https://rt.perl.org/Ticket/Display.html?id=127060">[perl #127060]</a></p>
</li>
<li><p>The diagnostic <code>Hexadecimal float: internal error</code> has been changed to <code>Hexadecimal float: internal error (%s)</code> to include more information.</p>
</li>
<li><p><a href="/cperl/perldiag.html#Can-t-modify-non-lvalue-subroutine-call-of-s">Can't modify non-lvalue subroutine call of &%s</a></p>
<p>This error now reports the name of the non-lvalue subroutine you attempted to use as an lvalue.</p>
</li>
<li><p>When running out of memory during an attempt the increase the stack size, previously, perl would die using the cryptic message <code>panic: av_extend_guts() negative count (-9223372036854775681)</code>. This has been fixed to show the prettier message: <a href="/cperl/perldiag.html#Out-of-memory-during-s-extend">Out of memory during stack extend</a></p>
</li>
</ul>
<h1 id="Configuration-and-Compilation">Configuration and Compilation</h1>
<ul>
<li><p><code>Configure</code> now acts as if the <code>-O</code> option is always passed, allowing command line options to override saved configuration. This should eliminate confusion when command line options are ignored for no obvious reason. <code>-O</code> is now permitted, but ignored.</p>
</li>
<li><p>Bison 3.0 is now supported.</p>
</li>
<li><p><i>Configure</i> no longer probes for <i>libnm</i> by default. Originally this was the "New Math" library, but the name has been re-used by the GNOME NetworkManager. <a href="https://rt.perl.org/Ticket/Display.html?id=127131">[perl #127131]</a></p>
</li>
<li><p>Added <i>Configure</i> probes for <code>newlocale</code>, <code>freelocale</code>, and <code>uselocale</code>.</p>
</li>
<li><p><code>PPPort.so/PPPort.dll</code> no longer get installed, as they are not used by <code>PPPort.pm</code>, only by its test files.</p>
</li>
<li><p>It is now possible to specify which compilation date to show on <code>perl -V</code> output, by setting the macro <code>PERL_BUILD_DATE</code>.</p>
</li>
<li><p>Using the <code>NO_HASH_SEED</code> define in combination with the default hash algorithm <code>PERL_HASH_FUNC_ONE_AT_A_TIME_HARD</code> resulted in a fatal error while compiling the interpreter, since Perl 5.17.10. This has been fixed.</p>
</li>
<li><p><i>Configure</i> should handle spaces in paths a little better.</p>
</li>
<li><p>No longer generate EBCDIC POSIX-BC tables. We don't believe anyone is using Perl and POSIX-BC at this time, and by not generating these tables it saves time during development, and makes the resulting tar ball smaller.</p>
</li>
<li><p>The GNU Make makefile for Win32 now supports parallel builds. [perl #126632]</p>
</li>
<li><p>You can now build perl with MSVC++ on Win32 using GNU Make. [perl #126632]</p>
</li>
<li><p>The Win32 miniperl now has a real <code>getcwd</code> which increases build performance resulting in <code>getcwd()</code> being 605x faster in Win32 miniperl.</p>
</li>
<li><p>Configure now takes <code>-Dusequadmath</code> into account when calculating the <code>alignbytes</code> configuration variable. Previously the mis-calculated <code>alignbytes</code> could cause alignment errors on debugging builds. [perl #127894]</p>
</li>
</ul>
<h1 id="Testing">Testing</h1>
<ul>
<li><p>A new test (<i>t/op/aassign.t</i>) has been added to test the list assignment operator <code>OP_AASSIGN</code>.</p>
</li>
<li><p>Parallel building has been added to the dmake <code>makefile.mk</code> makefile. All Win32 compilers are supported.</p>
</li>
</ul>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="AmigaOS">AmigaOS</dt>
<dd>
<ul>
<li><p>The AmigaOS port has been reintegrated into the main tree, based off of Perl 5.22.1.</p>
</li>
</ul>
</dd>
<dt id="Cygwin">Cygwin</dt>
<dd>
<ul>
<li><p>Tests are more robust against unusual cygdrive prefixes. <a href="https://rt.perl.org/Ticket/Display.html?id=126834">[perl #126834]</a></p>
</li>
</ul>
</dd>
<dt id="EBCDIC">EBCDIC</dt>
<dd>
<dl>
<dt id="UTF-EBCDIC-extended">UTF-EBCDIC extended</dt>
<dd>
<p>UTF-EBCDIC is like UTF-8, but for EBCDIC platforms. It now has been extended so that it can represent code points up to 2 ** 64 - 1 on platforms with 64-bit words. This brings it into parity with UTF-8. This enhancement requires an incompatible change to the representation of code points in the range 2 ** 30 to 2 ** 31 -1 (the latter was the previous maximum representable code point). This means that a file that contains one of these code points, written out with previous versions of perl cannot be read in, without conversion, by a perl containing this change. We do not believe any such files are in existence, but if you do have one, submit a ticket at <a href="mailto:[email protected]">[email protected]</a>, and we will write a conversion script for you.</p>
</dd>
<dt id="EBCDIC-cmp-and-sort-fixed-for-UTF-EBCDIC-strings">EBCDIC <code>cmp()</code> and <code>sort()</code> fixed for UTF-EBCDIC strings</dt>
<dd>