Commit | Line | Data |
---|---|---|
44691e6f AB |
1 | =encoding utf8 |
2 | ||
3 | =head1 NAME | |
4 | ||
5438d4b8 Z |
5 | [ this is a template for a new perldelta file. Any text flagged as |
6 | XXX needs to be processed before release. ] | |
f5938650 | 7 | |
5438d4b8 | 8 | perldelta - what is new for perl v5.15.2 |
760696b8 | 9 | |
5438d4b8 | 10 | =head1 DESCRIPTION |
5cd408a2 | 11 | |
5438d4b8 Z |
12 | This document describes differences between the 5.15.1 release and |
13 | the 5.15.2 release. | |
5cd408a2 | 14 | |
5438d4b8 Z |
15 | If you are upgrading from an earlier release such as 5.15.0, first read |
16 | L<perl5151delta>, which describes differences between 5.15.0 and | |
17 | 5.15.1. | |
062678b2 | 18 | |
5438d4b8 | 19 | =head1 Notice |
062678b2 | 20 | |
5438d4b8 | 21 | XXX Any important notices here |
4185c919 | 22 | |
5438d4b8 | 23 | =head1 Core Enhancements |
4185c919 | 24 | |
5438d4b8 Z |
25 | XXX New core language features go here. Summarise user-visible core language |
26 | enhancements. Particularly prominent performance optimisations could go | |
27 | here, but most should go in the L</Performance Enhancements> section. | |
82aed44a | 28 | |
5438d4b8 | 29 | [ List each enhancement as a =head2 entry ] |
82aed44a | 30 | |
5438d4b8 | 31 | =head1 Security |
2b679393 | 32 | |
5438d4b8 Z |
33 | XXX Any security-related notices go here. In particular, any security |
34 | vulnerabilities closed should be noted here rather than in the | |
35 | L</Selected Bug Fixes> section. | |
2b679393 | 36 | |
5438d4b8 | 37 | [ List each security issue as a =head2 entry ] |
7818c927 | 38 | |
5438d4b8 | 39 | =head1 Incompatible Changes |
7818c927 | 40 | |
5438d4b8 | 41 | XXX For a release on a stable branch, this section aspires to be: |
760696b8 | 42 | |
5438d4b8 Z |
43 | There are no changes intentionally incompatible with 5.XXX.XXX |
44 | If any exist, they are bugs and reports are welcome. | |
6693394d | 45 | |
5438d4b8 | 46 | [ List each incompatible change as a =head2 entry ] |
6693394d | 47 | |
7b2b001e FC |
48 | =head2 C<UNIVERSAL::VERSION> now returns $VERSION |
49 | ||
50 | C<UNIVERSAL::VERSION> now return whatever is in $VERSION, instead of | |
51 | returning $VERSION converted to a version object and then to a string. | |
52 | As a result, it no longer parses the version when called without arguments, | |
53 | so it no longer dies in that case for malformed versions. This allows | |
54 | custom version number parsers to use C<< ->VERSION >> to retrieve the | |
55 | version number, as was the case in Perl 5.8 [perl #95544]. | |
56 | ||
5438d4b8 | 57 | =head1 Deprecations |
92c695db | 58 | |
5438d4b8 Z |
59 | XXX Any deprecated features, syntax, modules etc. should be listed here. |
60 | In particular, deprecated modules should be listed here even if they are | |
61 | listed as an updated module in the L</Modules and Pragmata> section. | |
92c695db | 62 | |
5438d4b8 | 63 | [ List each deprecation as a =head2 entry ] |
6693394d | 64 | |
5438d4b8 | 65 | =head1 Performance Enhancements |
bfafcb9a | 66 | |
5438d4b8 Z |
67 | XXX Changes which enhance performance without changing behaviour go here. There |
68 | may well be none in a stable release. | |
bfafcb9a | 69 | |
5438d4b8 | 70 | [ List each enhancement as a =item entry ] |
72de20cd | 71 | |
5438d4b8 | 72 | =over 4 |
72de20cd | 73 | |
93905212 FC |
74 | =item * |
75 | ||
5438d4b8 | 76 | XXX |
93905212 | 77 | |
6693394d FC |
78 | =back |
79 | ||
0890f1a5 | 80 | =head1 Modules and Pragmata |
bdb9ba77 | 81 | |
5438d4b8 Z |
82 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> |
83 | go here. If Module::CoreList is updated, generate an initial draft of the | |
84 | following sections using F<Porting/corelist-perldelta.pl>, which prints stub | |
85 | entries to STDOUT. Results can be pasted in place of the '=head2' entries | |
86 | below. A paragraph summary for important changes should then be added by hand. | |
87 | In an ideal world, dual-life modules would have a F<Changes> file that could be | |
88 | cribbed. | |
89 | ||
90 | [ Within each section, list entries as a =item entry ] | |
91 | ||
0890f1a5 | 92 | =head2 New Modules and Pragmata |
6693394d | 93 | |
0890f1a5 | 94 | =over 4 |
6693394d FC |
95 | |
96 | =item * | |
97 | ||
5438d4b8 | 98 | XXX |
6693394d FC |
99 | |
100 | =back | |
101 | ||
0890f1a5 | 102 | =head2 Updated Modules and Pragmata |
760696b8 | 103 | |
0890f1a5 | 104 | =over 4 |
760696b8 FC |
105 | |
106 | =item * | |
107 | ||
1ba7a2fb CBW |
108 | L<CPANPLUS> has been upgraded from version 0.9108 to version 0.9109 |
109 | ||
110 | Fixed support for v-strings and x.y.z versions with v5.8.4 | |
111 | ||
112 | =item * | |
113 | ||
57126352 DG |
114 | L<ExtUtils::Install> has been upgraded from version 1.56 to version 1.57. |
115 | ||
116 | There is no change to ExtUtils::Install other than the version number | |
117 | increase, but L<ExtUtils::Installed> has been upgraded from version 1.999_001 | |
c493c0a1 | 118 | to version 1.999002 and a new C<skip_cwd> attribute has been added. |
259925f6 | 119 | |
6252d2e2 NC |
120 | =item * |
121 | ||
7b2b001e FC |
122 | L<IPC::Open3> has been upgraded from version 1.11 to 1.12. |
123 | ||
124 | C<open3> with "-" for the program name works once more. This was broken in | |
125 | version 1.06 (and hence in Perl 5.14.0) [perl #95748]. | |
126 | ||
127 | =item * | |
128 | ||
2df9265e DG |
129 | L<Module::Build> has been upgraded from version 0.3800 to version 0.39_01. |
130 | ||
131 | Pod to HTML internals changed to support revisions to Pod::Html in core. | |
132 | Also fixes some minor bugs. [rt.cpan.org #68585] [rt.cpan.org #67893] | |
133 | [rt.cpan.org #67008] | |
134 | ||
135 | =item * | |
136 | ||
83b32788 CBW |
137 | L<Module::Load> has been upgraded from version 0.18 to version 0.20 |
138 | ||
139 | =item * | |
140 | ||
82eefd8a CBW |
141 | L<Params::Check> has been upgraded from version 0.28 to version 0.30 |
142 | ||
143 | =item * | |
144 | ||
5213914c | 145 | L<PerlIO::via> has been upgraded from version 0.11 to version 0.12. |
6252d2e2 NC |
146 | |
147 | The only change is a correction in the documentation. | |
148 | ||
5213914c CBW |
149 | =item * |
150 | ||
151 | L<Term::ANSIColor> has been upgraded from version 3.00 to version 3.01 | |
152 | ||
153 | Only interpret an initial array reference as a list of colors, not any initial | |
154 | reference, allowing the colored function to work properly on objects with | |
155 | stringification defined. | |
156 | ||
17609435 CBW |
157 | =item * |
158 | ||
159 | L<Unicode::Collate> has been upgraded from version 0.77 to version 0.78 | |
160 | ||
69f26f52 CBW |
161 | =item * |
162 | ||
163 | L<Unicode::Normalize> has been upgraded from version 1.12 to version 1.13 | |
164 | ||
5438d4b8 | 165 | =back |
77ccfaeb | 166 | |
5438d4b8 | 167 | =head2 Removed Modules and Pragmata |
508236ce | 168 | |
5438d4b8 | 169 | =over 4 |
508236ce CBW |
170 | |
171 | =item * | |
172 | ||
5438d4b8 | 173 | XXX |
c69a30ec | 174 | |
5438d4b8 | 175 | =back |
c69a30ec | 176 | |
5438d4b8 | 177 | =head1 Documentation |
c69a30ec | 178 | |
5438d4b8 Z |
179 | XXX Changes to files in F<pod/> go here. Consider grouping entries by |
180 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
7c420290 | 181 | |
5438d4b8 | 182 | =head2 New Documentation |
7c420290 | 183 | |
5438d4b8 | 184 | XXX Changes which create B<new> files in F<pod/> go here. |
0cb4637e | 185 | |
5438d4b8 | 186 | =head3 L<XXX> |
7818c927 | 187 | |
5438d4b8 | 188 | XXX Description of the purpose of the new file here |
7818c927 | 189 | |
5438d4b8 | 190 | =head2 Changes to Existing Documentation |
dd413713 | 191 | |
5438d4b8 Z |
192 | XXX Changes which significantly change existing files in F<pod/> go here. |
193 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
194 | section. | |
7818c927 | 195 | |
5438d4b8 | 196 | =head3 L<XXX> |
7818c927 | 197 | |
5438d4b8 | 198 | =over 4 |
7818c927 FC |
199 | |
200 | =item * | |
201 | ||
5438d4b8 | 202 | XXX Description of the change here |
5aeca1f7 | 203 | |
5438d4b8 | 204 | =back |
5aeca1f7 | 205 | |
5438d4b8 | 206 | =head1 Diagnostics |
0cb4637e | 207 | |
5438d4b8 Z |
208 | The following additions or changes have been made to diagnostic output, |
209 | including warnings and fatal error messages. For the complete list of | |
210 | diagnostic messages, see L<perldiag>. | |
0cb4637e | 211 | |
5438d4b8 Z |
212 | XXX New or changed warnings emitted by the core's C<C> code go here. Also |
213 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
00f02a57 | 214 | |
5438d4b8 Z |
215 | [ Within each section, list entries as a =item entry that links to perldiag, |
216 | e.g. | |
00f02a57 | 217 | |
5438d4b8 | 218 | =item * |
00f02a57 | 219 | |
5438d4b8 Z |
220 | L<Invalid version object|perldiag/"Invalid version object"> |
221 | ] | |
8b00e523 | 222 | |
5438d4b8 | 223 | =head2 New Diagnostics |
4abaf918 | 224 | |
5438d4b8 | 225 | XXX Newly added diagnostic messages go here |
4abaf918 | 226 | |
5438d4b8 | 227 | =head3 New Errors |
4abaf918 | 228 | |
5438d4b8 | 229 | =over 4 |
4abaf918 Z |
230 | |
231 | =item * | |
232 | ||
5438d4b8 | 233 | XXX L<message|perldiag/"message"> |
8b00e523 | 234 | |
e8e35311 FC |
235 | =back |
236 | ||
5438d4b8 | 237 | =head3 New Warnings |
bdb9ba77 | 238 | |
0890f1a5 | 239 | =over 4 |
bdb9ba77 DG |
240 | |
241 | =item * | |
242 | ||
5438d4b8 | 243 | XXX L<message|perldiag/"message"> |
bdb9ba77 DG |
244 | |
245 | =back | |
246 | ||
5438d4b8 | 247 | =head2 Changes to Existing Diagnostics |
7818c927 | 248 | |
5438d4b8 | 249 | XXX Changes (i.e. rewording) of diagnostic messages go here |
0890f1a5 | 250 | |
0890f1a5 | 251 | =over 4 |
6693394d FC |
252 | |
253 | =item * | |
254 | ||
5438d4b8 | 255 | XXX Describe change here |
259925f6 | 256 | |
5438d4b8 | 257 | =back |
7818c927 | 258 | |
5438d4b8 | 259 | =head1 Utility Changes |
7818c927 | 260 | |
5438d4b8 Z |
261 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go |
262 | here. Most of these are built within the directories F<utils> and F<x2p>. | |
7818c927 | 263 | |
5438d4b8 Z |
264 | [ List utility changes as a =head3 entry for each utility and =item |
265 | entries for each change | |
266 | Use L<XXX> with program names to get proper documentation linking. ] | |
7818c927 | 267 | |
71449ad0 | 268 | =head3 L<perlivp> |
b908e258 | 269 | |
5438d4b8 | 270 | =over 4 |
b908e258 Z |
271 | |
272 | =item * | |
273 | ||
71449ad0 DG |
274 | Fixed a bug whereby other perls under the current directory could cause |
275 | false positive failures. | |
276 | ||
277 | =item * | |
278 | ||
279 | Tests for .ph files have been removed, as these test have been optional since | |
280 | 2005 and .ph files are no longer generated during installation. | |
b908e258 | 281 | |
6693394d FC |
282 | =back |
283 | ||
5438d4b8 | 284 | =head1 Configuration and Compilation |
b7188eb5 | 285 | |
5438d4b8 Z |
286 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools |
287 | go here. Any other changes to the Perl build process should be listed here. | |
288 | However, any platform-specific changes should be listed in the | |
289 | L</Platform Support> section, instead. | |
44691e6f | 290 | |
5438d4b8 | 291 | [ List changes as a =item entry ]. |
42a91c97 | 292 | |
34dc2ec0 | 293 | =over 4 |
42a91c97 | 294 | |
6693394d | 295 | =item * |
42a91c97 | 296 | |
60a5fae4 NC |
297 | F<makedef.pl> has been refactored. This should have no noticeable affect on |
298 | any of the platforms that use it as part of their build (AIX, VMS, Win32). | |
42a91c97 | 299 | |
34dc2ec0 | 300 | =back |
42a91c97 | 301 | |
0890f1a5 | 302 | =head1 Testing |
bdab33d1 | 303 | |
5438d4b8 Z |
304 | XXX Any significant changes to the testing of a freshly built perl should be |
305 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
306 | large changes to the testing harness (e.g. when parallel testing was added). | |
307 | Changes to existing files in F<t/> aren't worth summarising, although the bugs | |
308 | that they represent may be covered elsewhere. | |
f5938650 | 309 | |
5438d4b8 | 310 | [ List each test improvement as a =item entry ] |
1fcb0052 | 311 | |
5438d4b8 | 312 | =over 4 |
1fcb0052 | 313 | |
b908e258 Z |
314 | =item * |
315 | ||
5438d4b8 | 316 | XXX |
b908e258 | 317 | |
f5938650 | 318 | =back |
2fbb14a0 | 319 | |
0890f1a5 | 320 | =head1 Platform Support |
975dff8c | 321 | |
5438d4b8 | 322 | XXX Any changes to platform support should be listed in the sections below. |
6693394d | 323 | |
5438d4b8 Z |
324 | [ Within the sections, list each platform as a =item entry with specific |
325 | changes as paragraphs below it. ] | |
6693394d | 326 | |
5438d4b8 | 327 | =head2 New Platforms |
1fcb0052 | 328 | |
5438d4b8 Z |
329 | XXX List any platforms that this version of perl compiles on, that previous |
330 | versions did not. These will either be enabled by new files in the F<hints/> | |
331 | directories, or new subdirectories and F<README> files at the top level of the | |
332 | source tree. | |
6693394d | 333 | |
0890f1a5 | 334 | =over 4 |
f5938650 | 335 | |
5438d4b8 | 336 | =item XXX-some-platform |
c62f68e3 | 337 | |
5438d4b8 | 338 | XXX |
f5938650 | 339 | |
0890f1a5 | 340 | =back |
25aa614d | 341 | |
5438d4b8 | 342 | =head2 Discontinued Platforms |
87d00a71 | 343 | |
5438d4b8 | 344 | XXX List any platforms that this version of perl no longer compiles on. |
87d00a71 | 345 | |
5438d4b8 | 346 | =over 4 |
da507230 | 347 | |
5438d4b8 | 348 | =item XXX-some-platform |
fff96ff7 | 349 | |
5438d4b8 | 350 | XXX |
da507230 | 351 | |
5438d4b8 | 352 | =back |
bb3abb05 | 353 | |
5438d4b8 | 354 | =head2 Platform-Specific Notes |
d25b0d7b | 355 | |
5438d4b8 Z |
356 | XXX List any changes for specific platforms. This could include configuration |
357 | and compilation changes or changes in portability/compatibility. However, | |
358 | changes within modules for platforms should generally be listed in the | |
359 | L</Modules and Pragmata> section. | |
d25b0d7b | 360 | |
5438d4b8 | 361 | =over 4 |
4bee03f8 | 362 | |
5438d4b8 | 363 | =item XXX-some-platform |
4bee03f8 | 364 | |
5438d4b8 | 365 | XXX |
d9463c66 | 366 | |
5438d4b8 | 367 | =back |
d9463c66 | 368 | |
5438d4b8 | 369 | =head1 Internal Changes |
7c4c6e7c | 370 | |
5438d4b8 Z |
371 | XXX Changes which affect the interface available to C<XS> code go here. |
372 | Other significant internal changes for future core maintainers should | |
373 | be noted as well. | |
7c4c6e7c | 374 | |
5438d4b8 | 375 | [ List each change as a =item entry ] |
777d9014 | 376 | |
5438d4b8 | 377 | =over 4 |
95f7e41f FC |
378 | |
379 | =item * | |
380 | ||
5438d4b8 | 381 | XXX |
df5b44bd | 382 | |
5438d4b8 | 383 | =back |
df5b44bd | 384 | |
5438d4b8 | 385 | =head1 Selected Bug Fixes |
e22e289d | 386 | |
5438d4b8 Z |
387 | XXX Important bug fixes in the core language are summarised here. |
388 | Bug fixes in files in F<ext/> and F<lib/> are best summarised in | |
389 | L</Modules and Pragmata>. | |
7818c927 | 390 | |
5438d4b8 | 391 | [ List each fix as a =item entry ] |
7818c927 | 392 | |
5438d4b8 | 393 | =over 4 |
7818c927 FC |
394 | |
395 | =item * | |
396 | ||
f4df43b5 FC |
397 | Locking an lvalue subroutine (via C<lock &lvsub>) now locks the return |
398 | value, instead of trying to lock the sub (which has no effect). It also no | |
399 | longer tries to return the sub as a scalar, resulting in strange side | |
400 | effects like C<ref \$_> returning "CODE" in some instances. | |
7818c927 | 401 | |
3fdd840f FC |
402 | =item * |
403 | ||
404 | C<lock>'s prototype has been corrected to C<(\[$@%*])> from C<(\$)>, which | |
405 | was just wrong. | |
406 | ||
7ffa7e75 FC |
407 | =item * |
408 | ||
604022a7 FC |
409 | The prototypes for the core functions C<stat> and C<lstat> have been |
410 | removed, as they were incorrect, because their syntax cannot be replicated | |
411 | by Perl subroutines. | |
412 | ||
413 | =item * | |
414 | ||
7ffa7e75 FC |
415 | Most dereferencing operators (C<${}>, etc.) used to call C<FETCH> twice on |
416 | a tied operand when doing a symbolic dereference (looking up a variable by | |
417 | name, which is not permitted under C<use strict 'refs'>). Only C<&{}> did | |
418 | not have this problem. This has been fixed. | |
419 | ||
862b2c43 FC |
420 | =item * |
421 | ||
422 | A minor regression introduced in 5.15.0 has been fixed. Dereferencing a | |
423 | magical mortal (e.g., the return value of C<delete> on a tied hash element) | |
424 | explicitly returned from a subroutine called recursively was not calling | |
425 | C<FETCH>. This would affect code like C<@{ foo() }> where the C<foo> sub | |
426 | contains C<return delete $hash{elem}> and is calling itself. | |
427 | ||
c973bd4f KW |
428 | =item * |
429 | ||
430 | A panic involving the combination of the regular expression modifiers | |
431 | C</aa> and the C<\b> escape sequence introduced in 5.14.0 has been | |
432 | fixed [perl #95964]. | |
433 | ||
a6cefd81 TC |
434 | =item * |
435 | ||
436 | stat() would always return the inode number as an IV, even when the | |
437 | original was unsigned, or too large to fit in an IV. stat() now | |
438 | returns the inode number as the type that would best preserve the | |
439 | original value. [perl #84590] | |
440 | ||
5438d4b8 | 441 | =back |
c62f68e3 | 442 | |
5438d4b8 | 443 | =head1 Known Problems |
c62f68e3 | 444 | |
5438d4b8 Z |
445 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any |
446 | tests that had to be C<TODO>ed for the release would be noted here, unless | |
447 | they were specific to a particular platform (see below). | |
c62f68e3 | 448 | |
5438d4b8 Z |
449 | This is a list of some significant unfixed bugs, which are regressions |
450 | from either 5.XXX.XXX or 5.XXX.XXX. | |
e22e289d | 451 | |
5438d4b8 | 452 | [ List each fix as a =item entry ] |
e22e289d | 453 | |
5438d4b8 | 454 | =over 4 |
e22e289d | 455 | |
b908e258 Z |
456 | =item * |
457 | ||
5438d4b8 | 458 | XXX |
4ec40670 | 459 | |
5438d4b8 | 460 | =back |
4ec40670 | 461 | |
5438d4b8 | 462 | =head1 Obituary |
b908e258 | 463 | |
5438d4b8 Z |
464 | XXX If any significant core contributor has died, we've added a short obituary |
465 | here. | |
42a91c97 | 466 | |
44691e6f AB |
467 | =head1 Acknowledgements |
468 | ||
f1c1ecab | 469 | XXX Generate this with: |
5438d4b8 Z |
470 | |
471 | perl Porting/acknowledgements.pl v5.15.1..HEAD | |
29cf780c | 472 | |
44691e6f AB |
473 | =head1 Reporting Bugs |
474 | ||
475 | If you find what you think is a bug, you might check the articles | |
34dc2ec0 | 476 | recently posted to the comp.lang.perl.misc newsgroup and the perl |
44691e6f AB |
477 | bug database at http://rt.perl.org/perlbug/ . There may also be |
478 | information at http://www.perl.org/ , the Perl Home Page. | |
479 | ||
480 | If you believe you have an unreported bug, please run the L<perlbug> | |
481 | program included with your release. Be sure to trim your bug down | |
482 | to a tiny but sufficient test case. Your bug report, along with the | |
483 | output of C<perl -V>, will be sent off to perlbug@perl.org to be | |
484 | analysed by the Perl porting team. | |
485 | ||
486 | If the bug you are reporting has security implications, which make it | |
487 | inappropriate to send to a publicly archived mailing list, then please send | |
34dc2ec0 | 488 | it to perl5-security-report@perl.org. This points to a closed subscription |
b4707b2a FC |
489 | unarchived mailing list, which includes |
490 | all the core committers, who will be able | |
44691e6f AB |
491 | to help assess the impact of issues, figure out a resolution, and help |
492 | co-ordinate the release of patches to mitigate or fix the problem across all | |
34dc2ec0 DM |
493 | platforms on which Perl is supported. Please only use this address for |
494 | security issues in the Perl core, not for modules independently | |
44691e6f AB |
495 | distributed on CPAN. |
496 | ||
497 | =head1 SEE ALSO | |
498 | ||
499 | The F<Changes> file for an explanation of how to view exhaustive details | |
500 | on what changed. | |
501 | ||
502 | The F<INSTALL> file for how to build Perl. | |
503 | ||
504 | The F<README> file for general stuff. | |
505 | ||
506 | The F<Artistic> and F<Copying> files for copyright information. | |
507 | ||
508 | =cut |