Commit | Line | Data |
---|---|---|
44691e6f AB |
1 | =encoding utf8 |
2 | ||
3 | =head1 NAME | |
4 | ||
8c8d6154 SH |
5 | [ this is a template for a new perldelta file. Any text flagged as XXX needs |
6 | to be processed before release. ] | |
7 | ||
8 | perldelta - what is new for perl v5.21.5 | |
c68523cb | 9 | |
238894db | 10 | =head1 DESCRIPTION |
c68523cb | 11 | |
8c8d6154 | 12 | This document describes differences between the 5.21.4 release and the 5.21.5 |
238894db | 13 | release. |
c68523cb | 14 | |
8c8d6154 SH |
15 | If you are upgrading from an earlier release such as 5.21.3, first read |
16 | L<perl5214delta>, which describes differences between 5.21.3 and 5.21.4. | |
8435afd1 | 17 | |
8c8d6154 | 18 | =head1 Notice |
8435afd1 | 19 | |
8c8d6154 | 20 | XXX Any important notices here |
5cfa0642 | 21 | |
8c8d6154 | 22 | =head1 Core Enhancements |
5cfa0642 | 23 | |
8c8d6154 SH |
24 | XXX New core language features go here. Summarize user-visible core language |
25 | enhancements. Particularly prominent performance optimisations could go | |
26 | here, but most should go in the L</Performance Enhancements> section. | |
8435afd1 | 27 | |
8c8d6154 | 28 | [ List each enhancement as a =head2 entry ] |
8435afd1 | 29 | |
4cad5dc8 FC |
30 | =head2 New double-diamond operator |
31 | ||
4a573b25 | 32 | C<<< <<>> >>> is like C<< <> >> but uses three-argument C<open> to open |
4cad5dc8 FC |
33 | each file in @ARGV. So each element of @ARGV is an actual file name, and |
34 | "|foo" won't be treated as a pipe open. | |
35 | ||
a5591204 FC |
36 | =head2 Aliasing via reference |
37 | ||
38 | Variables and subroutines can now be aliased by assigning to a reference: | |
39 | ||
40 | \$c = \$d; | |
41 | \&x = \&y; | |
42 | ||
43 | Or by using a backslash before a C<foreach> iterator variable, which is | |
44 | perhaps the most useful idiom this feature provides: | |
45 | ||
46 | foreach \%hash (@array_of_hash_refs) { ... } | |
47 | ||
48 | This feature is experimental and must be enabled via C<use feature | |
49 | 'refaliasing'>. It will warn unless the C<experimental::refaliasing> | |
50 | warnings category is disabled. | |
51 | ||
52 | See L<perlref/Assigning to References>. | |
53 | ||
b15c1b56 AF |
54 | =head2 Perl now supports POSIX 2008 locale currency additions. |
55 | ||
56 | On platforms that are able to handle POSIX.1-2008, the | |
57 | hash returned by | |
58 | L<C<POSIX::localeconv()>|perllocale/The localeconv function> | |
59 | includes the international currency fields added by that version of the | |
60 | POSIX standard. These are | |
61 | C<int_n_cs_precedes>, | |
62 | C<int_n_sep_by_space>, | |
63 | C<int_n_sign_posn>, | |
64 | C<int_p_cs_precedes>, | |
65 | C<int_p_sep_by_space>, | |
66 | and | |
67 | C<int_p_sign_posn>. | |
68 | ||
bb8c7e27 A |
69 | =head2 Packing infinity or not-a-number into a character is now fatal. |
70 | ||
71 | Before, when trying to pack infinity or not-a-number into a | |
72 | (signed) character, Perl would warn, and assumed you tried to | |
73 | pack C<< 0xFF >>; if you gave it as an argument to C<< chr >>, | |
74 | C<< U+FFFD >> was returned. | |
75 | ||
76 | But now, all such actions (C<< pack >>, C<< chr >>, and C<< print '%c' >>) | |
77 | result in a fatal error. | |
78 | ||
8c8d6154 | 79 | =head1 Security |
5cfa0642 | 80 | |
ba474e87 JH |
81 | =head2 Perl is now compiled with -fstack-protector-strong if available |
82 | ||
83 | Perl has been compiled with the anti-stack-smashing option | |
84 | C<-fstack-protector> since 5.10.1. Now Perl uses the newer variant | |
85 | called C<-fstack-protector-strong>, if available. (This was added | |
86 | already in 5.21.4.) | |
8435afd1 | 87 | |
8c8d6154 | 88 | [ List each security issue as a =head2 entry ] |
8435afd1 | 89 | |
8c8d6154 | 90 | =head1 Incompatible Changes |
5cfa0642 | 91 | |
8c8d6154 | 92 | XXX For a release on a stable branch, this section aspires to be: |
8435afd1 | 93 | |
8c8d6154 SH |
94 | There are no changes intentionally incompatible with 5.XXX.XXX |
95 | If any exist, they are bugs, and we request that you submit a | |
96 | report. See L</Reporting Bugs> below. | |
5b319db8 | 97 | |
8c8d6154 | 98 | [ List each incompatible change as a =head2 entry ] |
5cfa0642 | 99 | |
8c8d6154 | 100 | =head1 Deprecations |
d0ab07ee | 101 | |
8c8d6154 | 102 | XXX Any deprecated features, syntax, modules etc. should be listed here. |
d0ab07ee | 103 | |
8c8d6154 | 104 | =head2 Module removals |
5cfa0642 | 105 | |
8c8d6154 | 106 | XXX Remove this section if inapplicable. |
d0ab07ee | 107 | |
8c8d6154 SH |
108 | The following modules will be removed from the core distribution in a |
109 | future release, and will at that time need to be installed from CPAN. | |
110 | Distributions on CPAN which require these modules will need to list them as | |
111 | prerequisites. | |
8435afd1 | 112 | |
8c8d6154 SH |
113 | The core versions of these modules will now issue C<"deprecated">-category |
114 | warnings to alert you to this fact. To silence these deprecation warnings, | |
115 | install the modules in question from CPAN. | |
46274848 | 116 | |
8c8d6154 SH |
117 | Note that these are (with rare exceptions) fine modules that you are encouraged |
118 | to continue to use. Their disinclusion from core primarily hinges on their | |
119 | necessity to bootstrapping a fully functional, CPAN-capable Perl installation, | |
120 | not usually on concerns over their design. | |
46274848 | 121 | |
8c8d6154 | 122 | =over |
d0ab07ee | 123 | |
8c8d6154 | 124 | =item XXX |
5cfa0642 | 125 | |
8c8d6154 SH |
126 | XXX Note that deprecated modules should be listed here even if they are listed |
127 | as an updated module in the L</Modules and Pragmata> section. | |
5cfa0642 | 128 | |
8c8d6154 | 129 | =back |
8435afd1 | 130 | |
cc4d09e1 KW |
131 | =head2 Use of multiple /x regexp modifiers |
132 | ||
133 | It is now deprecated to say something like any of the following: | |
134 | ||
135 | qr/foo/xx; | |
136 | /(?xax:foo)/; | |
137 | use re qw(/amxx); | |
138 | ||
139 | That is, now C<x> should only occur once in any string of contiguous | |
140 | regular expression pattern modifiers. We do not believe there are any | |
141 | occurrences of this in all of CPAN. This is in preparation for a future | |
142 | Perl release having C</xx> mean to allow white-space for readability in | |
143 | bracketed character classes (those enclosed in square brackets: | |
144 | C<[...]>). | |
8435afd1 | 145 | |
8c8d6154 | 146 | =head1 Performance Enhancements |
5cfa0642 | 147 | |
8c8d6154 SH |
148 | XXX Changes which enhance performance without changing behaviour go here. |
149 | There may well be none in a stable release. | |
8435afd1 | 150 | |
8c8d6154 | 151 | [ List each enhancement as a =item entry ] |
8435afd1 | 152 | |
8c8d6154 | 153 | =over 4 |
5cfa0642 | 154 | |
8435afd1 SH |
155 | =item * |
156 | ||
1dc08634 FC |
157 | C<length> is up to 20% faster for non-magical/non-tied scalars containing a |
158 | string if it is a non-utf8 string or if C<use bytes;> is in scope. | |
5cfa0642 | 159 | |
5b306eef DD |
160 | =item * |
161 | ||
162 | Non-magical/non-tied scalars that contain only a floating point value and are | |
163 | on most Perl builds with 64 bit integers now use 8-32 less bytes of memory | |
164 | depending on OS. | |
165 | ||
357205d5 FC |
166 | =item * |
167 | ||
168 | In C<@array = split>, the assigment can be optimised away with C<split> | |
169 | writing directly to the array. This optimisation was happening only for | |
3a9cf875 FC |
170 | package arrays other than @_ and only |
171 | sometimes. Now this optimisation happens | |
357205d5 FC |
172 | almost all the time. |
173 | ||
f704f251 FC |
174 | =item * |
175 | ||
176 | C<join> is now subject to constant folding. Moreover, C<join> with a | |
177 | scalar or constant for the separator and a single-item list to join is | |
178 | simplified to a stringification. The separator doesn't even get evaluated. | |
179 | ||
0cb3abac FC |
180 | =item * |
181 | ||
182 | C<qq(@array)> is implemented using two ops: a stringify op and a join op. | |
183 | If the qq contains nothing but a single array, the stringification is | |
184 | optimised away. | |
185 | ||
deec1830 FC |
186 | =item * |
187 | ||
188 | C<our $var> and C<our($s,@a,%h)> in void context are no longer evaluated at | |
189 | run time. Even a whole sequence of C<our $foo;> statements will simply be | |
190 | skipped over. | |
191 | ||
8c8d6154 | 192 | =back |
d0ab07ee | 193 | |
8c8d6154 | 194 | =head1 Modules and Pragmata |
d0ab07ee | 195 | |
8c8d6154 SH |
196 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> |
197 | go here. If Module::CoreList is updated, generate an initial draft of the | |
198 | following sections using F<Porting/corelist-perldelta.pl>. A paragraph summary | |
199 | for important changes should then be added by hand. In an ideal world, | |
200 | dual-life modules would have a F<Changes> file that could be cribbed. | |
5cfa0642 | 201 | |
8c8d6154 | 202 | [ Within each section, list entries as a =item entry ] |
8435afd1 | 203 | |
8c8d6154 | 204 | =head2 New Modules and Pragmata |
8435afd1 | 205 | |
8c8d6154 | 206 | =over 4 |
5cfa0642 | 207 | |
8435afd1 SH |
208 | =item * |
209 | ||
8c8d6154 | 210 | XXX |
5cfa0642 | 211 | |
39c4a6cf | 212 | =back |
9c97a342 | 213 | |
8c8d6154 | 214 | =head2 Updated Modules and Pragmata |
d99849ae | 215 | |
39c4a6cf | 216 | =over 4 |
d99849ae | 217 | |
ff433f2d PM |
218 | =item * |
219 | ||
6fa0b0fd TC |
220 | L<attributes> has been upgraded from version 0.23 to 0.24. |
221 | ||
222 | Avoid reading beyond the end of a buffer. [perl #122629] | |
223 | ||
224 | =item * | |
225 | ||
432450d2 FC |
226 | L<B::Deparse> has been upgraded from version 1.28 to 1.29. |
227 | ||
228 | Parenthesised arrays in lists passed to C<\> are now correctly deparsed | |
229 | with parentheses (e.g., C<\(@a, (@b), @c)> now retains the parentheses | |
230 | around @b), this preserving the flattening behaviour of referenced | |
231 | parenthesised arrays. Formerly, it only worked for one array: C<\(@a)>. | |
232 | ||
4e3e9c07 FC |
233 | C<local our> is now deparsed correctly, with the C<our> included. |
234 | ||
4a9fafe5 FC |
235 | C<for($foo; !$bar; $baz) {...}> was deparsed without the C<!> (or C<not>). |
236 | This has been fixed. | |
237 | ||
f03d0d50 FC |
238 | Core keywords that conflict with lexical subroutines are now deparsed with |
239 | the C<CORE::> prefix. | |
240 | ||
c3f18a8f FC |
241 | C<foreach state $x (...) {...}> now deparses correctly with C<state> and |
242 | not C<my>. | |
243 | ||
852ef7e9 FC |
244 | C<our @array = split(...)> now deparses correctly with C<our> in those |
245 | cases where the assignment is optimised away. | |
246 | ||
432450d2 FC |
247 | =item * |
248 | ||
cbfcbc14 TC |
249 | L<DynaLoader> has been upgraded from version 1.26 to 1.27. |
250 | ||
251 | Remove dl_nonlazy global if unused in Dynaloader. [perl #122926] | |
252 | ||
253 | =item * | |
254 | ||
7635ad4d TC |
255 | L<Fcntl> has been upgraded from version 1.12 to 1.13. |
256 | ||
257 | Add support for the Linux pipe buffer size fcntl() commands. | |
258 | ||
259 | =item * | |
260 | ||
f4eedc6b DD |
261 | L<File::Find> has been upgraded from version 1.28 to 1.29. |
262 | ||
263 | Slightly faster module loading time. | |
264 | ||
265 | =item * | |
266 | ||
84d03adf SH |
267 | L<Module::CoreList> has been upgraded from version 5.20140920 to 5.20141020. |
268 | ||
269 | Updated to cover the latest releases of Perl. | |
ff433f2d | 270 | |
4cd408ba TC |
271 | =item * |
272 | ||
f4eedc6b DD |
273 | The PathTools module collection has been upgraded from version 3.50 to 3.51. |
274 | ||
275 | Slightly faster module loading time. | |
276 | ||
277 | =item * | |
278 | ||
0561e60b TC |
279 | L<POSIX> has been upgraded from version 1.44 to 1.45. |
280 | ||
281 | POSIX::tmpnam() now produces a deprecation warning. [perl #122005] | |
282 | ||
283 | =item * | |
284 | ||
4cd408ba TC |
285 | L<XSLoader> has been upgraded from version 0.17 to 0.18. |
286 | ||
287 | Allow XSLoader to load modules from a different namespace. | |
288 | [perl #122455] | |
289 | ||
13900f93 | 290 | =back |
aac7f82f | 291 | |
8c8d6154 | 292 | =head2 Removed Modules and Pragmata |
aac7f82f | 293 | |
5cfa0642 | 294 | =over 4 |
6d9b7c7c | 295 | |
5cfa0642 | 296 | =item * |
2a395b86 | 297 | |
8c8d6154 | 298 | XXX |
2a395b86 | 299 | |
5cfa0642 | 300 | =back |
2a395b86 | 301 | |
8c8d6154 | 302 | =head1 Documentation |
2a395b86 | 303 | |
8c8d6154 SH |
304 | XXX Changes to files in F<pod/> go here. Consider grouping entries by |
305 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
5cfa0642 | 306 | |
8c8d6154 | 307 | =head2 New Documentation |
39c4a6cf | 308 | |
8c8d6154 | 309 | XXX Changes which create B<new> files in F<pod/> go here. |
2a395b86 | 310 | |
8c8d6154 | 311 | =head3 L<XXX> |
2a395b86 | 312 | |
8c8d6154 | 313 | XXX Description of the purpose of the new file here |
2a395b86 | 314 | |
8c8d6154 | 315 | =head2 Changes to Existing Documentation |
8435afd1 | 316 | |
8c8d6154 SH |
317 | XXX Changes which significantly change existing files in F<pod/> go here. |
318 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
319 | section. | |
8435afd1 | 320 | |
8c8d6154 | 321 | =head3 L<XXX> |
8435afd1 SH |
322 | |
323 | =over 4 | |
2a395b86 | 324 | |
12d22d1f JK |
325 | =item * |
326 | ||
09e43397 KW |
327 | Clarifications have been added to L<perlrecharclass/Character Ranges> |
328 | to the effect that Perl guarantees that C<[A-Z]>, C<[a-z]>, C<[0-9]> and | |
329 | any subranges thereof in regular expression bracketed character classes | |
330 | are guaranteed to match exactly what a naive English speaker would | |
331 | expect them to match, even on platforms (such as EBCDIC) where special | |
332 | handling is required to accomplish this. | |
12d22d1f | 333 | |
2a395b86 PM |
334 | =back |
335 | ||
39c4a6cf | 336 | =head1 Diagnostics |
2a395b86 | 337 | |
39c4a6cf PM |
338 | The following additions or changes have been made to diagnostic output, |
339 | including warnings and fatal error messages. For the complete list of | |
340 | diagnostic messages, see L<perldiag>. | |
2a395b86 | 341 | |
8c8d6154 SH |
342 | XXX New or changed warnings emitted by the core's C<C> code go here. Also |
343 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
2a395b86 | 344 | |
8c8d6154 | 345 | =head2 New Diagnostics |
2a395b86 | 346 | |
8c8d6154 SH |
347 | XXX Newly added diagnostic messages go under here, separated into New Errors |
348 | and New Warnings | |
2a395b86 | 349 | |
8c8d6154 | 350 | =head3 New Errors |
5cfa0642 | 351 | |
8c8d6154 | 352 | =over 4 |
2a395b86 PM |
353 | |
354 | =item * | |
355 | ||
bb8c7e27 A |
356 | L<message|perldiag/"Cannot chr %f"> |
357 | ||
358 | =item * | |
359 | ||
360 | L<message|perldiag/"Cannot compress %f in pack"> | |
361 | ||
362 | =item * | |
363 | ||
364 | L<message|perldiag/"Cannot pack %f with '%c'"> | |
365 | ||
366 | =item * | |
367 | ||
368 | L<message|perldiag/"Cannot printf %f with '%c'"> | |
2a395b86 PM |
369 | |
370 | =back | |
6d9b7c7c | 371 | |
8c8d6154 | 372 | =head3 New Warnings |
39c4a6cf | 373 | |
13900f93 | 374 | =over 4 |
7f55cec0 SH |
375 | |
376 | =item * | |
377 | ||
8c8d6154 | 378 | XXX L<message|perldiag/"message"> |
623141a1 | 379 | |
8c8d6154 | 380 | =back |
aac7f82f | 381 | |
8c8d6154 | 382 | =head2 Changes to Existing Diagnostics |
363d3025 | 383 | |
8c8d6154 | 384 | XXX Changes (i.e. rewording) of diagnostic messages go here |
334464b3 | 385 | |
8c8d6154 | 386 | =over 4 |
334464b3 FC |
387 | |
388 | =item * | |
389 | ||
dbe3c929 FC |
390 | '"my" variable &foo::bar can't be in a package' has been reworded to say |
391 | 'subroutine' instead of 'variable'. | |
ef5a9509 | 392 | |
363d3025 FC |
393 | =back |
394 | ||
8c8d6154 | 395 | =head1 Utility Changes |
4594cf53 | 396 | |
8c8d6154 SH |
397 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here. |
398 | Most of these are built within the directory F<utils>. | |
96dcbc37 | 399 | |
8c8d6154 SH |
400 | [ List utility changes as a =head2 entry for each utility and =item |
401 | entries for each change | |
402 | Use L<XXX> with program names to get proper documentation linking. ] | |
96dcbc37 | 403 | |
8c8d6154 | 404 | =head2 L<XXX> |
13900f93 | 405 | |
8c8d6154 | 406 | =over 4 |
58f25ac1 MH |
407 | |
408 | =item * | |
409 | ||
8c8d6154 | 410 | XXX |
a5873648 | 411 | |
39c4a6cf | 412 | =back |
a5873648 | 413 | |
55ba8847 JH |
414 | =head1 Configuration and Compilation |
415 | ||
8c8d6154 SH |
416 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools |
417 | go here. Any other changes to the Perl build process should be listed here. | |
418 | However, any platform-specific changes should be listed in the | |
419 | L</Platform Support> section, instead. | |
55ba8847 | 420 | |
8c8d6154 | 421 | [ List changes as a =item entry ]. |
a5873648 | 422 | |
39c4a6cf | 423 | =over 4 |
a5873648 PM |
424 | |
425 | =item * | |
426 | ||
8c8d6154 | 427 | XXX |
7d0ccdba | 428 | |
7065301c RS |
429 | =back |
430 | ||
8c8d6154 | 431 | =head1 Testing |
d72cd2eb | 432 | |
8c8d6154 SH |
433 | XXX Any significant changes to the testing of a freshly built perl should be |
434 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
435 | large changes to the testing harness (e.g. when parallel testing was added). | |
436 | Changes to existing files in F<t/> aren't worth summarizing, although the bugs | |
437 | that they represent may be covered elsewhere. | |
c1284011 | 438 | |
8c8d6154 | 439 | [ List each test improvement as a =item entry ] |
375f5f06 | 440 | |
0346c3a9 | 441 | =over 4 |
375f5f06 | 442 | |
2884baee MH |
443 | =item * |
444 | ||
bb8c7e27 A |
445 | Some regular expression tests are written in such a way that they will |
446 | run very slowly if certain optimizations break. These tests have been | |
447 | moved into new files, F<< t/re/speed.t >> and F<< t/re/speed_thr.t >>, | |
448 | and are run with a C<< watchdog() >>. | |
6f1a844b | 449 | |
8c8d6154 | 450 | =back |
549ea8d4 | 451 | |
8c8d6154 | 452 | =head1 Platform Support |
549ea8d4 | 453 | |
8c8d6154 | 454 | XXX Any changes to platform support should be listed in the sections below. |
be0006e0 | 455 | |
8c8d6154 SH |
456 | [ Within the sections, list each platform as a =item entry with specific |
457 | changes as paragraphs below it. ] | |
be0006e0 | 458 | |
8c8d6154 | 459 | =head2 New Platforms |
1699f5c2 | 460 | |
8c8d6154 SH |
461 | XXX List any platforms that this version of perl compiles on, that previous |
462 | versions did not. These will either be enabled by new files in the F<hints/> | |
463 | directories, or new subdirectories and F<README> files at the top level of the | |
464 | source tree. | |
1699f5c2 | 465 | |
8c8d6154 | 466 | =over 4 |
7e8b2071 | 467 | |
8c8d6154 | 468 | =item XXX-some-platform |
7e8b2071 | 469 | |
8c8d6154 | 470 | XXX |
f9acf899 | 471 | |
8c8d6154 | 472 | =back |
f9acf899 | 473 | |
8c8d6154 | 474 | =head2 Discontinued Platforms |
fd26b6f0 | 475 | |
8c8d6154 | 476 | XXX List any platforms that this version of perl no longer compiles on. |
fd26b6f0 | 477 | |
8c8d6154 | 478 | =over 4 |
499333dc | 479 | |
8c8d6154 | 480 | =item XXX-some-platform |
499333dc | 481 | |
8c8d6154 | 482 | XXX |
8f0cd35a | 483 | |
8c8d6154 | 484 | =back |
8f0cd35a | 485 | |
8c8d6154 | 486 | =head2 Platform-Specific Notes |
aa292ef2 | 487 | |
8c8d6154 SH |
488 | XXX List any changes for specific platforms. This could include configuration |
489 | and compilation changes or changes in portability/compatibility. However, | |
490 | changes within modules for platforms should generally be listed in the | |
491 | L</Modules and Pragmata> section. | |
aa292ef2 | 492 | |
8c8d6154 | 493 | =over 4 |
739e9bee | 494 | |
09e43397 | 495 | =item EBCDIC |
739e9bee | 496 | |
09e43397 KW |
497 | Special handling is required on EBCDIC platforms to get C<qr/[i-j]/> to |
498 | match only C<"i"> and C<"j">, since there are 7 characters between the | |
499 | code points for C<"i"> and C<"j">. This special handling had only been | |
500 | invoked when both ends of the range are literals. Now it is also | |
501 | invoked if any of the C<\N{...}> forms for specifying a character by | |
502 | name or Unicode code point is used instead of a literal. See | |
503 | L<perlrecharclass/Character Ranges>. | |
b23b2fdb | 504 | |
8c8d6154 | 505 | =back |
b23b2fdb | 506 | |
8c8d6154 | 507 | =head1 Internal Changes |
7d15b1a8 | 508 | |
8c8d6154 SH |
509 | XXX Changes which affect the interface available to C<XS> code go here. Other |
510 | significant internal changes for future core maintainers should be noted as | |
511 | well. | |
7d15b1a8 | 512 | |
8c8d6154 | 513 | [ List each change as a =item entry ] |
bbca64cf | 514 | |
8c8d6154 | 515 | =over 4 |
bbca64cf | 516 | |
0064f8cc KW |
517 | =item * |
518 | ||
13203cef FC |
519 | SVs of type SVt_NV are now bodyless when a build configure and platform allow |
520 | it, specifically C<sizeof(NV) <= sizeof(IV)>. The bodyless trick is the same one | |
521 | as for IVs since 5.9.2, but for NVs, unlike IVs, is not guarenteed on all | |
522 | platforms and build configurations. | |
6ff8f256 | 523 | |
1b4c7150 TC |
524 | =item * |
525 | ||
526 | The C<$DB::single>, C<$DB::signal> and C<$DB::trace> now have set and | |
527 | get magic that stores their values as IVs and those IVs are used when | |
528 | testing their values in C<pp_dbstate>. This prevents perl from | |
529 | recursing infinity if an overloaded object is assigned to any of those | |
530 | variables. [perl #122445] | |
531 | ||
a953aca5 DD |
532 | =item * |
533 | ||
534 | C<Perl_tmps_grow> which is marked as public API but undocumented has been | |
535 | removed from public API. If you use C<EXTEND_MORTAL> macro in your XS code to | |
536 | preextend the mortal stack, you are unaffected by this change. | |
537 | ||
8405c65d FC |
538 | =item * |
539 | ||
540 | C<cv_name>, which was introduced in 5.21.4, has been changed incompatibly. | |
541 | It now has a flags field that allows the caller to specify whether the name | |
542 | should be fully qualified. See L<perlapi/cv_name>. | |
543 | ||
8e2708f3 FC |
544 | =item * |
545 | ||
546 | Internally Perl no longer uses the C<SVs_PADMY> flag. C<SvPADMY()> now | |
547 | returns a true value for anything not marked PADTMP. C<SVs_PADMY> is now | |
548 | defined as 0. | |
549 | ||
bb8c7e27 A |
550 | =item * |
551 | ||
552 | The macros SETsv and SETsvUN have been removed. They were no longer used | |
553 | in the core since commit 6f1401dc2a, and have not been found present on | |
554 | CPAN. | |
555 | ||
556 | =item * | |
557 | ||
558 | The C<< SvFAKE >> bit (unused on HVs) got informally reserved by | |
559 | David Mitchell for future work on vtables. | |
560 | ||
d712afe5 | 561 | =item * |
28482d6c FC |
562 | The C<sv_catpvn_flags> function accepts C<SV_CATBYTES> and C<SV_CATUTF8> |
563 | flags, which specify whether the appended string is bytes or utf8, | |
564 | respectively. | |
565 | ||
8c8d6154 | 566 | =back |
6ff8f256 | 567 | |
8c8d6154 | 568 | =head1 Selected Bug Fixes |
80cc3290 | 569 | |
8c8d6154 SH |
570 | XXX Important bug fixes in the core language are summarized here. Bug fixes in |
571 | files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. | |
80cc3290 | 572 | |
8c8d6154 | 573 | [ List each fix as a =item entry ] |
13dd5671 | 574 | |
8c8d6154 | 575 | =over 4 |
13dd5671 | 576 | |
bdab7676 FC |
577 | =item * |
578 | ||
227d08c8 FC |
579 | Locking and unlocking values via L<Hash::Util> or C<Internals::SvREADONLY> |
580 | no longer has any affect on values that are read-only to begin. Unlocking | |
581 | such values could result in crashes, hangs or other erratic behaviour. | |
bdab7676 | 582 | |
94959c63 FC |
583 | =item * |
584 | ||
585 | The internal C<looks_like_number> function (which L<Scalar::Util> provides | |
586 | access to) began erroneously to return true for "-e1" in 5.21.4, affecting | |
587 | also C<-'-e1'>. This has been fixed. | |
588 | ||
24d3d8cd FC |
589 | =item * |
590 | ||
591 | The flip-flop operator (C<..> in scalar context) would return the same | |
b9de5fa2 | 592 | scalar each time, unless the containing subroutine was called recursively. |
24d3d8cd FC |
593 | Now it always returns a new scalar. [perl #122829] |
594 | ||
02dde543 FC |
595 | =item * |
596 | ||
597 | Some unterminated C<(?(...)...)> constructs in regular expressions would | |
598 | either crash or give erroneous error messages. C</(?(1)/> is one such | |
599 | example. | |
600 | ||
5058ae74 FC |
601 | =item * |
602 | ||
603 | C<pack "w", $tied> no longer calls FETCH twice. | |
604 | ||
14937635 FC |
605 | =item * |
606 | ||
607 | List assignments like C<($x, $z) = (1, $y)> now work correctly if $x and $y | |
608 | have been aliased by C<foreach>. | |
609 | ||
325f4225 FC |
610 | =item * |
611 | ||
612 | Some patterns including code blocks with syntax errors, such as | |
613 | C</ (?{(^{})/>, would hang or fail assertions on debugging builds. Now | |
614 | they produce errors. | |
615 | ||
c1662923 FC |
616 | =item * |
617 | ||
618 | An assertion failure when parsing C<sort> with debugging enabled has been | |
619 | fixed. [perl #122771] | |
620 | ||
7646b3d5 FC |
621 | =item * |
622 | ||
623 | C<*a = *b; @a = split //, $b[1]> could do a bad read and produce junk | |
624 | results. | |
625 | ||
db98db4e FC |
626 | =item * |
627 | ||
628 | In C<() = @array = split>, the C<() => at the beginning no longer confuses | |
629 | the optimiser, making it assume a limit of 1. | |
630 | ||
8818afe8 TC |
631 | =item * |
632 | ||
633 | Fatal warnings no longer prevent the output of syntax errors. | |
634 | [perl #122966] | |
635 | ||
bb8c7e27 A |
636 | =item * |
637 | ||
638 | Fixed a NaN double to long double conversion error on VMS. For quiet NaNs | |
639 | (and only on Itanium, not Alpha) negative infinity instead of NaN was | |
640 | produced. | |
641 | ||
642 | =item * | |
643 | ||
644 | Fixed the issue that caused C<< make distclean >> to leave files behind | |
645 | that shouldn't. [perl #122820] | |
646 | ||
647 | =item * | |
648 | ||
649 | AIX now sets the length in C<< getsockopt >> correctly. [perl #120835], | |
650 | [rt #91183], [rt #85570]. | |
651 | ||
8c8d6154 | 652 | =back |
3a085d00 | 653 | |
8c8d6154 | 654 | =head1 Known Problems |
caa66803 | 655 | |
8c8d6154 SH |
656 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any |
657 | tests that had to be C<TODO>ed for the release would be noted here. Unfixed | |
658 | platform specific bugs also go here. | |
caa66803 | 659 | |
8c8d6154 | 660 | [ List each fix as a =item entry ] |
91766151 | 661 | |
8c8d6154 | 662 | =over 4 |
91766151 | 663 | |
dd593f1d FC |
664 | =item * |
665 | ||
8c8d6154 | 666 | XXX |
fb3b7425 | 667 | |
8c8d6154 | 668 | =back |
fb3b7425 | 669 | |
8c8d6154 | 670 | =head1 Errata From Previous Releases |
b245455d | 671 | |
8c8d6154 | 672 | =over 4 |
b245455d | 673 | |
26dd5fd6 PM |
674 | =item * |
675 | ||
8c8d6154 SH |
676 | XXX Add anything here that we forgot to add, or were mistaken about, in |
677 | the perldelta of a previous release. | |
ff433f2d | 678 | |
39c4a6cf PM |
679 | =back |
680 | ||
8c8d6154 | 681 | =head1 Obituary |
c0c55a9b | 682 | |
8c8d6154 SH |
683 | XXX If any significant core contributor has died, we've added a short obituary |
684 | here. | |
c0c55a9b | 685 | |
8c8d6154 | 686 | =head1 Acknowledgements |
c0c55a9b | 687 | |
8c8d6154 | 688 | XXX Generate this with: |
e831f11a | 689 | |
8c8d6154 | 690 | perl Porting/acknowledgements.pl v5.21.4..HEAD |
f5b73711 | 691 | |
44691e6f AB |
692 | =head1 Reporting Bugs |
693 | ||
e08634c5 SH |
694 | If you find what you think is a bug, you might check the articles recently |
695 | posted to the comp.lang.perl.misc newsgroup and the perl bug database at | |
238894db | 696 | https://rt.perl.org/ . There may also be information at |
7ef8b31d | 697 | http://www.perl.org/ , the Perl Home Page. |
44691e6f | 698 | |
e08634c5 SH |
699 | If you believe you have an unreported bug, please run the L<perlbug> program |
700 | included with your release. Be sure to trim your bug down to a tiny but | |
701 | sufficient test case. Your bug report, along with the output of C<perl -V>, | |
702 | will be sent off to perlbug@perl.org to be analysed by the Perl porting team. | |
44691e6f AB |
703 | |
704 | If the bug you are reporting has security implications, which make it | |
e08634c5 SH |
705 | inappropriate to send to a publicly archived mailing list, then please send it |
706 | to perl5-security-report@perl.org. This points to a closed subscription | |
707 | unarchived mailing list, which includes all the core committers, who will be | |
708 | able to help assess the impact of issues, figure out a resolution, and help | |
f9001595 | 709 | co-ordinate the release of patches to mitigate or fix the problem across all |
e08634c5 SH |
710 | platforms on which Perl is supported. Please only use this address for |
711 | security issues in the Perl core, not for modules independently distributed on | |
712 | CPAN. | |
44691e6f AB |
713 | |
714 | =head1 SEE ALSO | |
715 | ||
e08634c5 SH |
716 | The F<Changes> file for an explanation of how to view exhaustive details on |
717 | what changed. | |
44691e6f AB |
718 | |
719 | The F<INSTALL> file for how to build Perl. | |
720 | ||
721 | The F<README> file for general stuff. | |
722 | ||
723 | The F<Artistic> and F<Copying> files for copyright information. | |
724 | ||
725 | =cut |