5 perldelta - what is new for perl v5.31.2
9 This document describes differences between the 5.31.1 release and the 5.31.2
12 If you are upgrading from an earlier release such as 5.31.0, first read
13 L<perl5311delta>, which describes differences between 5.31.0 and 5.31.1.
15 =head1 Modules and Pragmata
17 =head2 Updated Modules and Pragmata
23 L<Devel::PPPort> has been upgraded from version 3.53 to 3.54.
27 L<Exporter> has been upgraded from version 5.73 to 5.74.
31 L<IPC::Cmd> has been upgraded from version 1.02 to 1.04.
35 L<JSON::PP> has been upgraded from version 4.02 to 4.04.
39 L<Module::CoreList> has been upgraded from version 5.20190620 to 5.20190720.
43 L<Opcode> has been upgraded from version 1.43 to 1.44.
47 L<PerlIO::encoding> has been upgraded from version 0.27 to 0.28.
51 L<Pod::Simple> has been upgraded from version 3.38 to 3.39.
55 L<threads::shared> has been upgraded from version 1.60 to 1.61.
61 =head2 New Diagnostics
69 C<L<No digits found for %s literal|perldiag/"No digits found for %s literal">>
71 (F) No hexadecimal digits were found following C<0x> or no binary digits were
72 found following C<0b>.
76 =head2 Changes to Existing Diagnostics
82 C<\N{} here is restricted to one character> is now emitted in the same
83 circumstances where previously C<\N{} in inverted character class or as
84 a range end-point is restricted to one character> was.
86 This is due to new circumstances having been added in perl v5.30 that
87 weren't covered by the earlier wording.
91 =head1 Configuration and Compilation
97 The C<ECHO> macro is now defined. This is used in a C<dtrace> rule
98 that was originally changed for FreeBSD, and the FreeBSD make
99 apparently predefines it. The Solaris make does not predefine C<ECHO>
100 which broke this rule on Solaris. [perl #134218]
104 Bison versions 3.1 through 3.4 are now supported.
108 =head1 Platform Support
110 =head2 Platform-Specific Notes
116 C<cc> will be used to populate C<plibpth> if C<cc> is C<clang>. [perl
121 C<-Duse64bitint> is now the default on VMS.
125 =head1 Internal Changes
131 The PERL_DESTRUCT_LEVEL environment variable was formerly only honored on
132 perl binaries built with DEBUGGING support. It is now checked on all perl
133 builds. Its normal use is to force perl to individually free every block
134 of memory which it has allocated before exiting, which is useful when
135 using automated leak detection tools such as valgrind.
139 The API eval_sv() now accepts a C<G_RETHROW> flag. If this flag is
140 set and an exception is thrown while compiling or executing the
141 supplied code, it will be rethrown, and eval_sv() will not return.
146 As part of the fix for [perl #2754] perl_parse() now returns non-zero
147 if exit(0) is called in a C<BEGIN>, C<UNITCHECK> or C<CHECK> block.
151 Most functions which recursively walked an op tree during compilation have been
152 made non-recursive. This avoids SEGVs from stack overflow when the op tree is
153 deeply nested, such as C<$n == 1 ? "one" : $n == 2 ? "two" : ....> (especially
154 in code which is auto-generated).
156 This is particularly noticeable where the code is compiled within a separate
157 thread, as threads tend to have small stacks by default.
161 =head1 Selected Bug Fixes
167 Parsing incomplete hex or binary literals was changed in 5.31.1 to
168 treat such a literal as just the 0, leaving the following C<x> or C<b>
169 to be parsed as part of the next token. This could lead to some
170 silent changes in behaviour, so now incomplete hex or binary literals
171 produce a fatal error. [perl #134125]
175 eval_pv()'s I<croak_on_error> flag will now throw even if the
176 exception is a false overloaded value. [perl #134177]
180 C<INIT> blocks and the program itself are no longer run if exit(0) is
181 called within a C<BEGIN>, C<UNITCHECK> or C<CHECK> block. [perl
186 C<<< open my $fh, ">>+", undef >>> now opens the temporary file in
187 append mode - writes will seek to the end of file before writing.
192 Fixed a SEGV when searching for the source of an uninitialized value warning on
193 an op whose subtree includes an OP_MULTIDEREF.
198 =head1 Known Problems
204 The VC++ 6.0 build on Windows is currently broken. Support for this compiler
205 is likely to be removed in the near future.
209 Tests 9-11 in F<t/op/blocks.t> currently fail on Windows.
214 =head1 Acknowledgements
216 XXX Generate this with:
218 perl Porting/acknowledgements.pl v5.31.1..HEAD
220 =head1 Reporting Bugs
222 If you find what you think is a bug, you might check the perl bug database
223 at L<https://rt.perl.org/>. There may also be information at
224 L<http://www.perl.org/>, the Perl Home Page.
226 If you believe you have an unreported bug, please run the L<perlbug> program
227 included with your release. Be sure to trim your bug down to a tiny but
228 sufficient test case. Your bug report, along with the output of C<perl -V>,
229 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
231 If the bug you are reporting has security implications which make it
232 inappropriate to send to a publicly archived mailing list, then see
233 L<perlsec/SECURITY VULNERABILITY CONTACT INFORMATION>
234 for details of how to report the issue.
238 If you wish to thank the Perl 5 Porters for the work we had done in Perl 5,
239 you can do so by running the C<perlthanks> program:
243 This will send an email to the Perl 5 Porters list with your show of thanks.
247 The F<Changes> file for an explanation of how to view exhaustive details on
250 The F<INSTALL> file for how to build Perl.
252 The F<README> file for general stuff.
254 The F<Artistic> and F<Copying> files for copyright information.