Commit | Line | Data |
---|---|---|
44691e6f AB |
1 | =encoding utf8 |
2 | ||
3 | =head1 NAME | |
4 | ||
13900f93 | 5 | perldelta - what is new for perl v5.21.3 |
c68523cb | 6 | |
238894db | 7 | =head1 DESCRIPTION |
c68523cb | 8 | |
13900f93 | 9 | This document describes differences between the 5.21.2 release and the 5.21.3 |
238894db | 10 | release. |
c68523cb | 11 | |
13900f93 A |
12 | If you are upgrading from an earlier release such as 5.21.1, first read |
13 | L<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 |
19 | In 5.21.1, C<defined(@array)> was made fatal. This has been relaxed |
20 | to not die if the argument is assigning to an array. | |
7e957246 | 21 | |
29a15389 | 22 | =head2 Floating point parsing has been improved |
f88f10f5 | 23 | |
21f3b41e | 24 | Parsing and printing of floating point values has been improved. |
21f3b41e JH |
25 | |
26 | As a completely new feature, hexadecimal floating point literals | |
27 | (like 0x1.23p-4) are now supported, and they can be output with | |
28 | C<printf %a>. | |
f88f10f5 | 29 | |
0346c3a9 | 30 | =head1 Security |
7e957246 | 31 | |
6ab3666b | 32 | =head2 The L<Safe> module could allow outside packages to be replaced |
13900f93 | 33 | |
6ab3666b PM |
34 | Critical bugfix: outside packages could be replaced. L<Safe> has |
35 | been patched to 2.38 to address this. | |
8bdb3f93 | 36 | |
13900f93 | 37 | =head1 Incompatible Changes |
8bdb3f93 | 38 | |
1178d2cf DIM |
39 | =head2 S<C<use UNIVERSAL '...'>> is now a fatal error |
40 | ||
41 | Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and | |
42 | is now a fatal error. S<C<"use UNIVERSAL">> without any arguments is still | |
43 | allowed. | |
44 | ||
7ef8b31d | 45 | =head1 Modules and Pragmata |
f6f3144e | 46 | |
13900f93 | 47 | =head2 Updated Modules and Pragmata |
7065301c | 48 | |
13900f93 | 49 | =over 4 |
7065301c | 50 | |
aac7f82f A |
51 | =item * |
52 | ||
f88f10f5 | 53 | L<B::Debug> has been upgraded from version 1.19 to 1.21. |
b3e82ed1 PM |
54 | |
55 | =item * | |
56 | ||
ca58223b PM |
57 | L<Config::Perl::V> has been upgraded from version 0.20 to 0.22. |
58 | ||
59 | =item * | |
60 | ||
23b03637 PM |
61 | L<CPAN::Meta> has been upgraded from version 2.141520 to 2.142060. |
62 | ||
63 | =item * | |
64 | ||
85e8fb10 PM |
65 | L<CPAN::Meta::Requirements> has been upgraded from version 2.125 to 2.126. |
66 | ||
67 | =item * | |
68 | ||
134f90c2 PM |
69 | L<ExtUtils::CBuilder> was moved from F<dist> to F<cpan>. |
70 | ||
71 | =item * | |
72 | ||
ff433f2d PM |
73 | L<ExtUtils::CBuilder> has been upgraded from version 0.280216 to 0.280217. |
74 | ||
75 | =item * | |
76 | ||
134f90c2 PM |
77 | L<ExtUtils::Install> was moved from F<dist> to F<cpan>. |
78 | ||
79 | =item * | |
80 | ||
7d19f6a1 | 81 | L<ExtUtils::Manifest> has been upgraded from version 1.64 to 1.65. |
134f90c2 | 82 | It was also moved from F<dist> to F<cpan>. |
7d19f6a1 | 83 | |
7d19f6a1 PM |
84 | =item * |
85 | ||
55e8b286 PM |
86 | L<HTTP::Tiny> has been upgraded from version 0.043 to 0.047. |
87 | ||
88 | =item * | |
89 | ||
d99849ae PM |
90 | L<IPC::Open3> has been upgraded from version 1.17 to 1.18. |
91 | ||
92 | =item * | |
93 | ||
ff433f2d PM |
94 | L<Module::CoreList> has been upgraded from version 5.021002 to 5.021003. |
95 | ||
96 | =item * | |
97 | ||
98 | L<Opcode> has been upgraded from version 1.27 to 1.28. | |
99 | ||
100 | =item * | |
101 | ||
796f59e8 | 102 | L<perl5db.pl> has been upgraded from version 1.45 to 1.46. |
f7df1a8c | 103 | |
0bb39c26 TC |
104 | =item * |
105 | ||
ff433f2d | 106 | L<perlfaq> has been upgraded from version 5.0150044 to 5.0150045. |
0bb39c26 | 107 | |
9c97a342 PM |
108 | =item * |
109 | ||
ff433f2d | 110 | L<POSIX> has been upgraded from version 1.41 to 1.42. |
d99849ae PM |
111 | |
112 | =item * | |
113 | ||
6ab3666b PM |
114 | L<Safe> has been upgraded from version 2.37 to 2.38. |
115 | ||
6ab3666b PM |
116 | =item * |
117 | ||
9c97a342 PM |
118 | L<Socket> has been upgraded from version 2.014 to 2.015. |
119 | ||
d99849ae PM |
120 | =item * |
121 | ||
122 | L<Sys::Hostname> has been upgraded from version 1.18 to 1.19 | |
123 | ||
ff433f2d PM |
124 | =item * |
125 | ||
126 | L<UNIVERSAL> has been upgraded from version 1.11 to 1.12. | |
127 | ||
13900f93 | 128 | =back |
aac7f82f | 129 | |
13900f93 | 130 | =head1 Documentation |
aac7f82f | 131 | |
13900f93 | 132 | =head2 Changes to Existing Documentation |
6d9b7c7c | 133 | |
2a395b86 PM |
134 | =head3 L<perlexperiment> |
135 | ||
136 | =over 4 | |
137 | ||
138 | =item * | |
139 | ||
140 | Added reference to L<feature>. | |
141 | ||
142 | =back | |
143 | ||
144 | =head3 L<perlguts> | |
145 | ||
146 | =over 4 | |
147 | ||
148 | =item * | |
149 | ||
150 | Details on C level symbols and libperl.t added. | |
151 | ||
152 | =back | |
153 | ||
154 | =head3 L<perlhacktips> | |
155 | ||
156 | =over 4 | |
157 | ||
158 | =item * | |
159 | ||
160 | Recommended replacements for tmpfile, atoi, strtol, and strtoul added. | |
0f4a583b | 161 | |
2a395b86 PM |
162 | =back |
163 | ||
164 | =head3 L<perlop> | |
165 | ||
166 | =over 4 | |
167 | ||
168 | =item * | |
169 | ||
170 | ASCII v. EBCDIC clarifications added. | |
171 | ||
172 | =back | |
173 | ||
174 | =head3 L<perlsec> | |
175 | ||
176 | =over 4 | |
177 | ||
178 | =item * | |
179 | ||
180 | Comments added on algorithmic complexity and tied hashes. | |
181 | ||
182 | =back | |
6d9b7c7c | 183 | |
2a395b86 | 184 | =head3 L<perlvms> |
7f55cec0 | 185 | |
13900f93 | 186 | =over 4 |
7f55cec0 SH |
187 | |
188 | =item * | |
189 | ||
2a395b86 | 190 | Updated documentation on environment and shell interaction in VMS. |
aac7f82f | 191 | |
13900f93 | 192 | =back |
aac7f82f | 193 | |
13900f93 | 194 | =head1 Diagnostics |
091fed7c | 195 | |
13900f93 A |
196 | The following additions or changes have been made to diagnostic output, |
197 | including warnings and fatal error messages. For the complete list of | |
198 | diagnostic messages, see L<perldiag>. | |
902c1f75 | 199 | |
13900f93 | 200 | =head2 New Diagnostics |
2901561d | 201 | |
13900f93 | 202 | =head3 New Errors |
4594cf53 | 203 | |
13900f93 | 204 | =over 4 |
96dcbc37 DD |
205 | |
206 | =item * | |
207 | ||
a1d26ccd PM |
208 | L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error"> |
209 | ||
210 | (F) Something went horribly bad in hexadecimal float handling. | |
211 | ||
212 | =item * | |
213 | ||
214 | L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format"> | |
215 | ||
216 | (F) You have configured Perl to use long doubles but | |
217 | the internals of the long double format are unknown, | |
218 | therefore the hexadecimal float output is impossible. | |
7065301c | 219 | |
13900f93 | 220 | =back |
58f25ac1 | 221 | |
13900f93 A |
222 | =head3 New Warnings |
223 | ||
224 | =over 4 | |
58f25ac1 MH |
225 | |
226 | =item * | |
227 | ||
a5873648 PM |
228 | L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow"> |
229 | ||
230 | (W overflow) The hexadecimal floating point has larger exponent | |
231 | than the floating point supports. | |
232 | ||
233 | =item * | |
234 | ||
235 | L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow"> | |
236 | ||
237 | (W overflow) The hexadecimal floating point has smaller exponent | |
238 | than the floating point supports. | |
239 | ||
240 | =item * | |
241 | ||
a5873648 PM |
242 | L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow"> |
243 | ||
244 | (W overflow) The hexadecimal floating point literal had more bits in | |
245 | the mantissa (the part between the 0x and the exponent, also known as | |
246 | the fraction or the significand) than the floating point supports. | |
247 | ||
248 | =item * | |
249 | ||
250 | L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss"> | |
251 | ||
252 | (W overflow) The hexadecimal floating point had internally more | |
253 | digits than could be output. This can be caused by unsupported | |
254 | long double formats, or by 64-bit integers not being available | |
255 | (needed to retrieve the digits under some configurations). | |
256 | ||
58f25ac1 MH |
257 | =back |
258 | ||
13900f93 | 259 | =head2 Changes to Existing Diagnostics |
12042f24 | 260 | |
b10906fb MH |
261 | =over 4 |
262 | ||
263 | =item * | |
264 | ||
0f4a583b | 265 | C<require> with no argument or undef used to warn about a Null filename; now |
258ced86 | 266 | it dies with C<Missing or undefined argument to require>. |
b10906fb MH |
267 | |
268 | =back | |
269 | ||
13900f93 A |
270 | =head1 Configuration and Compilation |
271 | ||
7065301c | 272 | =over 4 |
24a38d90 RS |
273 | |
274 | =item * | |
275 | ||
bb076206 PM |
276 | MurmurHash64A and MurmurHash64B can now be configured as the internal hash |
277 | function. | |
278 | ||
7065301c RS |
279 | =back |
280 | ||
13900f93 | 281 | =head1 Platform Support |
097675bf | 282 | |
6e97d65d | 283 | =head2 Platform-Specific Notes |
b3211734 | 284 | |
6e97d65d | 285 | =over 4 |
b3211734 | 286 | |
6e97d65d | 287 | =item Android |
7065301c | 288 | |
6e97d65d PM |
289 | Build support has been improved for cross-compiling in general and for |
290 | Android in particular. | |
13900f93 | 291 | |
6e97d65d | 292 | =item Solaris |
7d0ccdba | 293 | |
6e97d65d PM |
294 | C<c99> options have been cleaned up, hints look for C<solstudio> |
295 | as well as C<SUNWspro>, and support for native C<setenv> has been added. | |
7d0ccdba | 296 | |
6e97d65d PM |
297 | =item VMS |
298 | ||
299 | C<finite>, C<finitel>, and C<isfinite> detection has been added to | |
300 | C<configure.com>, environment handling has had some minor changes, and | |
301 | a fix for legacy feature checking status. | |
302 | ||
303 | =item Windows | |
304 | ||
305 | C<%I64d> is now being used instead of C<%lld> for MinGW. | |
7d0ccdba | 306 | |
7065301c RS |
307 | =back |
308 | ||
309 | =head1 Internal Changes | |
310 | ||
13900f93 | 311 | =over 4 |
c9fcb674 | 312 | |
a835cd47 KW |
313 | =item * |
314 | ||
d8bcb4d6 KW |
315 | Added L<perlapi/sync_locale>. |
316 | Changing the program's locale should be avoided by XS code. Nevertheless, | |
317 | certain non-Perl libraries called from XS, such as C<Gtk> do so. When this | |
318 | happens, Perl needs to be told that the locale has changed. Use this function | |
319 | to do so, before returning to Perl. | |
c1284011 | 320 | |
1c43698b PM |
321 | =item * |
322 | ||
323 | Added L<perlapi/grok_atou> as a safer replacement for atoi and strtol. | |
324 | ||
6d9b7c7c | 325 | =back |
c1284011 | 326 | |
6d9b7c7c | 327 | =head1 Selected Bug Fixes |
375f5f06 | 328 | |
0346c3a9 | 329 | =over 4 |
375f5f06 | 330 | |
2884baee MH |
331 | =item * |
332 | ||
0dd816ae TC |
333 | Failing to compile C<use Foo> in an eval could leave a spurious |
334 | C<BEGIN> subroutine definition, which would produce a "Subroutine | |
335 | BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN> | |
336 | block. [perl #122107] | |
2884baee | 337 | |
b756670b FC |
338 | =item * |
339 | ||
340 | C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they | |
341 | begin with an opening brace. [perl #46947] | |
342 | ||
e917e94e PM |
343 | =item * |
344 | ||
345 | External libraries and Perl may have different ideas of what the locale is. | |
346 | This is problematic when parsing version strings if the locale's numeric | |
347 | separator has been changed. Version parsing has been patched to ensure | |
348 | it handles the locales correctly. [perl #121930] | |
349 | ||
26dd5fd6 PM |
350 | =item * |
351 | ||
352 | A bug has been fixed where zero-length assertions and code blocks inside of a | |
0f4a583b | 353 | regex could cause C<pos> to see an incorrect value. [perl #122460] |
26dd5fd6 | 354 | |
13900f93 A |
355 | =back |
356 | ||
13900f93 | 357 | =head1 Acknowledgements |
e831f11a | 358 | |
ff433f2d PM |
359 | Perl 5.21.3 represents approximately 4 weeks of development since Perl 5.21.2 |
360 | and contains approximately 21,000 lines of changes across 250 files from 25 | |
361 | authors. | |
362 | ||
363 | Excluding auto-generated files, documentation and release tools, there were | |
364 | approximately 18,000 lines of changes to 160 .pm, .t, .c and .h files. | |
365 | ||
366 | Perl continues to flourish into its third decade thanks to a vibrant community | |
367 | of users and developers. The following people are known to have contributed the | |
368 | improvements that became Perl 5.21.3: | |
369 | ||
370 | Aaron Crane, Abigail, Alberto Simões, Andy Dougherty, Brian Fraser, Chad | |
371 | Granum, Chris 'BinGOs' Williams, Craig A. Berry, Dagfinn Ilmari Mannsåker, | |
372 | Daniel Dragan, David Mitchell, Father Chrysostomos, H.Merijn Brand, James E | |
373 | Keenan, Jan Dubois, Jarkko Hietaniemi, Karen Etheridge, Karl Williamson, Lukas | |
374 | Mai, Peter Martini, Rafael Garcia-Suarez, syber, Tony Cook, Vladimir Marek, | |
375 | Yves Orton. | |
376 | ||
377 | The list above is almost certainly incomplete as it is automatically generated | |
378 | from version control history. In particular, it does not include the names of | |
379 | the (very much appreciated) contributors who reported issues to the Perl bug | |
380 | tracker. | |
381 | ||
382 | Many of the changes included in this version originated in the CPAN modules | |
383 | included in Perl's core. We're grateful to the entire CPAN community for | |
384 | helping Perl to flourish. | |
e831f11a | 385 | |
ff433f2d PM |
386 | For a more complete list of all of Perl's historical contributors, please see |
387 | the F<AUTHORS> file in the Perl source distribution. | |
f5b73711 | 388 | |
44691e6f AB |
389 | =head1 Reporting Bugs |
390 | ||
e08634c5 SH |
391 | If you find what you think is a bug, you might check the articles recently |
392 | posted to the comp.lang.perl.misc newsgroup and the perl bug database at | |
238894db | 393 | https://rt.perl.org/ . There may also be information at |
7ef8b31d | 394 | http://www.perl.org/ , the Perl Home Page. |
44691e6f | 395 | |
e08634c5 SH |
396 | If you believe you have an unreported bug, please run the L<perlbug> program |
397 | included with your release. Be sure to trim your bug down to a tiny but | |
398 | sufficient test case. Your bug report, along with the output of C<perl -V>, | |
399 | will be sent off to perlbug@perl.org to be analysed by the Perl porting team. | |
44691e6f AB |
400 | |
401 | If the bug you are reporting has security implications, which make it | |
e08634c5 SH |
402 | inappropriate to send to a publicly archived mailing list, then please send it |
403 | to perl5-security-report@perl.org. This points to a closed subscription | |
404 | unarchived mailing list, which includes all the core committers, who will be | |
405 | able to help assess the impact of issues, figure out a resolution, and help | |
f9001595 | 406 | co-ordinate the release of patches to mitigate or fix the problem across all |
e08634c5 SH |
407 | platforms on which Perl is supported. Please only use this address for |
408 | security issues in the Perl core, not for modules independently distributed on | |
409 | CPAN. | |
44691e6f AB |
410 | |
411 | =head1 SEE ALSO | |
412 | ||
e08634c5 SH |
413 | The F<Changes> file for an explanation of how to view exhaustive details on |
414 | what changed. | |
44691e6f AB |
415 | |
416 | The F<INSTALL> file for how to build Perl. | |
417 | ||
418 | The F<README> file for general stuff. | |
419 | ||
420 | The F<Artistic> and F<Copying> files for copyright information. | |
421 | ||
422 | =cut |