5 perl5313delta - what is new for perl v5.31.3
9 This document describes differences between the 5.31.2 release and the 5.31.3
12 If you are upgrading from an earlier release such as 5.31.1, first read
13 L<perl5312delta>, which describes differences between 5.31.1 and 5.31.2.
15 =head1 Incompatible Changes
17 =head2 Plain "0" string now treated as a number for range operator
19 Previously a range C< "0" .. "-1" > would produce a range of numeric
20 strings from "0" through "99", this now produces an empty list, just
23 This was due to a special case that treated strings starting with "0"
24 as strings so ranges like C< "00" .. "03" > produced C< "00", "01",
25 "02", "03" >, but didn't specially handle the string C<"0">.
29 =head2 C<\K> now disallowed in look-ahead and look-behind assertions
31 This was disallowed because it causes unexpected behaviour, and no-one
32 could define what the desired behaviour was.
36 =head1 Modules and Pragmata
38 =head2 Updated Modules and Pragmata
44 L<Compress::Raw::Bzip2> has been upgraded from version 2.086 to 2.087.
48 L<Compress::Raw::Zlib> has been upgraded from version 2.086 to 2.087.
52 L<Devel::PPPort> has been upgraded from version 3.54 to 3.55.
54 The test files generated on Win32 are now identical to when they are
55 generated on POSIX-like systems.
59 L<File::Find> has been upgraded from version 1.36 to 1.37.
61 On Win32, the tests no longer require either a file in the drive root
62 directory, or a writable root directory.
66 L<Getopt::Long> has been upgraded from version 2.50 to 2.51.
70 L<I18N::LangTags> has been upgraded from version 1.07 to 1.08.
72 Document the C<IGNORE_WIN32_LOCALE> environment variable.
76 L<IO::Compress> has been upgraded from version 2.086 to 2.087.
80 L<Module::CoreList> has been upgraded from version 5.20190720 to 5.20190820.
84 L<PerlIO::via> has been upgraded from version 0.17 to 0.18.
88 L<Storable> has been upgraded from version 3.16 to 3.17.
92 L<Test::Simple> has been upgraded from version 1.302164 to 1.302166.
96 L<Thread> has been upgraded from version 3.04 to 3.05.
100 L<Time::HiRes> has been upgraded from version 1.9761 to 1.9762.
102 Removed obsolete code such as support for pre-5.6 perl and classic
103 MacOS. [perl #134288]
107 L<Win32> has been upgraded from version 0.52 to 0.53.
111 L<XS::APItest> has been upgraded from version 1.01 to 1.02.
115 =head1 Platform Support
117 =head2 Platform-Specific Notes
123 F<t/op/magic.t> could fail if environment varables starting with
124 C<FOO> already existed.
128 =head1 Internal Changes
134 A new parser function L<parse_subsignature()|perlapi/parse_subsignature>
135 allows a keyword plugin to parse a subroutine signature while C<use feature
136 'signatures'> is in effect. This allows custom keywords to implement
137 semantics similar to regular C<sub> declarations that include signatures.
142 Since on some platforms we need to hold a mutex when temporarily
143 switching locales, new macros (C<STORE_LC_NUMERIC_SET_TO_NEEDED_IN>,
144 C<WITH_LC_NUMERIC_SET_TO_NEEDED> and C<WITH_LC_NUMERIC_SET_TO_NEEDED_IN>)
145 have been added to make it easier to do this safely and efficiently
146 as part of [perl #134172].
150 The memory bookkeeping overhead for allocating an OP structure has been
151 reduced by 8 bytes per OP on 64-bit systems.
155 =head1 Selected Bug Fixes
161 C<< $@ = 100; die; >> now correctly propagates the 100 as an exception
162 instead of ignoring it. [perl #134291]
166 C<< 0 0x@ >> no longer asserts in S_no_op(). [perl #134310]
170 Exceptions thrown while C<$@> is read-only could result in infinite
171 recursion as perl tried to update C<$@>, which throws another
172 exception, resulting in a stack overflow. Perl now replaces C<$@>
173 with a copy if it's not a simple writable SV. [perl #134266]
177 =head1 Acknowledgements
179 Perl 5.31.3 represents approximately 4 weeks of development since Perl
180 5.31.2 and contains approximately 9,900 lines of changes across 230 files
183 Excluding auto-generated files, documentation and release tools, there were
184 approximately 2,800 lines of changes to 160 .pm, .t, .c and .h files.
186 Perl continues to flourish into its fourth decade thanks to a vibrant
187 community of users and developers. The following people are known to have
188 contributed the improvements that became Perl 5.31.3:
190 Alexandr Savca, Andrew Fresh, Chad Granum, Chris 'BinGOs' Williams, Dagfinn
191 Ilmari Mannsåker, Dan Book, David Cantrell, David Mitchell, E. Choroba,
192 Graham Knop, Hauke D, H.Merijn Brand, Hugo van der Sanden, James E Keenan,
193 Johan Vromans, Karen Etheridge, Karl Williamson, Paul Evans, Sawyer X, Steve
194 Hay, Tomasz Konojacki, Tom Hukins, Tony Cook.
196 The list above is almost certainly incomplete as it is automatically
197 generated from version control history. In particular, it does not include
198 the names of the (very much appreciated) contributors who reported issues to
199 the Perl bug tracker.
201 Many of the changes included in this version originated in the CPAN modules
202 included in Perl's core. We're grateful to the entire CPAN community for
203 helping Perl to flourish.
205 For a more complete list of all of Perl's historical contributors, please
206 see the F<AUTHORS> file in the Perl source distribution.
208 =head1 Reporting Bugs
210 If you find what you think is a bug, you might check the perl bug database
211 at L<https://rt.perl.org/>. There may also be information at
212 L<http://www.perl.org/>, the Perl Home Page.
214 If you believe you have an unreported bug, please run the L<perlbug> program
215 included with your release. Be sure to trim your bug down to a tiny but
216 sufficient test case. Your bug report, along with the output of C<perl -V>,
217 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
219 If the bug you are reporting has security implications which make it
220 inappropriate to send to a publicly archived mailing list, then see
221 L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
222 for details of how to report the issue.
226 If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
227 you can do so by running the C<perlthanks> program:
231 This will send an email to the Perl 5 Porters list with your show of thanks.
235 The F<Changes> file for an explanation of how to view exhaustive details on
238 The F<INSTALL> file for how to build Perl.
240 The F<README> file for general stuff.
242 The F<Artistic> and F<Copying> files for copyright information.