This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tick off 5.31.3
[perl5.git] / pod / perldelta.pod
CommitLineData
44691e6f
AB
1=encoding utf8
2
3=head1 NAME
4
9064626f 5perldelta - what is new for perl v5.31.3
d407e309 6
862f380b 7=head1 DESCRIPTION
261e14b0 8
9064626f 9This document describes differences between the 5.31.2 release and the 5.31.3
862f380b 10release.
261e14b0 11
9064626f
SH
12If you are upgrading from an earlier release such as 5.31.1, first read
13L<perl5312delta>, which describes differences between 5.31.1 and 5.31.2.
8424e368 14
9064626f
SH
15=head1 Incompatible Changes
16
e6132dc0
TC
17=head2 Plain "0" string now treated as a number for range operator
18
19Previously a range C< "0" .. "-1" > would produce a range of numeric
20strings from "0" through "99", this now produces an empty list, just
21as C< 0 .. -1 > does.
22
23This was due to a special case that treated strings starting with "0"
24as strings so ranges like C< "00" .. "03" > produced C< "00", "01",
25"02", "03" >, but didn't specially handle the string C<"0">.
26
27[perl #133695]
28
befef368
TC
29=head2 C<\K> now disallowed in look-ahead and look-behind assertions
30
31This was disallowed because it causes unexpected behaviour, and no-one
32could define what the desired behaviour was.
33
34[perl #124256]
35
9064626f 36=head1 Modules and Pragmata
a0348300 37
9064626f
SH
38=head2 Updated Modules and Pragmata
39
40=over 4
a0348300 41
9c600b76 42=item *
a0348300 43
be2eb09e
TH
44L<Compress::Raw::Bzip2> has been upgraded from version 2.086 to 2.087.
45
46=item *
47
48L<Compress::Raw::Zlib> has been upgraded from version 2.086 to 2.087.
49
50=item *
51
03b7d279
TC
52L<Devel::PPPort> has been upgraded from version 3.54 to 3.55.
53
54The test files generated on Win32 are now identical to when they are
55generated on POSIX-like systems.
56
57=item *
58
59L<File::Find> has been upgraded from version 1.36 to 1.37.
60
61On Win32, the tests no longer require either a file in the drive root
62directory, or a writable root directory.
63
64=item *
65
be2eb09e 66L<Getopt::Long> has been upgraded from version 2.50 to 2.51.
36bb8f68
JK
67
68=item *
69
be2eb09e
TH
70L<I18N::LangTags> has been upgraded from version 1.07 to 1.08.
71
72Document the C<IGNORE_WIN32_LOCALE> environment variable.
73
74=item *
75
76L<IO::Compress> has been upgraded from version 2.086 to 2.087.
77
78=item *
79
80L<Module::CoreList> has been upgraded from version 5.20190720 to 5.20190820.
81
82=item *
83
84L<PerlIO::via> has been upgraded from version 0.17 to 0.18.
85
86=item *
87
88L<Storable> has been upgraded from version 3.16 to 3.17.
89
90=item *
91
92L<Test::Simple> has been upgraded from version 1.302164 to 1.302166.
93
94=item *
95
96L<Thread> has been upgraded from version 3.04 to 3.05.
8639f158
JK
97
98=item *
99
029f24d3 100L<Time::HiRes> has been upgraded from version 1.9761 to 1.9762.
f0f66070
TC
101
102Removed obsolete code such as support for pre-5.6 perl and classic
103MacOS. [perl #134288]
104
105=item *
106
be2eb09e 107L<Win32> has been upgraded from version 0.52 to 0.53.
a4635286
KW
108
109=item *
110
be2eb09e 111L<XS::APItest> has been upgraded from version 1.01 to 1.02.
589e04a1 112
8424e368
S
113=back
114
dad02c36 115=head1 Platform Support
8424e368 116
9064626f 117=head2 Platform-Specific Notes
ed0cf058 118
9064626f 119=over 4
f7faf2ad 120
efb1f9ac 121=item Windows
f7faf2ad 122
efb1f9ac
TC
123F<t/op/magic.t> could fail if environment varables starting with
124C<FOO> already existed.
f7faf2ad 125
4ec3954c
TC
126=back
127
9064626f 128=head1 Internal Changes
4ec3954c 129
9064626f 130=over 4
5b2f1ba6 131
b870557c
TC
132=item *
133
996b0cb8
PLE
134A new parser function L<parse_subsignature()|perlapi/parse_subsignature>
135allows a keyword plugin to parse a subroutine signature while C<use feature
136'signatures'> is in effect. This allows custom keywords to implement
137semantics similar to regular C<sub> declarations that include signatures.
138[perl #132474]
b870557c 139
061637ca
HS
140=item *
141
142Since on some platforms we need to hold a mutex when temporarily
143switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>,
144C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>)
145have been added to make it easier to do this safely and efficiently
146as part of [perl #134172].
147
285db695
DM
148=item *
149
150The memory bookkeeping overhead for allocating an OP structure has been
151reduced by 8 bytes per OP on 64-bit systems.
152
9064626f 153=back
ed0cf058 154
9064626f 155=head1 Selected Bug Fixes
ed0cf058 156
9064626f 157=over 4
973ae088 158
f7faf2ad
SH
159=item *
160
052ce2b8
TC
161C<< $@ = 100; die; >> now correctly propagates the 100 as an exception
162instead of ignoring it. [perl #134291]
f7faf2ad 163
a3c77565
TC
164=item *
165
166C<< 0 0x@ >> no longer asserts in S_no_op(). [perl #134310]
167
6e23836a
TC
168=item *
169
170Exceptions thrown while C<$@> is read-only could result in infinite
171recursion as perl tried to update C<$@>, which throws another
172exception, resulting in a stack overflow. Perl now replaces C<$@>
173with a copy if it's not a simple writable SV. [perl #134266]
174
dad02c36 175=back
5b2f1ba6 176
9064626f 177=head1 Acknowledgements
a01eaaa1 178
bd833cba
TH
179Perl 5.31.3 represents approximately 4 weeks of development since Perl
1805.31.2 and contains approximately 9,900 lines of changes across 230 files
181from 23 authors.
182
183Excluding auto-generated files, documentation and release tools, there were
184approximately 2,800 lines of changes to 160 .pm, .t, .c and .h files.
185
186Perl continues to flourish into its fourth decade thanks to a vibrant
187community of users and developers. The following people are known to have
188contributed the improvements that became Perl 5.31.3:
189
190Alexandr Savca, Andrew Fresh, Chad Granum, Chris 'BinGOs' Williams, Dagfinn
191Ilmari Mannsåker, Dan Book, David Cantrell, David Mitchell, E. Choroba,
192Graham Knop, Hauke D, H.Merijn Brand, Hugo van der Sanden, James E Keenan,
193Johan Vromans, Karen Etheridge, Karl Williamson, Paul Evans, Sawyer X, Steve
194Hay, Tomasz Konojacki, Tom Hukins, Tony Cook.
195
196The list above is almost certainly incomplete as it is automatically
197generated from version control history. In particular, it does not include
198the names of the (very much appreciated) contributors who reported issues to
199the Perl bug tracker.
200
201Many of the changes included in this version originated in the CPAN modules
202included in Perl's core. We're grateful to the entire CPAN community for
203helping Perl to flourish.
204
205For a more complete list of all of Perl's historical contributors, please
206see the F<AUTHORS> file in the Perl source distribution.
8424e368 207
44691e6f
AB
208=head1 Reporting Bugs
209
9064626f
SH
210If you find what you think is a bug, you might check the perl bug database
211at L<https://rt.perl.org/>. There may also be information at
15f62f05 212L<http://www.perl.org/>, the Perl Home Page.
44691e6f 213
e08634c5
SH
214If you believe you have an unreported bug, please run the L<perlbug> program
215included with your release. Be sure to trim your bug down to a tiny but
216sufficient test case. Your bug report, along with the output of C<perl -V>,
0e18d1c4 217will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
44691e6f 218
87c118b9
DM
219If the bug you are reporting has security implications which make it
220inappropriate to send to a publicly archived mailing list, then see
9064626f
SH
221L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
222for details of how to report the issue.
44691e6f 223
390ae6f9
S
224=head1 Give Thanks
225
9064626f
SH
226If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
227you can do so by running the C<perlthanks> program:
390ae6f9
S
228
229 perlthanks
230
231This will send an email to the Perl 5 Porters list with your show of thanks.
232
44691e6f
AB
233=head1 SEE ALSO
234
e08634c5
SH
235The F<Changes> file for an explanation of how to view exhaustive details on
236what changed.
44691e6f
AB
237
238The F<INSTALL> file for how to build Perl.
239
240The F<README> file for general stuff.
241
242The F<Artistic> and F<Copying> files for copyright information.
243
244=cut