summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/pod/perl5320delta.pod
blob: 0eb5b726874daf958146ca9d36ad25ae9ba01de9 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
=pod

=encoding utf8

=head1 NAME

perl5320delta - what is new for perl v5.32.0

=head1 DESCRIPTION

This document describes differences between the 5.30.0 release and the 5.32.0
release.

If you are upgrading from an earlier release such as 5.28.0, first read
L<perl5300delta>, which describes differences between 5.28.0 and 5.30.0.

=head1 Core Enhancements

=head2 The isa Operator

A new experimental infix operator called C<isa> tests whether a given object
is an instance of a given class or a class derived from it:

    if( $obj isa Package::Name ) { ... }

For more detail see L<perlop/Class Instance Operator>.

=head2 Unicode 13.0 is supported

See L<https://www.unicode.org/versions/Unicode13.0.0/> for details.

=head2 Chained comparisons capability

Some comparison operators, as their associativity, I<chain> with some
operators of the same precedence (but never with operators of different
precedence).

    if ( $x < $y <= $z ) {...}

behaves exactly like:

    if ( $x < $y && $y <= $z ) {...}

(assuming that C<"$y"> is as simple a scalar as it looks.)

You can read more about this in L<perlop> under
L<perlop/Operator Precedence and Associativity>.

=head2 New Unicode properties C<Identifier_Status> and C<Identifier_Type> supported

Unicode has revised its regular expression requirements:
L<https://www.unicode.org/reports/tr18/tr18-21.html>.
As part of that they are wanting more properties to be exposed, ones
that aren't part of the strict UCD (Unicode character database). These
two are used for examining inputs for security purposes. Details on
their usage is at L<https://www.unicode.org/reports/tr39/>.

=head2 It is now possible to write C<qr/\p{Name=...}/>, or
C<qr!\p{na=/(SMILING|GRINNING) FACE/}!>

The Unicode Name property is now accessible in regular expression
patterns, as an alternative to C<\N{...}>.
A comparison of the two methods is given in
L<perlunicode/Comparison of \N{...} and \p{name=...}>.

The second example above shows that wildcard subpatterns are also usable
in this property. See L<perlunicode/Wildcards in Property Values>.

=head2 Improvement of C<POSIX::mblen()>, C<mbtowc>, and C<wctomb>

The C<POSIX::mblen()>, C<mbtowc>, and C<wctomb> functions now
work on shift state locales and are thread-safe on C99 and above
compilers when executed on a platform that has locale thread-safety; the
length parameters are now optional.

These functions are always executed under the current C language locale.
(See L<perllocale>.)  Most locales are stateless, but a few, notably the
very rarely encountered ISO 2022, maintain a state between calls to
these functions. Previously the state was cleared on every call, but
now the state is not reset unless the appropriate parameter is C<undef>.

On threaded perls, the C99 functions L<mbrlen(3)>, L<mbrtowc(3)>, and
L<wcrtomb(3)>, when available, are substituted for the plain functions.
This makes these functions thread-safe when executing on a locale
thread-safe platform.

The string length parameters in C<mblen> and C<mbtowc> are now optional;
useful only if you wish to restrict the length parsed in the source
string to less than the actual length.

=head2 Alpha assertions are no longer experimental

See L<perlre/(*pla:pattern)>, L<perlre/(*plb:pattern)>,
L<perlre/(*nla:pattern)>>, and L<perlre/(*nlb:pattern)>.
Use of these no longer generates a warning; existing code that disables
the warning category C<experimental::alpha_assertions> will continue to work
without any changes needed. Enabling the category has no effect.

=head2 Script runs are no longer experimental

See L<perlre/Script Runs>. Use of these no longer generates a warning;
existing code that disables the warning category
C<experimental::script_run> will continue to work without any
changes needed. Enabling the category has no effect.

=head2 Feature checks are now faster

