This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: fix my bad pod
[perl5.git] / pod / perldelta.pod
CommitLineData
44691e6f
AB
1=encoding utf8
2
3=head1 NAME
4
13900f93 5perldelta - what is new for perl v5.21.3
c68523cb 6
238894db 7=head1 DESCRIPTION
c68523cb 8
13900f93 9This document describes differences between the 5.21.2 release and the 5.21.3
238894db 10release.
c68523cb 11
13900f93
A
12If you are upgrading from an earlier release such as 5.21.1, first read
13L<perl5212delta>, which describes differences between 5.21.1 and 5.21.2.
14
7065301c
RS
15=head1 Core Enhancements
16
d1f01a63 17=head2 C<defined(@array = LIST)> is no longer fatal
7e957246 18
d1f01a63
PM
19In 5.21.1, C<defined(@array)> was made fatal. This has been relaxed
20to not die if the argument is assigning to an array.
7e957246 21
f88f10f5
PM
22=head2 Floating point handling and parsing has been improved
23
24A number of area in the core that handle the parsing and printing
25of floating point values have been improved.
26
0346c3a9 27=head1 Security
7e957246 28
6ab3666b 29=head2 The L<Safe> module could allow outside packages to be replaced
13900f93 30
6ab3666b
PM
31Critical bugfix: outside packages could be replaced. L<Safe> has
32been patched to 2.38 to address this.
8bdb3f93 33
13900f93 34=head1 Incompatible Changes
8bdb3f93 35
1178d2cf
DIM
36=head2 S<C<use UNIVERSAL '...'>> is now a fatal error
37
38Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and
39is now a fatal error. S<C<"use UNIVERSAL">> without any arguments is still
40allowed.
41
7ef8b31d 42=head1 Modules and Pragmata
f6f3144e 43
13900f93 44=head2 Updated Modules and Pragmata
7065301c 45
13900f93 46=over 4
7065301c 47
aac7f82f
A
48=item *
49
f88f10f5 50L<B::Debug> has been upgraded from version 1.19 to 1.21.
b3e82ed1
PM
51
52=item *
53
ca58223b
PM
54L<Config::Perl::V> has been upgraded from version 0.20 to 0.22.
55
56=item *
57
23b03637
PM
58L<CPAN::Meta> has been upgraded from version 2.141520 to 2.142060.
59
60=item *
61
85e8fb10
PM
62L<CPAN::Meta::Requirements> has been upgraded from version 2.125 to 2.126.
63
64=item *
65
7d19f6a1
PM
66L<ExtUtils::Manifest> has been upgraded from version 1.64 to 1.65.
67
7d19f6a1
PM
68=item *
69
55e8b286
PM
70L<HTTP::Tiny> has been upgraded from version 0.043 to 0.047.
71
72=item *
73
796f59e8 74L<perl5db.pl> has been upgraded from version 1.45 to 1.46.
f7df1a8c 75
0bb39c26
TC
76=item *
77
78L<POSIX> has been upgraded from version 1.41 to 1.42.
79
9c97a342
PM
80=item *
81
6ab3666b
PM
82L<Safe> has been upgraded from version 2.37 to 2.38.
83
6ab3666b
PM
84=item *
85
9c97a342
PM
86L<Socket> has been upgraded from version 2.014 to 2.015.
87
13900f93 88=back
aac7f82f 89
13900f93 90=head1 Documentation
aac7f82f 91
13900f93 92=head2 Changes to Existing Documentation
6d9b7c7c 93
2a395b86
PM
94=head3 L<perlexperiment>
95
96=over 4
97
98=item *
99
100Added reference to L<feature>.
101
102=back
103
104=head3 L<perlguts>
105
106=over 4
107
108=item *
109
110Details on C level symbols and libperl.t added.
111
112=back
113
114=head3 L<perlhacktips>
115
116=over 4
117
118=item *
119
120Recommended replacements for tmpfile, atoi, strtol, and strtoul added.
d77056b9 121
2a395b86
PM
122=back
123
124=head3 L<perlop>
125
126=over 4
127
128=item *
129
130ASCII v. EBCDIC clarifications added.
131
132=back
133
134=head3 L<perlsec>
135
136=over 4
137
138=item *
139
140Comments added on algorithmic complexity and tied hashes.
141
142=back
6d9b7c7c 143
2a395b86 144=head3 L<perlvms>
7f55cec0 145
13900f93 146=over 4
7f55cec0
SH
147
148=item *
149
2a395b86 150Updated documentation on environment and shell interaction in VMS.
aac7f82f 151
13900f93 152=back
aac7f82f 153
13900f93 154=head1 Diagnostics
091fed7c 155
13900f93
A
156The following additions or changes have been made to diagnostic output,
157including warnings and fatal error messages. For the complete list of
158diagnostic messages, see L<perldiag>.
902c1f75 159
13900f93 160=head2 New Diagnostics
2901561d 161
13900f93 162=head3 New Errors
4594cf53 163
13900f93 164=over 4
96dcbc37
DD
165
166=item *
167
a1d26ccd
PM
168L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
169
170(F) Something went horribly bad in hexadecimal float handling.
171
172=item *
173
174L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
175
176(F) You have configured Perl to use long doubles but
177the internals of the long double format are unknown,
178therefore the hexadecimal float output is impossible.
7065301c 179
13900f93 180=back
58f25ac1 181
13900f93
A
182=head3 New Warnings
183
184=over 4
58f25ac1
MH
185
186=item *
187
a5873648
PM
188L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
189
190(W overflow) The hexadecimal floating point has larger exponent
191than the floating point supports.
192
193=item *
194
195L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
196
197(W overflow) The hexadecimal floating point has smaller exponent
198than the floating point supports.
199
200=item *
201
a5873648
PM
202L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
203
204(W overflow) The hexadecimal floating point literal had more bits in
205the mantissa (the part between the 0x and the exponent, also known as
206the fraction or the significand) than the floating point supports.
207
208=item *
209
210L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
211
212(W overflow) The hexadecimal floating point had internally more
213digits than could be output. This can be caused by unsupported
214long double formats, or by 64-bit integers not being available
215(needed to retrieve the digits under some configurations).
216
58f25ac1
MH
217=back
218
13900f93 219=head2 Changes to Existing Diagnostics
12042f24 220
b10906fb
MH
221=over 4
222
223=item *
224
d77056b9 225C<require> with no argument or undef used to warn about a Null filename; now
258ced86 226it dies with C<Missing or undefined argument to require>.
b10906fb
MH
227
228=back
229
13900f93
A
230=head1 Configuration and Compilation
231
7065301c 232=over 4
24a38d90
RS
233
234=item *
235
bb076206
PM
236MurmurHash64A and MurmurHash64B can now be configured as the internal hash
237function.
238
7065301c
RS
239=back
240
13900f93 241=head1 Platform Support
097675bf 242
6e97d65d 243=head2 Platform-Specific Notes
b3211734 244
6e97d65d 245=over 4
b3211734 246
6e97d65d 247=item Android
7065301c 248
6e97d65d
PM
249Build support has been improved for cross-compiling in general and for
250Android in particular.
13900f93 251
6e97d65d 252=item Solaris
7d0ccdba 253
6e97d65d
PM
254C<c99> options have been cleaned up, hints look for C<solstudio>
255as well as C<SUNWspro>, and support for native C<setenv> has been added.
7d0ccdba 256
6e97d65d
PM
257=item VMS
258
259C<finite>, C<finitel>, and C<isfinite> detection has been added to
260C<configure.com>, environment handling has had some minor changes, and
261a fix for legacy feature checking status.
262
263=item Windows
264
265C<%I64d> is now being used instead of C<%lld> for MinGW.
7d0ccdba 266
7065301c
RS
267=back
268
269=head1 Internal Changes
270
13900f93 271=over 4
c9fcb674 272
a835cd47
KW
273=item *
274
d8bcb4d6
KW
275Added L<perlapi/sync_locale>.
276Changing the program's locale should be avoided by XS code. Nevertheless,
277certain non-Perl libraries called from XS, such as C<Gtk> do so. When this
278happens, Perl needs to be told that the locale has changed. Use this function
279to do so, before returning to Perl.
c1284011 280
1c43698b
PM
281=item *
282
283Added L<perlapi/grok_atou> as a safer replacement for atoi and strtol.
284
6d9b7c7c 285=back
c1284011 286
6d9b7c7c 287=head1 Selected Bug Fixes
375f5f06 288
0346c3a9 289=over 4
375f5f06 290
2884baee
MH
291=item *
292
0dd816ae
TC
293Failing to compile C<use Foo> in an eval could leave a spurious
294C<BEGIN> subroutine definition, which would produce a "Subroutine
295BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
296block. [perl #122107]
2884baee 297
b756670b
FC
298=item *
299
300C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
301begin with an opening brace. [perl #46947]
302
e917e94e
PM
303=item *
304
305External libraries and Perl may have different ideas of what the locale is.
306This is problematic when parsing version strings if the locale's numeric
307separator has been changed. Version parsing has been patched to ensure
308it handles the locales correctly. [perl #121930]
309
26dd5fd6
PM
310=item *
311
312A bug has been fixed where zero-length assertions and code blocks inside of a
d77056b9 313regex could cause C<pos> to see an incorrect value. [perl #122460]
26dd5fd6 314
13900f93
A
315=back
316
13900f93 317=head1 Acknowledgements
e831f11a 318
13900f93 319XXX Generate this with:
e831f11a 320
13900f93 321 perl Porting/acknowledgements.pl v5.21.2..HEAD
f5b73711 322
44691e6f
AB
323=head1 Reporting Bugs
324
e08634c5
SH
325If you find what you think is a bug, you might check the articles recently
326posted to the comp.lang.perl.misc newsgroup and the perl bug database at
238894db 327https://rt.perl.org/ . There may also be information at
7ef8b31d 328http://www.perl.org/ , the Perl Home Page.
44691e6f 329
e08634c5
SH
330If you believe you have an unreported bug, please run the L<perlbug> program
331included with your release. Be sure to trim your bug down to a tiny but
332sufficient test case. Your bug report, along with the output of C<perl -V>,
333will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
44691e6f
AB
334
335If the bug you are reporting has security implications, which make it
e08634c5
SH
336inappropriate to send to a publicly archived mailing list, then please send it
337to perl5-security-report@perl.org. This points to a closed subscription
338unarchived mailing list, which includes all the core committers, who will be
339able to help assess the impact of issues, figure out a resolution, and help
f9001595 340co-ordinate the release of patches to mitigate or fix the problem across all
e08634c5
SH
341platforms on which Perl is supported. Please only use this address for
342security issues in the Perl core, not for modules independently distributed on
343CPAN.
44691e6f
AB
344
345=head1 SEE ALSO
346
e08634c5
SH
347The F<Changes> file for an explanation of how to view exhaustive details on
348what changed.
44691e6f
AB
349
350The F<INSTALL> file for how to build Perl.
351
352The F<README> file for general stuff.
353
354The F<Artistic> and F<Copying> files for copyright information.
355
356=cut