-
Notifications
You must be signed in to change notification settings - Fork 2
/
perl5200delta.html
2471 lines (1586 loc) · 146 KB
/
perl5200delta.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>perl5200delta - what is new for perl v5.20.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="#Experimental-Subroutine-signatures">Experimental Subroutine signatures</a></li>
<li><a href="#subs-now-take-a-prototype-attribute">subs now take a prototype attribute</a></li>
<li><a href="#More-consistent-prototype-parsing">More consistent prototype parsing</a></li>
<li><a href="#rand-now-uses-a-consistent-random-number-generator">rand now uses a consistent random number generator</a></li>
<li><a href="#New-slice-syntax">New slice syntax</a></li>
<li><a href="#Experimental-Postfix-Dereferencing">Experimental Postfix Dereferencing</a></li>
<li><a href="#Unicode-6.3-now-supported">Unicode 6.3 now supported</a></li>
<li><a href="#New-p-Unicode-regular-expression-pattern-property">New \p{Unicode} regular expression pattern property</a></li>
<li><a href="#Better-64-bit-support">Better 64-bit support</a></li>
<li><a href="#use-locale-now-works-on-UTF-8-locales">use locale now works on UTF-8 locales</a></li>
<li><a href="#use-locale-now-compiles-on-systems-without-locale-ability">use locale now compiles on systems without locale ability</a></li>
<li><a href="#More-locale-initialization-fallback-options">More locale initialization fallback options</a></li>
<li><a href="#DL-runtime-option-now-added-for-tracing-locale-setting">-DL runtime option now added for tracing locale setting</a></li>
<li><a href="#F-now-implies--a-and--a-implies--n">-F now implies -a and -a implies -n</a></li>
<li><a href="#a-and-b-warnings-exemption">$a and $b warnings exemption</a></li>
</ul>
</li>
<li><a href="#Security">Security</a>
<ul>
<li><a href="#Avoid-possible-read-of-free-d-memory-during-parsing">Avoid possible read of free()d memory during parsing</a></li>
</ul>
</li>
<li><a href="#Incompatible-Changes">Incompatible Changes</a>
<ul>
<li><a href="#do-can-no-longer-be-used-to-call-subroutines">do can no longer be used to call subroutines</a></li>
<li><a href="#Quote-like-escape-changes">Quote-like escape changes</a></li>
<li><a href="#Tainting-happens-under-more-circumstances-now-conforms-to-documentation">Tainting happens under more circumstances; now conforms to documentation</a></li>
<li><a href="#p-P-matching-has-changed-for-non-Unicode-code-points">\p{}, \P{} matching has changed for non-Unicode code points.</a></li>
<li><a href="#p-All-has-been-expanded-to-match-all-possible-code-points">\p{All} has been expanded to match all possible code points</a></li>
<li><a href="#Data::Dumpers-output-may-change">Data::Dumper's output may change</a></li>
<li><a href="#Locale-decimal-point-character-no-longer-leaks-outside-of-use-locale-scope">Locale decimal point character no longer leaks outside of use locale scope</a></li>
<li><a href="#Assignments-of-Windows-sockets-error-codes-to-now-prefer-errno.h-values-over-WSAGetLastError-values">Assignments of Windows sockets error codes to $! now prefer errno.h values over WSAGetLastError() values</a></li>
<li><a href="#Functions-PerlIO_vsprintf-and-PerlIO_sprintf-have-been-removed">Functions PerlIO_vsprintf and PerlIO_sprintf have been removed</a></li>
</ul>
</li>
<li><a href="#Deprecations">Deprecations</a>
<ul>
<li><a href="#The-C-character-class">The /\C/ character class</a></li>
<li><a href="#Literal-control-characters-in-variable-names">Literal control characters in variable names</a></li>
<li><a href="#References-to-non-integers-and-non-positive-integers-in">References to non-integers and non-positive integers in $/</a></li>
<li><a href="#Character-matching-routines-in-POSIX">Character matching routines in POSIX</a></li>
<li><a href="#Interpreter-based-threads-are-now-discouraged">Interpreter-based threads are now discouraged</a></li>
<li><a href="#Module-removals">Module removals</a></li>
<li><a href="#Utility-removals">Utility removals</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="#New-Modules-and-Pragmata">New Modules and Pragmata</a></li>
<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="#New-Documentation">New Documentation</a>
<ul>
<li><a href="#perlrepository">perlrepository</a></li>
</ul>
</li>
<li><a href="#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
<ul>
<li><a href="#perldata">perldata</a></li>
<li><a href="#perldebguts">perldebguts</a></li>
<li><a href="#perlexperiment">perlexperiment</a></li>
<li><a href="#perlfunc">perlfunc</a></li>
<li><a href="#perlguts">perlguts</a></li>
<li><a href="#perlhack">perlhack</a></li>
<li><a href="#perlhacktips">perlhacktips</a></li>
<li><a href="#perllexwarn">perllexwarn</a></li>
<li><a href="#perllocale">perllocale</a></li>
<li><a href="#perlop">perlop</a></li>
<li><a href="#perlopentut">perlopentut</a></li>
<li><a href="#perlre">perlre</a></li>
<li><a href="#perlreguts">perlreguts</a></li>
<li><a href="#perlsub">perlsub</a></li>
<li><a href="#perltrap">perltrap</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="#Utility-Changes">Utility Changes</a>
<ul>
<li>
<ul>
<li><a href="#a2p1">a2p</a></li>
<li><a href="#bisect.pl">bisect.pl</a></li>
<li><a href="#find2perl1">find2perl</a></li>
<li><a href="#perlbug">perlbug</a></li>
</ul>
</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="#New-Platforms">New Platforms</a></li>
<li><a href="#Discontinued-Platforms">Discontinued Platforms</a></li>
<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>
<ul>
<li><a href="#Regular-Expressions">Regular Expressions</a></li>
<li><a href="#Perl-5-Debugger-and--d">Perl 5 Debugger and -d</a></li>
<li><a href="#Lexical-Subroutines">Lexical Subroutines</a></li>
<li><a href="#Everything-Else">Everything Else</a></li>
</ul>
</li>
<li><a href="#Known-Problems">Known Problems</a></li>
<li><a href="#Obituary">Obituary</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>perl5200delta - what is new for perl v5.20.0</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes differences between the 5.18.0 release and the 5.20.0 release.</p>
<p>If you are upgrading from an earlier release such as 5.16.0, first read <a href="/cperl/perl5180delta.html">perl5180delta</a>, which describes differences between 5.16.0 and 5.18.0.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<h2 id="Experimental-Subroutine-signatures">Experimental Subroutine signatures</h2>
<p>Declarative syntax to unwrap argument list into lexical variables. <code>sub foo ($a,$b) {...}</code> checks the number of arguments and puts the arguments into lexical variables. Signatures are not equivalent to the existing idiom of <code>sub foo { my($a,$b) = @_; ... }</code>. Signatures are only available by enabling a non-default feature, and generate warnings about being experimental. The syntactic clash with prototypes is managed by disabling the short prototype syntax when signatures are enabled.</p>
<p>See <a href="/cperl/perlsub.html#Signatures">"Signatures" in perlsub</a> for details.</p>
<h2 id="subs-now-take-a-prototype-attribute"><code>sub</code>s now take a <code>prototype</code> attribute</h2>
<p>When declaring or defining a <code>sub</code>, the prototype can now be specified inside of a <code>prototype</code> attribute instead of in parens following the name.</p>
<p>For example, <code>sub foo($$){}</code> could be rewritten as <code>sub foo : prototype($$){}</code>.</p>
<h2 id="More-consistent-prototype-parsing">More consistent prototype parsing</h2>
<p>Multiple semicolons in subroutine prototypes have long been tolerated and treated as a single semicolon. There was one case where this did not happen. A subroutine whose prototype begins with "*" or ";*" can affect whether a bareword is considered a method name or sub call. This now applies also to ";;;*".</p>
<p>Whitespace has long been allowed inside subroutine prototypes, so <code>sub( $ $ )</code> is equivalent to <code>sub($$)</code>, but until now it was stripped when the subroutine was parsed. Hence, whitespace was <i>not</i> allowed in prototypes set by <code>Scalar::Util::set_prototype</code>. Now it is permitted, and the parser no longer strips whitespace. This means <code>prototype &mysub</code> returns the original prototype, whitespace and all.</p>
<h2 id="rand-now-uses-a-consistent-random-number-generator"><code>rand</code> now uses a consistent random number generator</h2>
<p>Previously perl would use a platform specific random number generator, varying between the libc rand(), random() or drand48().</p>
<p>This meant that the quality of perl's random numbers would vary from platform to platform, from the 15 bits of rand() on Windows to 48-bits on POSIX platforms such as Linux with drand48().</p>
<p>Perl now uses its own internal drand48() implementation on all platforms. This does not make perl's <code>rand</code> cryptographically secure. [perl #115928]</p>
<h2 id="New-slice-syntax">New slice syntax</h2>
<p>The new <code>%hash{...}</code> and <code>%array[...]</code> syntax returns a list of key/value (or index/value) pairs. See <a href="/cperl/perldata.html#Key-Value-Hash-Slices">"Key/Value Hash Slices" in perldata</a>.</p>
<h2 id="Experimental-Postfix-Dereferencing">Experimental Postfix Dereferencing</h2>
<p>When the <code>postderef</code> feature is in effect, the following syntactical equivalencies are set up:</p>
<pre><code> $sref->$*; # same as ${ $sref } # interpolates
$aref->@*; # same as @{ $aref } # interpolates
$href->%*; # same as %{ $href }
$cref->&*; # same as &{ $cref }
$gref->**; # same as *{ $gref }
$aref->$#*; # same as $#{ $aref }
$gref->*{ $slot }; # same as *{ $gref }{ $slot }
$aref->@[ ... ]; # same as @$aref[ ... ] # interpolates
$href->@{ ... }; # same as @$href{ ... } # interpolates
$aref->%[ ... ]; # same as %$aref[ ... ]
$href->%{ ... }; # same as %$href{ ... }</code></pre>
<p>Those marked as interpolating only interpolate if the associated <code>postderef_qq</code> feature is also enabled. This feature is <b>experimental</b> and will trigger <code>experimental::postderef</code>-category warnings when used, unless they are suppressed.</p>
<p>For more information, consult <a href="/cperl/perlref.html#Postfix-Dereference-Syntax">the Postfix Dereference Syntax section of perlref</a>.</p>
<h2 id="Unicode-6.3-now-supported">Unicode 6.3 now supported</h2>
<p>Perl now supports and is shipped with Unicode 6.3 (though Perl may be recompiled with any previous Unicode release as well). A detailed list of Unicode 6.3 changes is at <a href="http://www.unicode.org/versions/Unicode6.3.0/">http://www.unicode.org/versions/Unicode6.3.0/</a>.</p>
<h2 id="New-p-Unicode-regular-expression-pattern-property">New <code>\p{Unicode}</code> regular expression pattern property</h2>
<p>This is a synonym for <code>\p{Any}</code> and matches the set of Unicode-defined code points 0 - 0x10FFFF.</p>
<h2 id="Better-64-bit-support">Better 64-bit support</h2>
<p>On 64-bit platforms, the internal array functions now use 64-bit offsets, allowing Perl arrays to hold more than 2**31 elements, if you have the memory available.</p>
<p>The regular expression engine now supports strings longer than 2**31 characters. [perl #112790, #116907]</p>
<p>The functions PerlIO_get_bufsiz, PerlIO_get_cnt, PerlIO_set_cnt and PerlIO_set_ptrcnt now have SSize_t, rather than int, return values and parameters.</p>
<h2 id="use-locale-now-works-on-UTF-8-locales"><code><span style="white-space: nowrap;">use locale</span></code> now works on UTF-8 locales</h2>
<p>Until this release, only single-byte locales, such as the ISO 8859 series were supported. Now, the increasingly common multi-byte UTF-8 locales are also supported. A UTF-8 locale is one in which the character set is Unicode and the encoding is UTF-8. The POSIX <code>LC_CTYPE</code> category operations (case changing (like <code>lc()</code>, <code>"\U"</code>), and character classification (<code>\w</code>, <code>\D</code>, <code>qr/[[:punct:]]/</code>)) under such a locale work just as if not under locale, but instead as if under <code><span style="white-space: nowrap;">use feature 'unicode_strings'</span></code>, except taint rules are followed. Sorting remains by code point order in this release. [perl #56820].</p>
<h2 id="use-locale-now-compiles-on-systems-without-locale-ability"><code><span style="white-space: nowrap;">use locale</span></code> now compiles on systems without locale ability</h2>
<p>Previously doing this caused the program to not compile. Within its scope the program behaves as if in the "C" locale. Thus programs written for platforms that support locales can run on locale-less platforms without change. Attempts to change the locale away from the "C" locale will, of course, fail.</p>
<h2 id="More-locale-initialization-fallback-options">More locale initialization fallback options</h2>
<p>If there was an error with locales during Perl start-up, it immediately gave up and tried to use the <code>"C"</code> locale. Now it first tries using other locales given by the environment variables, as detailed in <a href="/cperl/perllocale.html#ENVIRONMENT">"ENVIRONMENT" in perllocale</a>. For example, if <code>LC_ALL</code> and <code>LANG</code> are both set, and using the <code>LC_ALL</code> locale fails, Perl will now try the <code>LANG</code> locale, and only if that fails, will it fall back to <code>"C"</code>. On Windows machines, Perl will try, ahead of using <code>"C"</code>, the system default locale if all the locales given by environment variables fail.</p>
<h2 id="DL-runtime-option-now-added-for-tracing-locale-setting"><code>-DL</code> runtime option now added for tracing locale setting</h2>
<p>This is designed for Perl core developers to aid in field debugging bugs regarding locales.</p>
<h2 id="F-now-implies--a-and--a-implies--n"><b>-F</b> now implies <b>-a</b> and <b>-a</b> implies <b>-n</b></h2>
<p>Previously <b>-F</b> without <b>-a</b> was a no-op, and <b>-a</b> without <b>-n</b> or <b>-p</b> was a no-op, with this change, if you supply <b>-F</b> then both <b>-a</b> and <b>-n</b> are implied and if you supply <b>-a</b> then <b>-n</b> is implied.</p>
<p>You can still use <b>-p</b> for its extra behaviour. [perl #116190]</p>
<h2 id="a-and-b-warnings-exemption">$a and $b warnings exemption</h2>
<p>The special variables $a and $b, used in <code>sort</code>, are now exempt from "used once" warnings, even where <code>sort</code> is not used. This makes it easier for CPAN modules to provide functions using $a and $b for similar purposes. [perl #120462]</p>
<h1 id="Security">Security</h1>
<h2 id="Avoid-possible-read-of-free-d-memory-during-parsing">Avoid possible read of free()d memory during parsing</h2>
<p>It was possible that free()d memory could be read during parsing in the unusual circumstance of the Perl program ending with a heredoc and the last line of the file on disk having no terminating newline character. This has now been fixed.</p>
<h1 id="Incompatible-Changes">Incompatible Changes</h1>
<h2 id="do-can-no-longer-be-used-to-call-subroutines"><code>do</code> can no longer be used to call subroutines</h2>
<p>The <code>do SUBROUTINE(LIST)</code> form has resulted in a deprecation warning since Perl v5.0.0, and is now a syntax error.</p>
<h2 id="Quote-like-escape-changes">Quote-like escape changes</h2>
<p>The character after <code>\c</code> in a double-quoted string ("..." or qq(...)) or regular expression must now be a printable character and may not be <code>{</code>.</p>
<p>A literal <code>{</code> after <code>\B</code> or <code>\b</code> is now fatal.</p>
<p>These were deprecated in perl v5.14.0.</p>
<h2 id="Tainting-happens-under-more-circumstances-now-conforms-to-documentation">Tainting happens under more circumstances; now conforms to documentation</h2>
<p>This affects regular expression matching and changing the case of a string (<code>lc</code>, <code>"\U"</code>, <i>etc</i>.) within the scope of <code>use locale</code>. The result is now tainted based on the operation, no matter what the contents of the string were, as the documentation (<a href="/cperl/perlsec.html">perlsec</a>, <a href="/cperl/perllocale.html#SECURITY">"SECURITY" in perllocale</a>) indicates it should. Previously, for the case change operation, if the string contained no characters whose case change could be affected by the locale, the result would not be tainted. For example, the result of <code>uc()</code> on an empty string or one containing only above-Latin1 code points is now tainted, and wasn't before. This leads to more consistent tainting results. Regular expression patterns taint their non-binary results (like <code>$&</code>, <code>$2</code>) if and only if the pattern contains elements whose matching depends on the current (potentially tainted) locale. Like the case changing functions, the actual contents of the string being matched now do not matter, whereas formerly it did. For example, if the pattern contains a <code>\w</code>, the results will be tainted even if the match did not have to use that portion of the pattern to succeed or fail, because what a <code>\w</code> matches depends on locale. However, for example, a <code>.</code> in a pattern will not enable tainting, because the dot matches any single character, and what the current locale is doesn't change in any way what matches and what doesn't.</p>
<h2 id="p-P-matching-has-changed-for-non-Unicode-code-points"><code>\p{}</code>, <code>\P{}</code> matching has changed for non-Unicode code points.</h2>
<p><code>\p{}</code> and <code>\P{}</code> are defined by Unicode only on Unicode-defined code points (<code>U+0000</code> through <code>U+10FFFF</code>). Their behavior on matching these legal Unicode code points is unchanged, but there are changes for code points <code>0x110000</code> and above. Previously, Perl treated the result of matching <code>\p{}</code> and <code>\P{}</code> against these as <code>undef</code>, which translates into "false". For <code>\P{}</code>, this was then complemented into "true". A warning was supposed to be raised when this happened. However, various optimizations could prevent the warning, and the results were often counter-intuitive, with both a match and its seeming complement being false. Now all non-Unicode code points are treated as typical unassigned Unicode code points. This generally is more Do-What-I-Mean. A warning is raised only if the results are arguably different from a strict Unicode approach, and from what Perl used to do. Code that needs to be strictly Unicode compliant can make this warning fatal, and then Perl always raises the warning.</p>
<p>Details are in <a href="/cperl/perlunicode.html#Beyond-Unicode-code-points">"Beyond Unicode code points" in perlunicode</a>.</p>
<h2 id="p-All-has-been-expanded-to-match-all-possible-code-points"><code>\p{All}</code> has been expanded to match all possible code points</h2>
<p>The Perl-defined regular expression pattern element <code>\p{All}</code>, unused on CPAN, used to match just the Unicode code points; now it matches all possible code points; that is, it is equivalent to <code>qr/./s</code>. Thus <code>\p{All}</code> is no longer synonymous with <code>\p{Any}</code>, which continues to match just the Unicode code points, as Unicode says it should.</p>
<h2 id="Data::Dumpers-output-may-change">Data::Dumper's output may change</h2>
<p>Depending on the data structures dumped and the settings set for Data::Dumper, the dumped output may have changed from previous versions.</p>
<p>If you have tests that depend on the exact output of Data::Dumper, they may fail.</p>
<p>To avoid this problem in your code, test against the data structure from evaluating the dumped structure, instead of the dump itself.</p>
<h2 id="Locale-decimal-point-character-no-longer-leaks-outside-of-use-locale-scope">Locale decimal point character no longer leaks outside of <span style="white-space: nowrap;"><code>use locale</code></span> scope</h2>
<p>This is actually a bug fix, but some code has come to rely on the bug being present, so this change is listed here. The current locale that the program is running under is not supposed to be visible to Perl code except within the scope of a <span style="white-space: nowrap;"><code>use locale</code></span>. However, until now under certain circumstances, the character used for a decimal point (often a comma) leaked outside the scope. If your code is affected by this change, simply add a <span style="white-space: nowrap;"><code>use locale</code></span>.</p>
<h2 id="Assignments-of-Windows-sockets-error-codes-to-now-prefer-errno.h-values-over-WSAGetLastError-values">Assignments of Windows sockets error codes to $! now prefer <i>errno.h</i> values over WSAGetLastError() values</h2>
<p>In previous versions of Perl, Windows sockets error codes as returned by WSAGetLastError() were assigned to $!, and some constants such as ECONNABORTED, not in <i>errno.h</i> in VC++ (or the various Windows ports of gcc) were defined to corresponding WSAE* values to allow $! to be tested against the E* constants exported by <a href="/cperl/lib/Errno.html">Errno</a> and <a href="/cperl/lib/POSIX.html">POSIX</a>.</p>
<p>This worked well until VC++ 2010 and later, which introduced new E* constants with values > 100 into <i>errno.h</i>, including some being (re)defined by perl to WSAE* values. That caused problems when linking XS code against other libraries which used the original definitions of <i>errno.h</i> constants.</p>
<p>To avoid this incompatibility, perl now maps WSAE* error codes to E* values where possible, and assigns those values to $!. The E* constants exported by <a href="/cperl/lib/Errno.html">Errno</a> and <a href="/cperl/lib/POSIX.html">POSIX</a> are updated to match so that testing $! against them, wherever previously possible, will continue to work as expected, and all E* constants found in <i>errno.h</i> are now exported from those modules with their original <i>errno.h</i> values.</p>
<p>In order to avoid breakage in existing Perl code which assigns WSAE* values to $!, perl now intercepts the assignment and performs the same mapping to E* values as it uses internally when assigning to $! itself.</p>
<p>However, one backwards-incompatibility remains: existing Perl code which compares $! against the numeric values of the WSAE* error codes that were previously assigned to $! will now be broken in those cases where a corresponding E* value has been assigned instead. This is only an issue for those E* values < 100, which were always exported from <a href="/cperl/lib/Errno.html">Errno</a> and <a href="/cperl/lib/POSIX.html">POSIX</a> with their original <i>errno.h</i> values, and therefore could not be used for WSAE* error code tests (e.g. WSAEINVAL is 10022, but the corresponding EINVAL is 22). (E* values > 100, if present, were redefined to WSAE* values anyway, so compatibility can be achieved by using the E* constants, which will work both before and after this change, albeit using different numeric values under the hood.)</p>
<h2 id="Functions-PerlIO_vsprintf-and-PerlIO_sprintf-have-been-removed">Functions <code>PerlIO_vsprintf</code> and <code>PerlIO_sprintf</code> have been removed</h2>
<p>These two functions, undocumented, unused in CPAN, and problematic, have been removed.</p>
<h1 id="Deprecations">Deprecations</h1>
<h2 id="The-C-character-class">The <code>/\C/</code> character class</h2>
<p>The <code>/\C/</code> regular expression character class is deprecated. From perl 5.22 onwards it will generate a warning, and from perl 5.24 onwards it will be a regular expression compiler 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="Literal-control-characters-in-variable-names">Literal control characters in variable names</h2>
<p>This deprecation affects things like $\cT, where \cT is a literal control (such as a <code>NAK</code> or <code>NEGATIVE ACKNOWLEDGE</code> character) in the source code. Surprisingly, it appears that originally this was intended as the canonical way of accessing variables like $^T, with the caret form only being added as an alternative.</p>
<p>The literal control form is being deprecated for two main reasons. It has what are likely unfixable bugs, such as $\cI not working as an alias for $^I, and their usage not being portable to non-ASCII platforms: While $^T will work everywhere, \cT is whitespace in EBCDIC. [perl #119123]</p>
<h2 id="References-to-non-integers-and-non-positive-integers-in">References to non-integers and non-positive integers in <code>$/</code></h2>
<p>Setting <code>$/</code> to a reference to zero or a reference to a negative integer is now deprecated, and will behave <b>exactly</b> as though it was set to <code>undef</code>. If you want slurp behavior set <code>$/</code> to <code>undef</code> explicitly.</p>
<p>Setting <code>$/</code> to a reference to a non integer is now forbidden and will throw an error. Perl has never documented what would happen in this context and while it used to behave the same as setting <code>$/</code> to the address of the references in future it may behave differently, so we have forbidden this usage.</p>
<h2 id="Character-matching-routines-in-POSIX">Character matching routines in POSIX</h2>
<p>Use of any of these functions in the <code>POSIX</code> module is now deprecated: <code>isalnum</code>, <code>isalpha</code>, <code>iscntrl</code>, <code>isdigit</code>, <code>isgraph</code>, <code>islower</code>, <code>isprint</code>, <code>ispunct</code>, <code>isspace</code>, <code>isupper</code>, and <code>isxdigit</code>. The functions are buggy and don't work on UTF-8 encoded strings. See their entries in <a href="/cperl/lib/POSIX.html">POSIX</a> for more information.</p>
<p>A warning is raised on the first call to any of them from each place in the code that they are called. (Hence a repeated statement in a loop will raise just the one warning.)</p>
<h2 id="Interpreter-based-threads-are-now-discouraged">Interpreter-based threads are now <i>discouraged</i></h2>
<p>The "interpreter-based threads" provided by Perl are not the fast, lightweight system for multitasking that one might expect or hope for. Threads are implemented in a way that make them easy to misuse. Few people know how to use them correctly or will be able to provide help.</p>
<p>The use of interpreter-based threads in perl is officially <a href="/cperl/perlpolicy.html#discouraged">discouraged</a>.</p>
<h2 id="Module-removals">Module removals</h2>
<p>The following modules will be removed from the core distribution in a future release, and will at that time need to be installed from CPAN. Distributions on CPAN which require these modules will need to list them as prerequisites.</p>
<p>The core versions of these modules will now issue <code>"deprecated"</code>-category warnings to alert you to this fact. To silence these deprecation warnings, install the modules in question from CPAN.</p>
<p>Note that the planned removal of these modules from core does not reflect a judgement about the quality of the code and should not be taken as a suggestion that their use be halted. Their disinclusion from core primarily hinges on their necessity to bootstrapping a fully functional, CPAN-capable Perl installation, not on concerns over their design.</p>
<dl>
<dt id="CGI-and-its-associated-CGI::-packages"><a>CGI</a> and its associated CGI:: packages</dt>
<dd>
</dd>
<dt id="inc::latest"><a>inc::latest</a></dt>
<dd>
</dd>
<dt id="Package::Constants"><a>Package::Constants</a></dt>
<dd>
</dd>
<dt id="Module::Build-and-its-associated-Module::Build::-packages"><a>Module::Build</a> and its associated Module::Build:: packages</dt>
<dd>
</dd>
</dl>
<h2 id="Utility-removals">Utility removals</h2>
<p>The following utilities will be removed from the core distribution in a future release, and will at that time need to be installed from CPAN.</p>
<dl>
<dt id="find2perl"><a>find2perl</a></dt>
<dd>
</dd>
<dt id="s2p"><a>s2p</a></dt>
<dd>
</dd>
<dt id="a2p"><a>a2p</a></dt>
<dd>
</dd>
</dl>
<h1 id="Performance-Enhancements">Performance Enhancements</h1>
<ul>
<li><p>Perl has a new copy-on-write mechanism that avoids the need to copy the internal string buffer when assigning from one scalar to another. This makes copying large strings appear much faster. Modifying one of the two (or more) strings after an assignment will force a copy internally. This makes it unnecessary to pass strings by reference for efficiency.</p>
<p>This feature was already available in 5.18.0, but wasn't enabled by default. It is the default now, and so you no longer need build perl with the <i>Configure</i> argument:</p>
<pre><code> -Accflags=-DPERL_NEW_COPY_ON_WRITE</code></pre>
<p>It can be disabled (for now) in a perl build with:</p>
<pre><code> -Accflags=-DPERL_NO_COW</code></pre>
<p>On some operating systems Perl can be compiled in such a way that any attempt to modify string buffers shared by multiple SVs will crash. This way XS authors can test that their modules handle copy-on-write scalars correctly. See <a href="/cperl/perlguts.html#Copy-on-Write">"Copy on Write" in perlguts</a> for detail.</p>
</li>
<li><p>Perl has an optimizer for regular expression patterns. It analyzes the pattern to find things such as the minimum length a string has to be to match, etc. It now better handles code points that are above the Latin1 range.</p>
</li>
<li><p>Executing a regex that contains the <code>^</code> anchor (or its variant under the <code>/m</code> flag) has been made much faster in several situations.</p>
</li>
<li><p>Precomputed hash values are now used in more places during method lookup.</p>
</li>
<li><p>Constant hash key lookups (<code>$hash{key}</code> as opposed to <code>$hash{$key}</code>) have long had the internal hash value computed at compile time, to speed up lookup. This optimisation has only now been applied to hash slices as well.</p>
</li>
<li><p>Combined <code>and</code> and <code>or</code> operators in void context, like those generated for <code>unless ($a && $b)</code> and <code>if ($a || b)</code> now short circuit directly to the end of the statement. [perl #120128]</p>
</li>
<li><p>In certain situations, when <code>return</code> is the last statement in a subroutine's main scope, it will be optimized out. This means code like:</p>
<pre><code> sub baz { return $cat; }</code></pre>
<p>will now behave like:</p>
<pre><code> sub baz { $cat; }</code></pre>
<p>which is notably faster.</p>
<p>[perl #120765]</p>
</li>
<li><p>Code like:</p>
<pre><code> my $x; # or @x, %x
my $y;</code></pre>
<p>is now optimized to:</p>
<pre><code> my ($x, $y);</code></pre>
<p>In combination with the <a href="/cperl/perl5180delta.html#Internal-Changes">padrange optimization introduced in v5.18.0</a>, this means longer uninitialized my variable statements are also optimized, so:</p>
<pre><code> my $x; my @y; my %z;</code></pre>
<p>becomes:</p>
<pre><code> my ($x, @y, %z);</code></pre>
<p>[perl #121077]</p>
</li>
<li><p>The creation of certain sorts of lists, including array and hash slices, is now faster.</p>
</li>
<li><p>The optimisation for arrays indexed with a small constant integer is now applied for integers in the range -128..127, rather than 0..255. This should speed up Perl code using expressions like <code>$x[-1]</code>, at the expense of (presumably much rarer) code using expressions like <code>$x[200]</code>.</p>
</li>
<li><p>The first iteration over a large hash (using <code>keys</code> or <code>each</code>) is now faster. This is achieved by preallocating the hash's internal iterator state, rather than lazily creating it when the hash is first iterated. (For small hashes, the iterator is still created only when first needed. The assumption is that small hashes are more likely to be used as objects, and therefore never allocated. For large hashes, that's less likely to be true, and the cost of allocating the iterator is swamped by the cost of allocating space for the hash itself.)</p>
</li>
<li><p>When doing a global regex match on a string that came from the <code>readline</code> or <code><></code> operator, the data is no longer copied unnecessarily. [perl #121259]</p>
</li>
<li><p>Dereferencing (as in <code>$obj->[0]</code> or <code>$obj->{k}</code>) is now faster when <code>$obj</code> is an instance of a class that has overloaded methods, but doesn't overload any of the dereferencing methods <code>@{}</code>, <code>%{}</code>, and so on.</p>
</li>
<li><p>Perl's optimiser no longer skips optimising code that follows certain <code>eval {}</code> expressions (including those with an apparent infinite loop).</p>
</li>
<li><p>The implementation now does a better job of avoiding meaningless work at runtime. Internal effect-free "null" operations (created as a side-effect of parsing Perl programs) are normally deleted during compilation. That deletion is now applied in some situations that weren't previously handled.</p>
</li>
<li><p>Perl now does less disk I/O when dealing with Unicode properties that cover up to three ranges of consecutive code points.</p>
</li>
</ul>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="New-Modules-and-Pragmata">New Modules and Pragmata</h2>
<ul>
<li><p><a href="/cperl/lib/experimental.html">experimental</a> 0.007 has been added to the Perl core.</p>
</li>
<li><p><a href="/cperl/lib/IO/Socket/IP.html">IO::Socket::IP</a> 0.29 has been added to the Perl core.</p>
</li>
</ul>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<ul>
<li><p><a href="/cperl/lib/Archive/Tar.html">Archive::Tar</a> has been upgraded from version 1.90 to 1.96.</p>
</li>
<li><p><a>arybase</a> has been upgraded from version 0.06 to 0.07.</p>
</li>
<li><p><a href="/cperl/lib/Attribute/Handlers.html">Attribute::Handlers</a> has been upgraded from version 0.94 to 0.96.</p>
</li>
<li><p><a href="/cperl/lib/attributes.html">attributes</a> has been upgraded from version 0.21 to 0.22.</p>
</li>
<li><p><a href="/cperl/lib/autodie.html">autodie</a> has been upgraded from version 2.13 to 2.23.</p>
</li>
<li><p><a href="/cperl/lib/AutoLoader.html">AutoLoader</a> has been upgraded from version 5.73 to 5.74.</p>
</li>
<li><p><a href="/cperl/lib/autouse.html">autouse</a> has been upgraded from version 1.07 to 1.08.</p>
</li>
<li><p><a href="/cperl/lib/B.html">B</a> has been upgraded from version 1.42 to 1.48.</p>
</li>
<li><p><a href="/cperl/lib/B/Concise.html">B::Concise</a> has been upgraded from version 0.95 to 0.992.</p>
</li>
<li><p><a>B::Debug</a> has been upgraded from version 1.18 to 1.19.</p>
</li>
<li><p><a href="/cperl/lib/B/Deparse.html">B::Deparse</a> has been upgraded from version 1.20 to 1.26.</p>
</li>
<li><p><a href="/cperl/lib/base.html">base</a> has been upgraded from version 2.18 to 2.22.</p>
</li>
<li><p><a href="/cperl/lib/Benchmark.html">Benchmark</a> has been upgraded from version 1.15 to 1.18.</p>
</li>
<li><p><a href="/cperl/lib/bignum.html">bignum</a> has been upgraded from version 0.33 to 0.37.</p>
</li>
<li><p><a href="/cperl/lib/Carp.html">Carp</a> has been upgraded from version 1.29 to 1.3301.</p>
</li>
<li><p><a>CGI</a> has been upgraded from version 3.63 to 3.65. NOTE: <a>CGI</a> is deprecated and may be removed from a future version of Perl.</p>
</li>
<li><p><a href="/cperl/lib/charnames.html">charnames</a> has been upgraded from version 1.36 to 1.40.</p>
</li>
<li><p><a href="/cperl/lib/Class/Struct.html">Class::Struct</a> has been upgraded from version 0.64 to 0.65.</p>
</li>
<li><p><a href="/cperl/lib/Compress/Raw/Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.060 to 2.064.</p>
</li>
<li><p><a href="/cperl/lib/Compress/Raw/Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.060 to 2.065.</p>
</li>
<li><p><a href="/cperl/lib/Config/Perl/V.html">Config::Perl::V</a> has been upgraded from version 0.17 to 0.20.</p>
</li>
<li><p><a href="/cperl/lib/constant.html">constant</a> has been upgraded from version 1.27 to 1.31.</p>
</li>
<li><p><a href="/cperl/lib/CPAN.html">CPAN</a> has been upgraded from version 2.00 to 2.05.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta.html">CPAN::Meta</a> has been upgraded from version 2.120921 to 2.140640.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta/Requirements.html">CPAN::Meta::Requirements</a> has been upgraded from version 2.122 to 2.125.</p>
</li>
<li><p><a href="/cperl/lib/CPAN/Meta/YAML.html">CPAN::Meta::YAML</a> has been upgraded from version 0.008 to 0.012.</p>
</li>
<li><p><a href="/cperl/lib/Data/Dumper.html">Data::Dumper</a> has been upgraded from version 2.145 to 2.151.</p>
</li>
<li><p><a href="/cperl/lib/DB.html">DB</a> has been upgraded from version 1.04 to 1.07.</p>
</li>
<li><p><a href="/cperl/lib/DB_File.html">DB_File</a> has been upgraded from version 1.827 to 1.831.</p>
</li>
<li><p><a href="/cperl/lib/DBM_Filter.html">DBM_Filter</a> has been upgraded from version 0.05 to 0.06.</p>
</li>
<li><p><a href="/cperl/lib/deprecate.html">deprecate</a> has been upgraded from version 0.02 to 0.03.</p>
</li>
<li><p><a href="/cperl/lib/Devel/Peek.html">Devel::Peek</a> has been upgraded from version 1.11 to 1.16.</p>
</li>
<li><p><a href="/cperl/lib/Devel/PPPort.html">Devel::PPPort</a> has been upgraded from version 3.20 to 3.21.</p>
</li>
<li><p><a href="/cperl/lib/diagnostics.html">diagnostics</a> has been upgraded from version 1.31 to 1.34.</p>
</li>
<li><p><a href="/cperl/lib/Digest/MD5.html">Digest::MD5</a> has been upgraded from version 2.52 to 2.53.</p>
</li>
<li><p><a href="/cperl/lib/Digest/SHA.html">Digest::SHA</a> has been upgraded from version 5.84 to 5.88.</p>
</li>
<li><p><a href="/cperl/lib/DynaLoader.html">DynaLoader</a> has been upgraded from version 1.18 to 1.25.</p>
</li>
<li><p><a href="/cperl/lib/Encode.html">Encode</a> has been upgraded from version 2.49 to 2.60.</p>
</li>
<li><p><a href="/cperl/lib/encoding.html">encoding</a> has been upgraded from version 2.6_01 to 2.12.</p>
</li>
<li><p><a href="/cperl/lib/English.html">English</a> has been upgraded from version 1.06 to 1.09.</p>
<p><code>$OLD_PERL_VERSION</code> was added as an alias of <code>$]</code>.</p>
</li>
<li><p><a href="/cperl/lib/Errno.html">Errno</a> has been upgraded from version 1.18 to 1.20_03.</p>
</li>
<li><p><a href="/cperl/lib/Exporter.html">Exporter</a> has been upgraded from version 5.68 to 5.70.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.280210 to 0.280216.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Command.html">ExtUtils::Command</a> has been upgraded from version 1.17 to 1.18.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Embed.html">ExtUtils::Embed</a> has been upgraded from version 1.30 to 1.32.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Install.html">ExtUtils::Install</a> has been upgraded from version 1.59 to 1.67.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 6.66 to 6.98.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Miniperl.html">ExtUtils::Miniperl</a> has been upgraded from version to 1.01.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 3.18 to 3.24.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/Typemaps.html">ExtUtils::Typemaps</a> has been upgraded from version 3.19 to 3.24.</p>
</li>
<li><p><a href="/cperl/lib/ExtUtils/XSSymSet.html">ExtUtils::XSSymSet</a> has been upgraded from version 1.2 to 1.3.</p>
</li>
<li><p><a href="/cperl/lib/feature.html">feature</a> has been upgraded from version 1.32 to 1.36.</p>
</li>
<li><p><a href="/cperl/lib/fields.html">fields</a> has been upgraded from version 2.16 to 2.17.</p>
</li>
<li><p><a href="/cperl/lib/File/Basename.html">File::Basename</a> has been upgraded from version 2.84 to 2.85.</p>
</li>
<li><p><a href="/cperl/lib/File/Copy.html">File::Copy</a> has been upgraded from version 2.26 to 2.29.</p>
</li>
<li><p><a href="/cperl/lib/File/DosGlob.html">File::DosGlob</a> has been upgraded from version 1.10 to 1.12.</p>
</li>
<li><p><a href="/cperl/lib/File/Fetch.html">File::Fetch</a> has been upgraded from version 0.38 to 0.48.</p>
</li>
<li><p><a href="/cperl/lib/File/Find.html">File::Find</a> has been upgraded from version 1.23 to 1.27.</p>
</li>
<li><p><a href="/cperl/lib/File/Glob.html">File::Glob</a> has been upgraded from version 1.20 to 1.23.</p>
</li>
<li><p><a href="/cperl/lib/File/Spec.html">File::Spec</a> has been upgraded from version 3.40 to 3.47.</p>
</li>
<li><p><a href="/cperl/lib/File/Temp.html">File::Temp</a> has been upgraded from version 0.23 to 0.2304.</p>
</li>
<li><p><a href="/cperl/lib/FileCache.html">FileCache</a> has been upgraded from version 1.08 to 1.09.</p>
</li>
<li><p><a href="/cperl/lib/Filter/Simple.html">Filter::Simple</a> has been upgraded from version 0.89 to 0.91.</p>
</li>
<li><p><a href="/cperl/lib/Filter/Util/Call.html">Filter::Util::Call</a> has been upgraded from version 1.45 to 1.49.</p>
</li>
<li><p><a href="/cperl/lib/Getopt/Long.html">Getopt::Long</a> has been upgraded from version 2.39 to 2.42.</p>
</li>
<li><p><a href="/cperl/lib/Getopt/Std.html">Getopt::Std</a> has been upgraded from version 1.07 to 1.10.</p>
</li>
<li><p><a href="/cperl/lib/Hash/Util/FieldHash.html">Hash::Util::FieldHash</a> has been upgraded from version 1.10 to 1.15.</p>
</li>
<li><p><a href="/cperl/lib/HTTP/Tiny.html">HTTP::Tiny</a> has been upgraded from version 0.025 to 0.043.</p>
</li>
<li><p><a href="/cperl/lib/I18N/Langinfo.html">I18N::Langinfo</a> has been upgraded from version 0.10 to 0.11.</p>
</li>
<li><p><a href="/cperl/lib/I18N/LangTags.html">I18N::LangTags</a> has been upgraded from version 0.39 to 0.40.</p>
</li>
<li><p><a href="/cperl/lib/if.html">if</a> has been upgraded from version 0.0602 to 0.0603.</p>
</li>
<li><p><a>inc::latest</a> has been upgraded from version 0.4003 to 0.4205. NOTE: <a>inc::latest</a> is deprecated and may be removed from a future version of Perl.</p>
</li>
<li><p><a href="/cperl/lib/integer.html">integer</a> has been upgraded from version 1.00 to 1.01.</p>
</li>
<li><p><a href="/cperl/lib/IO.html">IO</a> has been upgraded from version 1.28 to 1.31.</p>
</li>
<li><p><a href="/cperl/lib/IO/Compress/Gzip.html">IO::Compress::Gzip</a> and friends have been upgraded from version 2.060 to 2.064.</p>
</li>
<li><p><a href="/cperl/lib/IPC/Cmd.html">IPC::Cmd</a> has been upgraded from version 0.80 to 0.92.</p>
</li>
<li><p><a href="/cperl/lib/IPC/Open3.html">IPC::Open3</a> has been upgraded from version 1.13 to 1.16.</p>
</li>
<li><p><a href="/cperl/lib/IPC/SysV.html">IPC::SysV</a> has been upgraded from version 2.03 to 2.04.</p>
</li>
<li><p><a href="/cperl/lib/JSON/PP.html">JSON::PP</a> has been upgraded from version 2.27202 to 2.27203.</p>
</li>
<li><p><a href="/cperl/lib/List/Util.html">List::Util</a> has been upgraded from version 1.27 to 1.38.</p>
</li>
<li><p><a href="/cperl/lib/locale.html">locale</a> has been upgraded from version 1.02 to 1.03.</p>
</li>
<li><p><a>Locale::Codes</a> has been upgraded from version 3.25 to 3.30.</p>
</li>
<li><p><a href="/cperl/lib/Locale/Maketext.html">Locale::Maketext</a> has been upgraded from version 1.23 to 1.25.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigInt.html">Math::BigInt</a> has been upgraded from version 1.9991 to 1.9993.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigInt/FastCalc.html">Math::BigInt::FastCalc</a> has been upgraded from version 0.30 to 0.31.</p>
</li>
<li><p><a href="/cperl/lib/Math/BigRat.html">Math::BigRat</a> has been upgraded from version 0.2604 to 0.2606.</p>
</li>
<li><p><a href="/cperl/lib/MIME/Base64.html">MIME::Base64</a> has been upgraded from version 3.13 to 3.14.</p>
</li>
<li><p><a>Module::Build</a> has been upgraded from version 0.4003 to 0.4205. NOTE: <a>Module::Build</a> is deprecated and may be removed from a future version of Perl.</p>
</li>
<li><p><a href="/cperl/lib/Module/CoreList.html">Module::CoreList</a> has been upgraded from version 2.89 to 3.10.</p>
</li>
<li><p><a href="/cperl/lib/Module/Load.html">Module::Load</a> has been upgraded from version 0.24 to 0.32.</p>
</li>
<li><p><a href="/cperl/lib/Module/Load/Conditional.html">Module::Load::Conditional</a> has been upgraded from version 0.54 to 0.62.</p>
</li>
<li><p><a href="/cperl/lib/Module/Metadata.html">Module::Metadata</a> has been upgraded from version 1.000011 to 1.000019.</p>
</li>
<li><p><a href="/cperl/lib/mro.html">mro</a> has been upgraded from version 1.11 to 1.16.</p>
</li>
<li><p><a href="/cperl/lib/Net/Ping.html">Net::Ping</a> has been upgraded from version 2.41 to 2.43.</p>
</li>
<li><p><a href="/cperl/lib/Opcode.html">Opcode</a> has been upgraded from version 1.25 to 1.27.</p>
</li>
<li><p><a>Package::Constants</a> has been upgraded from version 0.02 to 0.04. NOTE: <a>Package::Constants</a> is deprecated and may be removed from a future version of Perl.</p>
</li>
<li><p><a href="/cperl/lib/Params/Check.html">Params::Check</a> has been upgraded from version 0.36 to 0.38.</p>
</li>
<li><p><a href="/cperl/lib/parent.html">parent</a> has been upgraded from version 0.225 to 0.228.</p>
</li>
<li><p><a href="/cperl/lib/Parse/CPAN/Meta.html">Parse::CPAN::Meta</a> has been upgraded from version 1.4404 to 1.4414.</p>
</li>
<li><p><a href="/cperl/lib/Perl/OSType.html">Perl::OSType</a> has been upgraded from version 1.003 to 1.007.</p>
</li>
<li><p><a href="/cperl/lib/perlfaq.html">perlfaq</a> has been upgraded from version 5.0150042 to 5.0150044.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO.html">PerlIO</a> has been upgraded from version 1.07 to 1.09.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/encoding.html">PerlIO::encoding</a> has been upgraded from version 0.16 to 0.18.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/scalar.html">PerlIO::scalar</a> has been upgraded from version 0.16 to 0.18.</p>
</li>
<li><p><a href="/cperl/lib/PerlIO/via.html">PerlIO::via</a> has been upgraded from version 0.12 to 0.14.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Escapes.html">Pod::Escapes</a> has been upgraded from version 1.04 to 1.06.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Functions.html">Pod::Functions</a> has been upgraded from version 1.06 to 1.08.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Html.html">Pod::Html</a> has been upgraded from version 1.18 to 1.21.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Parser.html">Pod::Parser</a> has been upgraded from version 1.60 to 1.62.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Perldoc.html">Pod::Perldoc</a> has been upgraded from version 3.19 to 3.23.</p>
</li>
<li><p><a href="/cperl/lib/Pod/Usage.html">Pod::Usage</a> has been upgraded from version 1.61 to 1.63.</p>
</li>
<li><p><a href="/cperl/lib/POSIX.html">POSIX</a> has been upgraded from version 1.32 to 1.38_03.</p>
</li>
<li><p><a href="/cperl/lib/re.html">re</a> has been upgraded from version 0.23 to 0.26.</p>
</li>
<li><p><a href="/cperl/lib/Safe.html">Safe</a> has been upgraded from version 2.35 to 2.37.</p>
</li>
<li><p><a href="/cperl/lib/Scalar/Util.html">Scalar::Util</a> has been upgraded from version 1.27 to 1.38.</p>
</li>
<li><p><a href="/cperl/lib/SDBM_File.html">SDBM_File</a> has been upgraded from version 1.09 to 1.11.</p>
</li>
<li><p><a href="/cperl/lib/Socket.html">Socket</a> has been upgraded from version 2.009 to 2.013.</p>
</li>
<li><p><a href="/cperl/lib/Storable.html">Storable</a> has been upgraded from version 2.41 to 2.49.</p>
</li>
<li><p><a href="/cperl/lib/strict.html">strict</a> has been upgraded from version 1.07 to 1.08.</p>
</li>
<li><p><a href="/cperl/lib/subs.html">subs</a> has been upgraded from version 1.01 to 1.02.</p>
</li>
<li><p><a href="/cperl/lib/Sys/Hostname.html">Sys::Hostname</a> has been upgraded from version 1.17 to 1.18.</p>
</li>
<li><p><a href="/cperl/lib/Sys/Syslog.html">Sys::Syslog</a> has been upgraded from version 0.32 to 0.33.</p>
</li>
<li><p><a href="/cperl/lib/Term/Cap.html">Term::Cap</a> has been upgraded from version 1.13 to 1.15.</p>
</li>
<li><p><a href="/cperl/lib/Term/ReadLine.html">Term::ReadLine</a> has been upgraded from version 1.12 to 1.14.</p>
</li>
<li><p><a href="/cperl/lib/Test/Harness.html">Test::Harness</a> has been upgraded from version 3.26 to 3.30.</p>
</li>
<li><p><a href="/cperl/lib/Test/Simple.html">Test::Simple</a> has been upgraded from version 0.98 to 1.001002.</p>
</li>
<li><p><a href="/cperl/lib/Text/ParseWords.html">Text::ParseWords</a> has been upgraded from version 3.28 to 3.29.</p>
</li>
<li><p><a href="/cperl/lib/Text/Tabs.html">Text::Tabs</a> has been upgraded from version 2012.0818 to 2013.0523.</p>
</li>
<li><p><a href="/cperl/lib/Text/Wrap.html">Text::Wrap</a> has been upgraded from version 2012.0818 to 2013.0523.</p>
</li>
<li><p><a href="/cperl/lib/Thread.html">Thread</a> has been upgraded from version 3.02 to 3.04.</p>
</li>
<li><p><a href="/cperl/lib/Thread/Queue.html">Thread::Queue</a> has been upgraded from version 3.02 to 3.05.</p>
</li>
<li><p><a href="/cperl/lib/threads.html">threads</a> has been upgraded from version 1.86 to 1.93.</p>
</li>
<li><p><a href="/cperl/lib/threads/shared.html">threads::shared</a> has been upgraded from version 1.43 to 1.46.</p>
</li>
<li><p><a href="/cperl/lib/Tie/Array.html">Tie::Array</a> has been upgraded from version 1.05 to 1.06.</p>
</li>
<li><p><a href="/cperl/lib/Tie/File.html">Tie::File</a> has been upgraded from version 0.99 to 1.00.</p>
</li>
<li><p><a href="/cperl/lib/Tie/Hash.html">Tie::Hash</a> has been upgraded from version 1.04 to 1.05.</p>
</li>
<li><p><a href="/cperl/lib/Tie/Scalar.html">Tie::Scalar</a> has been upgraded from version 1.02 to 1.03.</p>
</li>
<li><p><a href="/cperl/lib/Tie/StdHandle.html">Tie::StdHandle</a> has been upgraded from version 4.3 to 4.4.</p>
</li>
<li><p><a href="/cperl/lib/Time/HiRes.html">Time::HiRes</a> has been upgraded from version 1.9725 to 1.9726.</p>
</li>
<li><p><a href="/cperl/lib/Time/Piece.html">Time::Piece</a> has been upgraded from version 1.20_01 to 1.27.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/Collate.html">Unicode::Collate</a> has been upgraded from version 0.97 to 1.04.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.16 to 1.17.</p>
</li>
<li><p><a href="/cperl/lib/Unicode/UCD.html">Unicode::UCD</a> has been upgraded from version 0.51 to 0.57.</p>
</li>
<li><p><a href="/cperl/lib/utf8.html">utf8</a> has been upgraded from version 1.10 to 1.13.</p>
</li>
<li><p><a href="/cperl/lib/version.html">version</a> has been upgraded from version 0.9902 to 0.9908.</p>
</li>
<li><p><a href="/cperl/lib/vmsish.html">vmsish</a> has been upgraded from version 1.03 to 1.04.</p>
</li>
<li><p><a href="/cperl/lib/warnings.html">warnings</a> has been upgraded from version 1.18 to 1.23.</p>
</li>
<li><p><a href="/cperl/lib/File/Spec/Win32.html">Win32</a> has been upgraded from version 0.47 to 0.49.</p>
</li>
<li><p><a href="/cperl/lib/XS/Typemap.html">XS::Typemap</a> has been upgraded from version 0.10 to 0.13.</p>
</li>
<li><p><a href="/cperl/lib/XSLoader.html">XSLoader</a> has been upgraded from version 0.16 to 0.17.</p>
</li>
</ul>
<h1 id="Documentation">Documentation</h1>
<h2 id="New-Documentation">New Documentation</h2>
<h3 id="perlrepository"><a href="/cperl/perlrepository.html">perlrepository</a></h3>
<p>This document was removed (actually, renamed <a href="/cperl/perlgit.html">perlgit</a> and given a major overhaul) in Perl v5.14, causing Perl documentation websites to show the now out of date version in Perl v5.12 as the latest version. It has now been restored in stub form, directing readers to current information.</p>
<h2 id="Changes-to-Existing-Documentation">Changes to Existing Documentation</h2>
<h3 id="perldata"><a href="/cperl/perldata.html">perldata</a></h3>
<ul>
<li><p>New sections have been added to document the new index/value array slice and key/value hash slice syntax.</p>
</li>
</ul>
<h3 id="perldebguts"><a href="/cperl/perldebguts.html">perldebguts</a></h3>
<ul>
<li><p>The <code>DB::goto</code> and <code>DB::lsub</code> debugger subroutines are now documented. [perl #77680]</p>
</li>
</ul>
<h3 id="perlexperiment"><a href="/cperl/perlexperiment.html">perlexperiment</a></h3>
<ul>
<li><p><code>\s</code> matching <code>\cK</code> is marked experimental.</p>
</li>
<li><p>ithreads were accepted in v5.8.0 (but are discouraged as of v5.20.0).</p>
</li>
<li><p>Long doubles are not considered experimental.</p>