Previously feature checks in the parser required a hash lookup when
features were set outside of a feature bundle, this has been optimized
to a bit mask check. [L<GH #17229|https://github.com/Perl/perl5/issues/17229>]

=head2 Perl is now developed on GitHub

Perl is now developed on GitHub. You can find us at
L<https://github.com/Perl/perl5>.

Non-security bugs should now be reported via GitHub. Security issues should
continue to be reported as documented in L<perlsec>.

=head2 Compiled patterns can now be dumped before optimization

This is primarily useful for tracking down bugs in the regular
expression compiler. This dump happens on C<-DDEBUGGING> perls, if you
specify C<-Drv> on the command line; or on any perl if the pattern is
compiled within the scope of S<C<use re qw(Debug DUMP_PRE_OPTIMIZE)>> or
S<C<use re qw(Debug COMPILE EXTRA)>>. (All but the second case display
other information as well.)

=head1 Security

=head2 [CVE-2020-10543] Buffer overflow caused by a crafted regular expression

A signed C<size_t> integer overflow in the storage space calculations for
nested regular expression quantifiers could cause a heap buffer overflow in
Perl's regular expression compiler that overwrites memory allocated after the
regular expression storage space with attacker supplied data.

The target system needs a sufficient amount of memory to allocate partial
expansions of the nested quantifiers prior to the overflow occurring.  This
requirement is unlikely to be met on 64-bit systems.

Discovered by: ManhND of The Tarantula Team, VinCSS (a member of Vingroup).

=head2 [CVE-2020-10878] Integer overflow via malformed bytecode produced by a crafted regular expression

Integer overflows in the calculation of offsets between instructions for the
regular expression engine could cause corruption of the intermediate language
state of a compiled regular expression.  An attacker could abuse this behaviour
to insert instructions into the compiled form of a Perl regular expression.

Discovered by: Hugo van der Sanden and Slaven Rezic.

=head2 [CVE-2020-12723] Buffer overflow caused by a crafted regular expression

Recursive calls to C<S_study_chunk()> by Perl's regular expression compiler to
optimize the intermediate language representation of a regular expression could
cause corruption of the intermediate language state of a compiled regular
expression.

Discovered by: Sergey Aleynikov.

=head2 Additional Note

An application written in Perl would only be vulnerable to any of the above
flaws if it evaluates regular expressions supplied by the attacker.  Evaluating
regular expressions in this fashion is known to be dangerous since the regular
expression engine does not protect against denial of service attacks in this
usage scenario.

=head1 Incompatible Changes

=head2 Certain pattern matching features are now prohibited in compiling
Unicode property value wildcard subpatterns

These few features are either inappropriate or interfere with the
algorithm used to accomplish this task. The complete list is in
L<perlunicode/Wildcards in Property Values>.

=head2 Unused functions C<POSIX::mbstowcs> and C<POSIX::wcstombs> are removed

These functions could never have worked due to a defective interface
specification. There is clearly no demand for them, given that no one
has ever complained in the many years the functions were claimed to be
available, hence so-called "support" for them is now dropped.

=head2 A bug fix for C<(?[...])> may have caused some patterns to no
longer compile

See L</Selected Bug Fixes>. The heuristics previously used may have let
some constructs compile (perhaps not with the programmer's intended
effect) that should have been errors. None are known, but it is
possible that some erroneous constructs no longer compile.

=head2 C<\p{I<user-defined>}> properties now always override official
Unicode ones

Previously, if and only if a user-defined property was declared prior to
the compilation of the regular expression pattern that contains it, its
definition was used instead of any official Unicode property with the
same name. Now, it always overrides the official property. This
change could break existing code that relied (likely unwittingly) on the
previous behavior. Without this fix, if Unicode released a new version
with a new property that happens to have the same name as the one you
had long been using, your program would break when you upgraded to a
perl that used that new Unicode version. See L<perlunicode/User-Defined
Character Properties>. [L<GH #17205|https://github.com/Perl/perl5/issues/17205>]

=head2 Modifiable variables are no longer permitted in constants

Code like:

    my $var;
    $sub = sub () { $var };

where C<$var> is referenced elsewhere in some sort of modifiable context now
produces an exception when the sub is defined.

This error can be avoided by adding a return to the sub definition:

    $sub = sub () { return $var };

This has been deprecated since Perl 5.22.
L<[GH #17020]|https://github.com/Perl/perl5/issues/17020>

=head2 Use of L<C<vec>|perlfunc/vec EXPR,OFFSET,BITS> on strings with code points above 0xFF is forbidden

Such strings are represented internally in UTF-8, and C<vec> is a
bit-oriented operation that will likely give unexpected results on those
strings. This was deprecated in perl 5.28.0.

=head2 Use of code points over 0xFF in string bitwise operators

Some uses of these were already illegal after a previous deprecation
cycle. The remaining uses are now prohibited, having been deprecated in perl
5.28.0. See L<perldeprecation>.

=head2 C<Sys::Hostname::hostname()> does not accept arguments

This usage was deprecated in perl 5.28.0 and is now fatal.

=head2 Plain "0" string now treated as a number for range operator

Previously a range C<"0" .. "-1"> would produce a range of numeric
strings from "0" through "99"; this now produces an empty list, just
as C<0 .. -1> does. This also means that C<"0" .. "9"> now produces a
list of integers, where previously it would produce a list of strings.

This was due to a special case that treated strings starting with "0"
as strings so ranges like C<"00" .. "03"> produced C<"00", "01", "02", "03">,
but didn't specially handle the string C<"0">.
L<[GH #16770]|https://github.com/Perl/perl5/issues/16770>

=head2 C<\K> now disallowed in look-ahead and look-behind assertions

This was disallowed because it causes unexpected behaviour, and no-one
could define what the desired behaviour should be.
L<[GH #14638]|https://github.com/Perl/perl5/issues/14638>

=head1 Performance Enhancements

=over 4

=item *

C<my_strnlen> has been sped up for systems that don't have their own
C<strnlen> implementation.

=item *

C<grok_bin_oct_hex> (and so, C<grok_bin>, C<grok_oct>, and C<grok_hex>)
have been sped up.

=item *

C<grok_number_flags> has been sped up.

=item *

C<sort> is now noticeably faster in cases such as C<< sort {$a <=> $b} >> or
C<< sort {$b <=> $a} >>. [L<GH #17608|https://github.com/Perl/perl5/pull/17608>]

=back

=head1 Modules and Pragmata

=head2 Updated Modules and Pragmata

=over 4

=item *

L<Archive::Tar> has been upgraded from version 2.32 to 2.36.

=item *

L<autodie> has been upgraded from version 2.29 to 2.32.

=item *

L<B> has been upgraded from version 1.76 to 1.80.

=item *

L<B::Deparse> has been upgraded from version 1.49 to 1.54.

=item *

L<Benchmark> has been upgraded from version 1.22 to 1.23.

=item *

L<charnames> has been upgraded from version 1.45 to 1.48.

=item *

L<Class::Struct> has been upgraded from version 0.65 to 0.66.

=item *

L<Compress::Raw::Bzip2> has been upgraded from version 2.084 to 2.093.

=item *

L<Compress::Raw::Zlib> has been upgraded from version 2.084 to 2.093.

=item *

L<CPAN> has been upgraded from version 2.22 to 2.27.

=item *

L<DB_File> has been upgraded from version 1.843 to 1.853.

=item *

L<Devel::PPPort> has been upgraded from version 3.52 to 3.57.

The test files generated on Win32 are now identical to when they are
generated on POSIX-like systems.

=item *

L<diagnostics> has been upgraded from version 1.36 to 1.37.

=item *

L<Digest::MD5> has been upgraded from version 2.55 to 2.55_01.

=item *

L<Dumpvalue> has been upgraded from version 1.18 to 1.21.

Previously, when dumping elements of an array and encountering an undefined
value, the string printed would have been C<empty array>. This has been
changed to what was apparently originally intended:  C<empty slot>.

=item *

L<DynaLoader> has been upgraded from version 1.45 to 1.47.

=item *

L<Encode> has been upgraded from version 3.01 to 3.06.

=item *

L<encoding> has been upgraded from version 2.22 to 3.00.

=item *

L<English> has been upgraded from version 1.10 to 1.11.

=item *

L<Exporter> has been upgraded from version 5.73 to 5.74.

=item *

L<ExtUtils::CBuilder> has been upgraded from version 0.280231 to 0.280234.

=item *

L<ExtUtils::MakeMaker> has been upgraded from version 7.34 to 7.44.

=item *

L<feature> has been upgraded from version 1.54 to 1.58.

A new C<indirect> feature has been added, which is enabled by default
but allows turning off L<indirect object syntax|perlobj/Indirect
Object Syntax>.

=item *

L<File::Find> has been upgraded from version 1.36 to 1.37.

On Win32, the tests no longer require either a file in the drive root
directory, or a writable root directory.

=item *

L<File::Glob> has been upgraded from version 1.32 to 1.33.

=item *

L<File::stat> has been upgraded from version 1.08 to 1.09.

=item *

L<Filter::Simple> has been upgraded from version 0.95 to 0.96.

=item *

L<Getopt::Long> has been upgraded from version 2.5 to 2.51.

=item *

L<Hash::Util> has been upgraded from version 0.22 to 0.23.

The Synopsis has been updated as the example code stopped working with
newer perls.
[L<GH #17399|https://github.com/Perl/perl5/issues/17399>]

=item *

L<I18N::Langinfo> has been upgraded from version 0.18 to 0.19.

=item *

L<I18N::LangTags> has been upgraded from version 0.43 to 0.44.

Document the C<IGNORE_WIN32_LOCALE> environment variable.

=item *

L<IO> has been upgraded from version 1.40 to 1.43.

L<IO::Socket> no longer caches a zero protocol value, since this
indicates that the implementation will select a protocol. This means
that on platforms that don't implement C<SO_PROTOCOL> for a given
socket type the protocol method may return C<undef>.

The supplied I<TO> is now always honoured on calls to the C<send()>
method. L<[GH #16891]|https://github.com/Perl/perl5/issues/16891>

=item *

IO-Compress has been upgraded from version 2.084 to 2.093.

=item *

L<IPC::Cmd> has been upgraded from version 1.02 to 1.04.

=item *

L<IPC::Open3> has been upgraded from version 1.20 to 1.21.

=item *

L<JSON::PP> has been upgraded from version 4.02 to 4.04.

=item *

L<Math::BigInt> has been upgraded from version 1.999816 to 1.999818.

=item *

L<Math::BigInt::FastCalc> has been upgraded from version 0.5008 to 0.5009.

=item *

L<Module::CoreList> has been upgraded from version 5.20190522 to 5.20200620.

=item *

L<Module::Load::Conditional> has been upgraded from version 0.68 to 0.70.

=item *

L<Module::Metadata> has been upgraded from version 1.000036 to 1.000037.

=item *

L<mro> has been upgraded from version 1.22 to 1.23.

=item *

L<Net::Ping> has been upgraded from version 2.71 to 2.72.

=item *

L<Opcode> has been upgraded from version 1.43 to 1.47.

=item *

L<open> has been upgraded from version 1.11 to 1.12.

=item *

L<overload> has been upgraded from version 1.30 to 1.31.

=item *

L<parent> has been upgraded from version 0.237 to 0.238.

=item *

L<perlfaq> has been upgraded from version 5.20190126 to 5.20200523.

=item *

L<PerlIO> has been upgraded from version 1.10 to 1.11.

=item *

L<PerlIO::encoding> has been upgraded from version 0.27 to 0.28.

=item *

L<PerlIO::via> has been upgraded from version 0.17 to 0.18.

=item *

L<Pod::Html> has been upgraded from version 1.24 to 1.25.

=item *

L<Pod::Simple> has been upgraded from version 3.35 to 3.40.

=item *

L<podlators> has been upgraded from version 4.11 to 4.14.

=item *

L<POSIX> has been upgraded from version 1.88 to 1.94.

=item *

L<re> has been upgraded from version 0.37 to 0.40.

=item *

L<Safe> has been upgraded from version 2.40 to 2.41.

=item *

L<Scalar::Util> has been upgraded from version 1.50 to 1.55.

=item *

L<SelfLoader> has been upgraded from version 1.25 to 1.26.

=item *

L<Socket> has been upgraded from version 2.027 to 2.029.

=item *

L<Storable> has been upgraded from version 3.15 to 3.21.

Use of C<note()> from L<Test::More> is now optional in tests. This works
around a circular dependency with L<Test::More> when installing on very
old perls from CPAN.

Vstring magic strings over 2GB are now disallowed.

Regular expressions objects weren't properly counted for object id
purposes on retrieve. This would corrupt the resulting structure, or
cause a runtime error in some cases. L<[GH #17037]|https://github.com/Perl/perl5/issues/17037>

=item *

L<Sys::Hostname> has been upgraded from version 1.22 to 1.23.

=item *

L<Sys::Syslog> has been upgraded from version 0.35 to 0.36.

=item *

L<Term::ANSIColor> has been upgraded from version 4.06 to 5.01.

=item *

L<Test::Simple> has been upgraded from version 1.302162 to 1.302175.

=item *

L<Thread> has been upgraded from version 3.04 to 3.05.

=item *

L<Thread::Queue> has been upgraded from version 3.13 to 3.14.

=item *

L<threads> has been upgraded from version 2.22 to 2.25.

=item *

L<threads::shared> has been upgraded from version 1.60 to 1.61.

=item *

L<Tie::File> has been upgraded from version 1.02 to 1.06.

=item *

L<Tie::Hash::NamedCapture> has been upgraded from version 0.10 to 0.13.

=item *

L<Tie::Scalar> has been upgraded from version 1.04 to 1.05.

=item *

L<Tie::StdHandle> has been upgraded from version 4.5 to 4.6.

=item *

L<Time::HiRes> has been upgraded from version 1.9760 to 1.9764.

Removed obsolete code such as support for pre-5.6 perl and classic
MacOS. L<[GH #17096]|https://github.com/Perl/perl5/issues/17096>

=item *

L<Time::Piece> has been upgraded from version 1.33 to 1.3401.

=item *

L<Unicode::Normalize> has been upgraded from version 1.26 to 1.27.

=item *

L<Unicode::UCD> has been upgraded from version 0.72 to 0.75.

=item *

L<VMS::Stdio> has been upgraded from version 2.44 to 2.45.

=item *

L<warnings> has been upgraded from version 1.44 to 1.47.

=item *

L<Win32> has been upgraded from version 0.52 to 0.53.

=item *

L<Win32API::File> has been upgraded from version 0.1203 to 0.1203_01.

=item *

L<XS::APItest> has been upgraded from version 1.00 to 1.09.

=back

=head2 Removed Modules and Pragmata

=over 4

=item *

Pod::Parser has been removed from the core distribution.
It still is available for download from CPAN. This resolves 
[L<#13194|https://github.com/Perl/perl5/issues/13194>].

=back

=head1 Documentation

=head2 Changes to Existing Documentation

We have attempted to update the documentation to reflect the changes
listed in this document. If you find any we have missed, open an issue
at L<https://github.com/Perl/perl5/issues>.

Additionally, the following selected changes have been made:

=head3 L<perldebguts>

=over 4

=item *

Simplify a few regnode definitions

Update C<BOUND> and C<NBOUND> definitions.

=item *

Add ANYOFHs regnode

This node is like C<ANYOFHb>, but is used when more than one leading byte
is the same in all the matched code points.

C<ANYOFHb> is used to avoid having to convert from UTF-8 to code point for
something that won't match. It checks that the first byte in the UTF-8
encoded target is the desired one, thus ruling out most of the possible
code points.

=back

=head3 L<perlapi>

=over 4

=item *

C<sv_2pvbyte> updated to mention it will croak if the SV cannot be
downgraded.

=item *

C<sv_setpvn> updated to mention that the UTF-8 flag will not be changed by
this function, and a terminating NUL byte is guaranteed.

=item *

Documentation for C<PL_phase> has been added.

=item *

The documentation for C<grok_bin>, C<grok_oct>, and C<grok_hex> has been
updated and clarified.

=back

=head3 L<perldiag>

=over 4

=item *

Add documentation for experimental 'isa' operator

(S experimental::isa) This warning is emitted if you use the (C<isa>)
operator. This operator is currently experimental and its behaviour may
change in future releases of Perl.

=back

=head3 L<perlfunc>

=over 4

=item C<caller>

Like L<C<__FILE__>|/__FILE__> and L<C<__LINE__>|/__LINE__>, the filename and
line number returned here may be altered by the mechanism described at
L<perlsyn/"Plain Old Comments (Not!)">.

=item C<__FILE__>

It can be altered by the mechanism described at
L<perlsyn/"Plain Old Comments (Not!)">.

=item C<__LINE__>

It can be altered by the mechanism described at
L<perlsyn/"Plain Old Comments (Not!)">.

=item C<return>

Now mentions that you cannot return from C<do BLOCK>.

=item C<open>

The C<open()> section had been renovated significantly.

=back

=head3 L<perlguts>

=over 4

=item *

No longer suggesting using perl's C<malloc>. Modern system C<malloc> is
assumed to be much better than perl's implementation now.

=item *

Documentation about F<embed.fnc> flags has been removed. F<embed.fnc> now has
sufficient comments within it. Anyone changing that file will see those
comments first, so entries here are now redundant.

=item *

Updated documentation for C<UTF8f>

=item *

Added missing C<=for apidoc> lines

=back

=head3 L<perlhacktips>

=over 4

=item *

The differences between Perl strings and C strings are now detailed.

=back

=head3 L<perlintro>

=over 4

=item *

The documentation for the repetition operator C<x> have been clarified.
[L<GH #17335|https://github.com/Perl/perl5/issues/17335>]

=back

=head3 L<perlipc>

=over 4

=item *

The documentation surrounding C<open> and handle usage has been modernized
to prefer 3-arg open and lexical variables instead of barewords.

=item *

Various updates and fixes including making all examples strict-safe and
replacing C<-w> with C<use warnings>.

=back

=head3 L<perlop>

=over 4

=item *

'isa' operator is experimental

This is an experimental feature and is available when enabled
by C<use feature 'isa'>. It emits a warning in the C<experimental::isa>
category.

=back

=head3 L<perlpod>

=over 4

=item *

Details of the various stacks within the perl interpreter are now explained
here.

=item *

Advice has been added regarding the usage of C<< ZE<lt>E<gt> >>.

=back

=head3 L<perlport>

=over 4

=item *

Update C<timegm> example to use the correct year format I<1970> instead of I<70>.
[L<GH #16431|https://github.com/Perl/perl5/issues/16431>]

=back

=head3 L<perlreref>

=over 4

=item *

Fix some typos.

=back

=head3 L<perlvar>

=over 4

=item *

Now recommends stringifying C<$]> and comparing it numerically.

=back

=head3 L<perlapi>, L<perlintern>

=over 4

=item *

Documentation has been added for several functions that were
lacking it before.

=back

=head3 L<perlxs>

=over 4

=item *

Suggest using C<libffi> for simple library bindings via CPAN modules
like L<FFI::Platypus> or L<FFI::Raw>.

=back

=head3 L<POSIX>

=over 4

=item *

C<setlocale> warning about threaded builds updated to note it does not
apply on Perl 5.28.X and later.

=item *

C<< Posix::SigSet->new(...) >> updated to state it throws an error if any of
the supplied signals cannot be added to the set.

=back

Additionally, the following selected changes have been made:

=head3 Updating of links

=over 4

=item *

Links to the now defunct L<https://search.cpan.org> site now point at
the equivalent L<https://metacpan.org> URL. [L<GH #17393|https://github.com/Perl/perl5/issues/17393>]

=item *

The man page for L<ExtUtils::XSSymSet> is now only installed on VMS,
which is the only platform the module is installed on. [L<GH #17424|https://github.com/Perl/perl5/issues/17424>]

=item *

URLs have been changed to C<https://> and stale links have been updated.

Where applicable, the URLs in the documentation have been moved from using the
C<http://> protocol to C<https://>. This also affects the location of the bug
tracker at L<https://rt.perl.org>.

=item *

Some links to OS/2 libraries, Address Sanitizer and other system tools had gone
stale. These have been updated with working links.

=item *

Some links to old email addresses on perl5-porters had gone stale. These have been
updated with working links.

=back

=head1 Diagnostics

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 L<perldiag>.

=head2 New Diagnostics

=head3 New Errors

=over 4

=item *

L<Expecting interpolated extended charclass in regex; marked by <-- HERE in mE<sol>%sE<sol>
|perldiag/"Expecting interpolated extended charclass in regex; marked by <-- HERE in mE<sol>%sE<sol>">

This is a replacement for several error messages listed under
L</Changes to Existing Diagnostics>.

=item *

C<L<No digits found for %s literal|perldiag/"No digits found for %s literal">>

(F) No hexadecimal digits were found following C<0x> or no binary digits were
found following C<0b>.

=back

=head3 New Warnings

=over 4

=item *

L<Code point 0x%X is not Unicode, and not portable|perldiag/"Code point 0x%X is not Unicode, and not portable">

This is actually not a new message, but it is now output when the
warnings category C<portable> is enabled.

When raised during regular expression pattern compilation, the warning
has extra text added at the end marking where precisely in the pattern
it occurred.

=item *

L<Non-hex character '%c' terminates \x early.  Resolved as "%s"|perldiag/"Non-hex character '%c' terminates \x early.  Resolved as "%s"">

This replaces a warning that was much less specific, and which gave
false information. This new warning parallels the similar
already-existing one raised for C<\o{}>.

=back

=head2 Changes to Existing Diagnostics

=over 4

=item *

L<Character following "\c" must be printable ASCII|perldiag/"Character following "\c" must be printable ASCII">

...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern
it occurred.

=item *

L<Use "%s" instead of "%s"|perldiag/"Use "%s" instead of "%s"">

...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern
it occurred.

=item *

L<Sequence "\c{" invalid|perldiag/"Sequence "\c{" invalid">

...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern
it occurred.

=item *

L<"\c%c" is more clearly written simply as "%s"|perldiag/""\c%c" is more clearly written simply as "%s"">

...now has extra text added at the end, when raised during regular
expression pattern compilation, marking where precisely in the pattern
it occurred.

=item *

L<Non-octal character '%c' terminates \o early.  Resolved as "%s"|perldiag/"Non-octal character '%c' terminates \o early.  Resolved as "%s"">

...now includes the phrase "terminates \o early", and has extra text added
at the end, when raised during regular expression pattern compilation,
marking where precisely in the pattern it occurred. In some instances
the text of the resolution has been clarified.

=item *

L<'%s' resolved to '\o{%s}%d'|perldiag/'%s' resolved to '\o{%s}%d'>

As of Perl 5.32, this message is no longer generated. Instead,
L<perldiag/Non-octal character '%c' terminates \o early.  Resolved as "%s">
is used instead.

=item *

L<Use of code point 0x%s is not allowed; the permissible max is 0x%X|perldiag/"Use of code point 0x%s is not allowed; the permissible max is 0x%X">

Some instances of this message previously output the hex digits C<A>,
C<B>, C<C>, C<D>, C<E>, and C<F> in lower case. Now they are all
consistently upper case.

=item *

The following three diagnostics have been removed, and replaced by
L<C<Expecting interpolated extended charclass in regex; marked by <-- HERE in mE<sol>%sE<sol>>
|perldiag/"Expecting interpolated extended charclass in regex; marked by <-- HERE in mE<sol>%sE<sol>">:
C<Expecting close paren for nested extended charclass in regex; marked
by <-- HERE in mE<sol>%sE<sol>>,
C<Expecting close paren for wrapper for nested extended charclass in
regex; marked by <-- HERE in mE<sol>%sE<sol>>,
and
C<Expecting '(?flags:(?[...' in regex; marked by S<<-- HERE> in mE<sol>%sE<sol>>.

=item *

The C<Code point 0x%X is not Unicode, and not portable> warning removed
the line C<Code points above 0xFFFF_FFFF require larger than a 32 bit word.>
as code points that large are no longer legal on 32-bit platforms.

=item *

L<Can't use global %s in %s|perldiag/"Can't use global %s in %s">

This error message has been slightly reformatted from the original C<Can't use
global %s in "%s">, and in particular misleading error messages like C<Can't
use global $_ in "my"> are now rendered as C<Can't use global $_ in subroutine
signature>.

=item *

L<Constants from lexical variables potentially modified elsewhere are no longer permitted|perldiag/"Constants from lexical variables potentially modified elsewhere are no longer permitted">

This error message replaces the former C<Constants from lexical variables
potentially modified elsewhere are deprecated. This will not be allowed in Perl
5.32> to reflect the fact that this previously deprecated usage has now been
transformed into an exception. The message's classification has also been
updated from D (deprecated) to F (fatal).

See also L</Incompatible Changes>.

=item *

C<\N{} here is restricted to one character> is now emitted in the same
circumstances where previously C<\N{} in inverted character class or as a range
end-point is restricted to one character> was.

This is due to new circumstances having been added in Perl 5.30 that weren't
covered by the earlier wording.

=back

=head1 Utility Changes

=head2 L<perlbug>

=over 4

=item * The bug tracker homepage URL now points to GitHub.

=back

=head2 L<streamzip>

=over 4

=item *

This is a new utility, included as part of an
L<IO::Compress::Base> upgrade.

L<streamzip> creates a zip file from stdin. The program will read data
from stdin, compress it into a zip container and, by default, write a
streamed zip file to stdout.

=back

=head1 Configuration and Compilation

=head2 F<Configure>

=over 4

=item *

For clang++, add C<< #include <stdlib.h> >> to Configure's probes for
C<futimes>, C<strtoll>, C<strtoul>, C<strtoull>, C<strtouq>, otherwise the
probes would fail to compile.

=item *

Use a compile and run test for C<lchown> to satisfy clang++ which should
more reliably detect it.

=item *

For C++ compilers, add C<< #include <stdio.h> >> to Configure's probes for
C<getpgrp> and C<setpgrp> as they use printf and C++ compilers may fail
compilation instead of just warning.

=item *

Check if the compiler can handle inline attribute.

=item *

Check for character data alignment.

=item *

F<Configure> now correctly handles gcc-10. Previously it was interpreting it
as gcc-1 and turned on C<-fpcc-struct-return>.

=item *

Perl now no longer probes for C<d_u32align>, defaulting to C<define> on all
platforms. This check was error-prone when it was done, which was on 32-bit
platforms only.
L<[GH #16680]|https://github.com/Perl/perl5/issues/16680>

=item *

Documentation and hints for building perl on Z/OS (native EBCDIC) have been
updated. This is still a work in progress.

=item *

A new probe for C<malloc_usable_size> has been added.

=item *

Improvements in F<Configure> to detection in C++ and clang++. Work ongoing by
Andy Dougherty. L<[GH #17033]|https://github.com/Perl/perl5/issues/17033>

=item *

F<autodoc.pl>

This tool that regenerates L<perlintern> and L<perlapi> has been overhauled
significantly, restoring consistency in flags used in F<embed.fnc> and
L<Devel::PPPort> and allowing removal of many redundant C<=for apidoc>
entries in code.

=item *

The C<ECHO> macro is now defined. This is used in a C<dtrace> rule that was
originally changed for FreeBSD, and the FreeBSD make apparently predefines it.
The Solaris make does not predefine C<ECHO> which broke this rule on Solaris.
L<[GH #17057]|https://github.com/Perl/perl5/issues/17057>

=item *

Bison versions 3.1 through 3.4 are now supported.

=back

=head1 Testing

Tests were added and changed to reflect the other additions and
changes in this release. Furthermore, these significant changes were
made:

=over 4

=item *

F<t/run/switches.t> no longer uses (and re-uses) the F<tmpinplace/>
directory under F<t/>. This may prevent spurious failures. [L<GH #17424|https://github.com/Perl/perl5/issues/17424>]

=item *

Various bugs in C<POSIX::mbtowc> were fixed. Potential races with
other threads are now avoided, and previously the returned wide
character could well be garbage.

=item *

Various bugs in C<POSIX::wctomb> were fixed. Potential races with other
threads are now avoided, and previously it would segfault if the string
parameter was shared or hadn't been pre-allocated with a string of
sufficient length to hold the result.

=item *

Certain test output of scalars containing control characters and Unicode
has been fixed on EBCDIC.

=item *

F<t/charset_tools.pl>: Avoid some work on ASCII platforms.

=item *

F<t/re/regexp.t>: Speed up many regex tests on ASCII platform

=item *

F<t/re/pat.t>: Skip tests that don't work on EBCDIC.

=back

=head1 Platform Support

=head2 Discontinued Platforms

=over 4

=item Windows CE

Support for building perl on Windows CE has now been removed.

=back

=head2 Platform-Specific Notes

=over 4

=item Linux

C<cc> will be used to populate C<plibpth> if C<cc> is C<clang>.
L<[GH #17043]|https://github.com/Perl/perl5/issues/17043>

=item NetBSD 8.0

Fix compilation of Perl on NetBSD 8.0 with g++.
[L<GH #17381|https://github.com/Perl/perl5/issues/17381>]

=item Windows

=over 4

=item *

The configuration for C<ccflags> and C<optimize> are now separate, as
with POSIX platforms. [L<GH #17156|https://github.com/Perl/perl5/issues/17156>]

=item *

Support for building perl with Visual C++ 6.0 has now been removed.

=item *

The locale tests could crash on Win32 due to a Windows bug, and
separately due to the CRT throwing an exception if the locale name
wasn't validly encoded in the current code page.

For the second we now decode the locale name ourselves, and always
decode it as UTF-8. L<[GH #16922]|https://github.com/Perl/perl5/issues/16922>

=item *

F<t/op/magic.t> could fail if environment variables starting with
C<FOO> already existed.

=item *

MYMALLOC (PERL_MALLOC) build has been fixed.

=back

=item Solaris

=over 4

=item *

C<Configure> will now find recent versions of the Oracle Developer Studio
compiler, which are found under C</opt/developerstudio*>.

=item *

C<Configure> now uses the detected types for C<gethostby*> functions, allowing
Perl to once again compile on certain configurations of Solaris.

=back

=item VMS

=over 4

=item *

With the release of the patch kit C99 V2.0, VSI has provided support for a
number of previously-missing C99 features. On systems with that patch kit
installed, Perl's configuration process will now detect the presence of the
header C<stdint.h> and the following functions: C<fpclassify>, C<isblank>, C<isless>,
C<llrint>, C<llrintl>, C<llround>, C<llroundl>, C<nearbyint>, C<round>, C<scalbn>,
and C<scalbnl>.

=item *

C<-Duse64bitint> is now the default on VMS.

=back

=item z/OS

Perl 5.32 has been tested on z/OS 2.4, with the following caveats:

=over 4

=item *

Only static builds (the default) build reliably

=item *

When using locales, z/OS does not handle the C<LC_MESSAGES> category
properly, so when compiling perl, you should add the following to your
F<Configure> options

 ./Configure <other options> -Accflags=-DNO_LOCALE_MESSAGES

=item *

z/OS does not support locales with threads, so when compiling a threaded
perl, you should add the following to your F<Configure> options

 ./Configure <other Configure options> -Accflags=-DNO_LOCALE

=item *

Some CPAN modules that are shipped with perl fail at least one of their
self-tests.  These are:
Archive::Tar,
Config::Perl::V,
CPAN::Meta,
CPAN::Meta::YAML,
Digest::MD5,
Digest::SHA,
Encode,
ExtUtils::MakeMaker,
ExtUtils::Manifest,
HTTP::Tiny,
IO::Compress,
IPC::Cmd,
JSON::PP,
libnet,
MIME::Base64,
Module::Metadata,
PerlIO::via-QuotedPrint,
Pod::Checker,
podlators,
Pod::Simple,
Socket,
and Test::Harness.

The causes of the failures range from the self-test itself is flawed,
and the module actually works fine, up to the module doesn't work at all
on EBCDIC platforms.

=back

=back

=head1 Internal Changes

=over 4

=item *

C<savepvn>'s len parameter is now a C<Size_t> instead of an C<I32> since we
can handle longer strings than 31 bits.

=item *

The lexer (C<Perl_yylex()> in F<toke.c>) was previously a single 4100-line
function, relying heavily on C<goto> and a lot of widely-scoped local variables
to do its work. It has now been pulled apart into a few dozen smaller static
functions; the largest remaining chunk (C<yyl_word_or_keyword()>) is a little
over 900 lines, and consists of a single C<switch> statement, all of whose
C<case> groups are independent. This should be much easier to understand and
maintain.

=item *

The OS-level signal handlers and type (Sighandler_t) used by the perl core
were declared as having three parameters, but the OS was always told to
call them with one argument. This has been fixed by declaring them to have
one parameter. See the merge commit C<v5.31.5-346-g116e19abbf> for full
details.

=item *

The code that handles C<tr///> has been extensively revised, fixing
various bugs, especially when the source and/or replacement strings
contain characters whose code points are above 255. Some of the bugs
were undocumented, one being that under some circumstances (but not all)
with C</s>, the squeezing was done based on the source, rather than the
replacement. A documented bug that got fixed was
L<[GH #14777]|https://github.com/Perl/perl5/issues/14777>.

=item *

A new macro for XS writers dealing with UTF-8-encoded Unicode strings
has been created L<perlapi/C<UTF8_CHK_SKIP>> that is safer in the face
of malformed UTF-8 input than L<perlapi/C<UTF8_SKIP>> (but not as safe
as L<perlapi/C<UTF8_SAFE_SKIP>>). It won't read past a NUL character.
It has been backported in L<Devel::PPPort> 3.55 and later.

=item *

Added the C<< PL_curstackinfo->si_cxsubix >> field. This records the stack index
of the most recently pushed sub/format/eval context. It is set and restored
automatically by C<cx_pushsub()>, C<cx_popsub()> etc., but would need to be
manually managed if you do any unusual manipulation of the context stack.

=item *

Various macros dealing with character type classification and changing case
where the input is encoded in UTF-8 now require an extra parameter to prevent
potential reads beyond the end of the buffer. Use of these has generated a
deprecation warning since Perl 5.26. Details are in
L<perldeprecation/In XS code, use of various macros dealing with UTF-8.>

=item *

A new parser function L<parse_subsignature()|perlapi/parse_subsignature>
allows a keyword plugin to parse a subroutine signature while C<use feature
'signatures'> is in effect. This allows custom keywords to implement
semantics similar to regular C<sub> declarations that include signatures.
L<[GH #16261]|https://github.com/Perl/perl5/issues/16261>

=item *

Since on some platforms we need to hold a mutex when temporarily
switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>,
C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>)
have been added to make it easier to do this safely and efficiently
as part of L<[GH #17034]|https://github.com/Perl/perl5/issues/17034>.

=item *

The memory bookkeeping overhead for allocating an OP structure has been
reduced by 8 bytes per OP on 64-bit systems.

=item *

L<eval_pv()|perlapi/eval_pv> no longer stringifies the exception when
C<[GH #17035]|https://github.com/Perl/perl5/issues/17035>]

=item *

The PERL_DESTRUCT_LEVEL environment variable was formerly only honoured on perl
binaries built with DEBUGGING support. It is now checked on all perl builds.
Its normal use is to force perl to individually free every block of memory
which it has allocated before exiting, which is useful when using automated
leak detection tools such as valgrind.

=item *

The API eval_sv() now accepts a C<G_RETHROW> flag. If this flag is set and an
exception is thrown while compiling or executing the supplied code, it will be
rethrown, and eval_sv() will not return.
L<[GH #17036]|https://github.com/Perl/perl5/issues/17036>

=item *

As part of the fix for
L<[GH #1537]|https://github.com/Perl/perl5/issues/1537> perl_parse()
now returns non-zero if exit(0) is called in a C<BEGIN>, C<UNITCHECK> or
C<CHECK> block.

=item *

Most functions which recursively walked an op tree during compilation have been
made non-recursive. This avoids SEGVs from stack overflow when the op tree is
deeply nested, such as C<$n == 1 ? "one" : $n == 2 ? "two" : ....> (especially
in code which is auto-generated).

This is particularly noticeable where the code is compiled within a separate
thread, as threads tend to have small stacks by default.

=back

=head1 Selected Bug Fixes

=over 4

=item *

Previously L<perlfunc/require> would only treat the special built-in
SV C<&PL_sv_undef> as a value in C<%INC> as if a previous C<require>
has failed, treating other undefined SVs as if the previous C<require>
has succeeded. This could cause unexpected success from C<require>
e.g., on C<local %INC = %INC;>. This has been fixed. [L<GH #17428|https://github.com/Perl/perl5/issues/17428>]

=item *

C<(?{...})> eval groups in regular expressions no longer unintentionally
trigger "EVAL without pos change exceeded limit in regex" [L<GH #17490|https://github.com/Perl/perl5/issues/17490>].

=item *

C<(?[...])> extended bracketed character classes do not wrongly raise an
error on some cases where a previously-compiled such class is
interpolated into another. The heuristics previously used have been
replaced by a reliable method, and hence the diagnostics generated have
changed. See L</Diagnostics>.

=item *

The debug display (say by specifying C<-Dr> or S<C<use re>> (with
appropriate options) of compiled Unicode property wildcard subpatterns no
longer has extraneous output.

=item *

Fix an assertion failure in the regular expression engine.
[L<GH #17372|https://github.com/Perl/perl5/issues/17372>]

=item *

Fix coredump in pp_hot.c after C<B::UNOP_AUX::aux_list()>.
[L<GH #17301|https://github.com/Perl/perl5/issues/17301>]

=item *

Loading IO is now threadsafe.
[L<GH #14816|https://github.com/Perl/perl5/issues/14816>]

=item *

C<\p{user-defined}> overrides official Unicode [L<GH #17025|https://github.com/Perl/perl5/issues/17025>]

Prior to this patch, the override was only sometimes in effect.

=item *

Properly handle filled C</il> regnodes and multi-char folds

=item *

Compilation error during make minitest [L<GH #17293|https://github.com/Perl/perl5/issues/17293>]

=item *

Move the implementation of C<%->, C<%+> into core.

=item *

Read beyond buffer in C<grok_inf_nan> [L<GH #17370|https://github.com/Perl/perl5/issues/17370>]

=item *

Workaround glibc bug with C<LC_MESSAGES> [L<GH #17081|https://github.com/Perl/perl5/issues/17081>]

=item *

C<printf()> or C<sprintf()> with the C<%n> format could cause a panic on
debugging builds, or report an incorrectly cached length value when
producing C<SVfUTF8> flagged strings. [L<GH #17221|https://github.com/Perl/perl5/issues/17221>]

=item *

The tokenizer has been extensively refactored.
[L<GH #17241|https://github.com/Perl/perl5/issues/17241>]
[L<GH #17189|https://github.com/Perl/perl5/issues/17189>]

=item *

C<use strict "subs"> is now enforced for bareword constants optimized
into a C<multiconcat> operator. [L<GH #17254|https://github.com/Perl/perl5/issues/17254>]

=item *

A memory leak in regular expression patterns has been fixed. [L<GH #17218|https://github.com/Perl/perl5/issues/17218>]

=item *

Perl no longer treats strings starting with "0x" or "0b" as hex or
binary numbers respectively when converting a string to a number.
This reverts a change in behaviour inadvertently introduced in perl
5.30.0 intended to improve precision when converting a string to a
floating point number. L<[GH #17062]|https://github.com/Perl/perl5/issues/17062>

=item *

Matching a non-C<SVf_UTF8> string against a regular expression
containing unicode literals could leak a SV on each match attempt.
L<[GH #17140]|https://github.com/Perl/perl5/issues/17140>

=item *

Overloads for octal and binary floating point literals were always
passed a string with a C<0x> prefix instead of the appropriate C<0> or
C<[GH #14791]|https://github.com/Perl/perl5/issues/14791>]

=item *

C<< $@ = 100; die; >> now correctly propagates the 100 as an exception
instead of ignoring it. L<[GH #17098]|https://github.com/Perl/perl5/issues/17098>

=item *

C<[GH #17108]|https://github.com/Perl/perl5/issues/17108>]

=item *

Exceptions thrown while C<$@> is read-only could result in infinite
recursion as perl tried to update C<$@>, which throws another
exception, resulting in a stack overflow. Perl now replaces C<$@>
with a copy if it's not a simple writable SV. L<[GH #17083]|https://github.com/Perl/perl5/issues/17083>

=item *

Setting C<$)> now properly sets supplementary group ids if you have
the necessary privileges. L<[GH #17031]|https://github.com/Perl/perl5/issues/17031>

=item *

close() on a pipe now preemptively clears the PerlIO object from the
IO SV. This prevents a second attempt to close the already closed
PerlIO object if a signal handler calls die() or exit() while close()
is waiting for the child process to complete. L<[GH #13929]|https://github.com/Perl/perl5/issues/13929>

=item *

C<< sprintf("%.*a", -10000, $x) >> would cause a buffer overflow due
to mishandling of the negative precision value. L<[GH #16942]|https://github.com/Perl/perl5/issues/16942>

=item *

scalar() on a reference could cause an erroneous assertion failure
during compilation. L<[GH #16969]|https://github.com/Perl/perl5/issues/16969>

=item *

C<%{^CAPTURE_ALL}> is now an alias to C<%-> as documented, rather than
incorrectly an alias for C<[GH #16105]|https://github.com/Perl/perl5/issues/16105>]

=item *

C<%{^CAPTURE}> didn't work if C<@{^CAPTURE}> was mentioned first.
Similarly for C<%{^CAPTURE_ALL}> and C<@{^CAPTURE_ALL}>, though
C<[GH #17045]|https://github.com/Perl/perl5/issues/17045>]

=item *

Extraordinarily large (over 2GB) floating point format widths could
cause an integer overflow in the underlying call to snprintf(),
resulting in an assertion. Formatted floating point widths are now
limited to the range of int, the return value of snprintf(). 
[L<#16881|https://github.com/Perl/perl5/issues/16881>]

=item *

Parsing the following constructs within a sub-parse (such as with
C<"${code here}"> or C<s/.../code here/e>) has changed to match how
they're parsed normally:

=over

=item *

C<print $fh ...> no longer produces a syntax error.

=item *

Code like C<s/.../ ${time} /e> now properly produces an "Ambiguous use
of ${time} resolved to $time at ..." warning when warnings are enabled.

=item *

C<@x {"a"}> (with the space) in a sub-parse now properly produces a
"better written as" warning when warnings are enabled.

=item *

Attributes can now be used in a sub-parse.
L<[GH #16847]|https://github.com/Perl/perl5/issues/16847>

=back

=item *

Incomplete hex and binary literals like C<0x> and C<0b> are now
treated as if the C<x> or C<b> is part of the next token. 
[L<#17010|https://github.com/Perl/perl5/issues/17010>]

=item *

A spurious C<)> in a subparse, such as in C<s/.../code here/e> or
C<"...${code here}">, no longer confuses the parser.

Previously a subparse was bracketed with generated C<(> and C<)>
tokens, so a spurious C<)> would close the construct without doing the
normal subparse clean up, confusing the parser and possible causing an
assertion failure.

Such constructs are now surrounded by artificial tokens that can't be
included in the source. L<[GH #15814]|https://github.com/Perl/perl5/issues/15814>

=item *

Reference assignment of a sub, such as C<\&foo = \&bar;>, silently did
nothing in the C<[GH #16987]|https://github.com/Perl/perl5/issues/16987>]

=item *

sv_gets() now recovers better if the target SV is modified by a signal
handler. L<[GH #16960]|https://github.com/Perl/perl5/issues/16960>

=item *

C<readline @foo> now evaluates C<@foo> in scalar context. Previously
it would be evaluated in list context, and since readline() pops only
one argument from the stack, the stack could underflow, or be left
with unexpected values on the stack. L<[GH #16929]|https://github.com/Perl/perl5/issues/16929>

=item *

Parsing incomplete hex or binary literals was changed in 5.31.1 to treat such a
literal as just the 0, leaving the following C<x> or C<b> to be parsed as part
of the next token. This could lead to some silent changes in behaviour, so now
incomplete hex or binary literals produce a fatal error.
L<[GH #17010]|https://github.com/Perl/perl5/issues/17010>

=item *

eval_pv()'s I<croak_on_error> flag will now throw even if the exception is a
false overloaded value.
L<[GH #17036]|https://github.com/Perl/perl5/issues/17036>

=item *

C<INIT> blocks and the program itself are no longer run if exit(0) is called
within a C<BEGIN>, C<UNITCHECK> or C<CHECK> block.
L<[GH #1537]|https://github.com/Perl/perl5/issues/1537>

=item *

C<< open my $fh, ">>+", undef >> now opens the temporary file in append mode:
writes will seek to the end of file before writing.
L<[GH #17058]|https://github.com/Perl/perl5/issues/17058>

=item *

Fixed a SEGV when searching for the source of an uninitialized value warning on
an op whose subtree includes an OP_MULTIDEREF.
L<[GH #17088]|https://github.com/Perl/perl5/issues/17088>

=back

=head1 Obituary

Jeff Goff (JGOFF or DrForr), an integral part of the Perl and Raku
communities and a dear friend to all of us, has passed away on March
13th, 2020. DrForr was a prominent member of the communities, attending
and speaking at countless events, contributing to numerous projects,
and assisting and helping in any way he could.

His passing leaves a hole in our hearts and in our communities and he
will be sorely missed.

=head1 Acknowledgements

Perl 5.32.0 represents approximately 13 months of development since Perl
5.30.0 and contains approximately 220,000 lines of changes across 1,800
files from 89 authors.

Excluding auto-generated files, documentation and release tools, there were
approximately 140,000 lines of changes to 880 .pm, .t, .c and .h files.

Perl continues to flourish into its fourth decade thanks to a vibrant
community of users and developers. The following people are known to have
contributed the improvements that became Perl 5.32.0:

Aaron Crane, Alberto Simões, Alexandr Savca, Andreas König, Andrew Fresh,
Andy Dougherty, Ask Bjørn Hansen, Atsushi Sugawara, Bernhard M. Wiedemann,
brian d foy, Bryan Stenson, Chad Granum, Chase Whitener, Chris 'BinGOs'
Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Book, Daniel
Dragan, Dan Kogai, Dave Cross, Dave Rolsky, David Cantrell, David Mitchell,
Dominic Hargreaves, E. Choroba, Felipe Gasper, Florian Weimer, Graham Knop,
Håkon Hægland, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose
Shogo, James E Keenan, Jason McIntosh, Jerome Duval, Johan Vromans, John
Lightsey, John Paul Adrian Glaubitz, Kang-min Liu, Karen Etheridge, Karl
Williamson, Leon Timmermans, Manuel Mausz, Marc Green, Matthew Horsfall,
Matt Turner, Max Maischein, Michael Haardt, Nicholas Clark, Nicolas R., Niko
Tyni, Pali, Paul Evans, Paul Johnson, Paul Marquess, Peter Eisentraut, Peter
John Acklam, Peter Oliver, Petr Písař, Renee Baecker, Ricardo Signes,
Richard Leach, Russ Allbery, Samuel Smith, Santtu Ojanperä, Sawyer X,
Sergey Aleynikov, Sergiy Borodych, Shirakata Kentaro, Shlomi Fish, Sisyphus,
Slaven Rezic, Smylers, Stefan Seifert, Steve Hay, Steve Peters, Svyatoslav,
Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tony Cook,
Unicode Consortium, VanL, Vickenty Fesunov, Vitali Peil, Yves Orton, Zefram.

The list above is almost certainly incomplete as it is automatically
generated from version control history. In particular, it does not include
the names of the (very much appreciated) contributors who reported issues to
the Perl bug tracker.

Many of the changes included in this version originated in the CPAN modules
included in Perl's core. We're grateful to the entire CPAN community for
helping Perl to flourish.

For a more complete list of all of Perl's historical contributors, please
see the F<AUTHORS> file in the Perl source distribution.

=head1 Reporting Bugs

If you find what you think is a bug, you might check the perl bug database
at L<https://github.com/Perl/perl5/issues>. There may also be information at
L<http://www.perl.org/>, the Perl Home Page.

If you believe you have an unreported bug, please open an issue at
L<https://github.com/Perl/perl5/issues>. Be sure to trim your bug down to a
tiny but sufficient test case.

If the bug you are reporting has security implications which make it
inappropriate to send to a public issue tracker, then see
L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
for details of how to report the issue.

=head1 Give Thanks

If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
you can do so by running the C<perlthanks> program:

    perlthanks

This will send an email to the Perl 5 Porters list with your show of thanks.

=head1 SEE ALSO

The F<Changes> file for an explanation of how to view exhaustive details on
what changed.

The F<INSTALL> file for how to build Perl.

The F<README> file for general stuff.

The F<Artistic> and F<Copying> files for copyright information.

=cut