| 1 | =encoding utf8 |
| 2 | |
| 3 | =for comment |
| 4 | Stuff that needs to be done still: |
| 5 | e82485c [MERGE] refactor pp_match(), pp_subst(), regexec() |
| 6 | 6136213 [perl #52000] Warn/abort on attempted perl exit |
| 7 | cccbbce Reap child in case where exception has been thrown |
| 8 | |
| 9 | =head1 NAME |
| 10 | |
| 11 | [ this is a template for a new perldelta file. Any text flagged as XXX needs |
| 12 | to be processed before release. ] |
| 13 | |
| 14 | perldelta - what is new for perl v5.19.3 |
| 15 | |
| 16 | =head1 DESCRIPTION |
| 17 | |
| 18 | This document describes differences between the 5.19.2 release and the 5.19.3 |
| 19 | release. |
| 20 | |
| 21 | If you are upgrading from an earlier release such as 5.19.1, first read |
| 22 | L<perl5192delta>, which describes differences between 5.19.1 and 5.19.2. |
| 23 | |
| 24 | =head1 Notice |
| 25 | |
| 26 | XXX Any important notices here |
| 27 | |
| 28 | =head1 Core Enhancements |
| 29 | |
| 30 | XXX New core language features go here. Summarize user-visible core language |
| 31 | enhancements. Particularly prominent performance optimisations could go |
| 32 | here, but most should go in the L</Performance Enhancements> section. |
| 33 | |
| 34 | [ List each enhancement as a =head2 entry ] |
| 35 | |
| 36 | =head2 B<-F> now implies B<-a> and B<-a> implies B<-n> |
| 37 | |
| 38 | Previously B<-F> without B<-a> was a no-op, and B<-a> without B<-n> or |
| 39 | B<-p> was a no-op, with this change, if you supply B<-F> then both |
| 40 | B<-a> and B<-n> are implied and if you supply B<-a> then B<-n> is implied. |
| 41 | |
| 42 | You can still use B<-p> for its extra behaviour. [perl #116190] |
| 43 | |
| 44 | =head1 Security |
| 45 | |
| 46 | XXX Any security-related notices go here. In particular, any security |
| 47 | vulnerabilities closed should be noted here rather than in the |
| 48 | L</Selected Bug Fixes> section. |
| 49 | |
| 50 | [ List each security issue as a =head2 entry ] |
| 51 | |
| 52 | =head1 Incompatible Changes |
| 53 | |
| 54 | XXX For a release on a stable branch, this section aspires to be: |
| 55 | |
| 56 | There are no changes intentionally incompatible with 5.XXX.XXX |
| 57 | If any exist, they are bugs, and we request that you submit a |
| 58 | report. See L</Reporting Bugs> below. |
| 59 | |
| 60 | [ List each incompatible change as a =head2 entry ] |
| 61 | |
| 62 | =head1 Deprecations |
| 63 | |
| 64 | XXX Any deprecated features, syntax, modules etc. should be listed here. |
| 65 | |
| 66 | =head2 Module removals |
| 67 | |
| 68 | XXX Remove this section if inapplicable. |
| 69 | |
| 70 | The following modules will be removed from the core distribution in a |
| 71 | future release, and will at that time need to be installed from CPAN. |
| 72 | Distributions on CPAN which require these modules will need to list them as |
| 73 | prerequisites. |
| 74 | |
| 75 | The core versions of these modules will now issue C<"deprecated">-category |
| 76 | warnings to alert you to this fact. To silence these deprecation warnings, |
| 77 | install the modules in question from CPAN. |
| 78 | |
| 79 | Note that these are (with rare exceptions) fine modules that you are encouraged |
| 80 | to continue to use. Their disinclusion from core primarily hinges on their |
| 81 | necessity to bootstrapping a fully functional, CPAN-capable Perl installation, |
| 82 | not usually on concerns over their design. |
| 83 | |
| 84 | =over |
| 85 | |
| 86 | XXX Note that deprecated modules should be listed here even if they are listed |
| 87 | as an updated module in the L</Modules and Pragmata> section. |
| 88 | |
| 89 | =back |
| 90 | |
| 91 | [ List each other deprecation as a =head2 entry ] |
| 92 | |
| 93 | =head1 Performance Enhancements |
| 94 | |
| 95 | XXX Changes which enhance performance without changing behaviour go here. |
| 96 | There may well be none in a stable release. |
| 97 | |
| 98 | [ List each enhancement as a =item entry ] |
| 99 | |
| 100 | =over 4 |
| 101 | |
| 102 | =item * |
| 103 | |
| 104 | XXX |
| 105 | |
| 106 | =back |
| 107 | |
| 108 | =head1 Modules and Pragmata |
| 109 | |
| 110 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> |
| 111 | go here. If Module::CoreList is updated, generate an initial draft of the |
| 112 | following sections using F<Porting/corelist-perldelta.pl>, which prints stub |
| 113 | entries to STDOUT. Results can be pasted in place of the '=head2' entries |
| 114 | below. A paragraph summary for important changes should then be added by hand. |
| 115 | In an ideal world, dual-life modules would have a F<Changes> file that could be |
| 116 | cribbed. |
| 117 | |
| 118 | [ Within each section, list entries as a =item entry ] |
| 119 | |
| 120 | =head2 New Modules and Pragmata |
| 121 | |
| 122 | =over 4 |
| 123 | |
| 124 | =item * |
| 125 | |
| 126 | XXX |
| 127 | |
| 128 | =back |
| 129 | |
| 130 | =head2 Updated Modules and Pragmata |
| 131 | |
| 132 | =over 4 |
| 133 | |
| 134 | =item * |
| 135 | |
| 136 | L<B> has been upgraded from version 1.44 to 1.45. |
| 137 | |
| 138 | Calling the C<GV> method on C<B::CV> objects created from a lexical |
| 139 | sub would return nonsense, possibly crashing perl. C<GV> now returns |
| 140 | C<undef> for lexical subs. [perl #118525] |
| 141 | |
| 142 | Added the C<NAME_HEK> method to return the name of a lexical sub. |
| 143 | |
| 144 | =item * |
| 145 | |
| 146 | L<bignum> has been upgraded from version 0.35 to 0.36. |
| 147 | |
| 148 | L<bigrat> wasn't correctly updating an internal variable when C<use>d |
| 149 | with a C<lib> option. |
| 150 | |
| 151 | L<Carp> has been upgraded from 1.30 to 1.31 |
| 152 | |
| 153 | L<Carp> now handles objects with string overloads. It also allows objects |
| 154 | to specify how they appear in the stack dump with a C<CARP_TRACE> method, |
| 155 | and also allows the user to specify their own formatter for objects without |
| 156 | C<CARP_TRACE> as well as other references. [perl #92446] |
| 157 | |
| 158 | =item * |
| 159 | |
| 160 | L<Compress::Raw::Bzip2> has been upgraded from 2.061 to 2.062. |
| 161 | |
| 162 | =item * |
| 163 | |
| 164 | L<Compress::Raw::Zlib> has been upgraded from 2.061 to 2.062. |
| 165 | |
| 166 | =item * |
| 167 | |
| 168 | L<Config::Perl::V> has been upgraded from version 0.18 to 0.19. |
| 169 | |
| 170 | =item * |
| 171 | |
| 172 | L<Data::Dumper> has been upgraded from version 2.147 to 2.148. |
| 173 | |
| 174 | The compatbility of the XS implementation with the pure perl version |
| 175 | under C<Useqq> has been improved. [perl #118933] |
| 176 | |
| 177 | =item * |
| 178 | |
| 179 | L<Devel::Peek> has been upgraded from version 1.12 to 1.13. |
| 180 | |
| 181 | The C<SvREFCNT_inc()> and C<SvREFCNT_dec()> functions have been |
| 182 | removed and C<SvREFCNT()> will now work on non-scalars. [perl #117793] |
| 183 | |
| 184 | =item * |
| 185 | |
| 186 | L<Exporter> has been upgraded from version 5.68 to 5.69. |
| 187 | |
| 188 | L<Exporter> would ignore custom C<$SIG{__WARN__}> handlers in |
| 189 | C<Exporter::Heavy>. [perl #39739] |
| 190 | |
| 191 | =item * |
| 192 | |
| 193 | The IO-Compress module collection has been upgraded from 2.061 to 2.062. |
| 194 | |
| 195 | =item * |
| 196 | |
| 197 | L<IPC::Cmd> has been upgraded from version 0.82 to 0.84. |
| 198 | |
| 199 | C<run_forked> has various fixes/improvements, L<Socket> is only used where |
| 200 | needed and a regression introduced in 0.78 has been fixed. |
| 201 | |
| 202 | =item * |
| 203 | |
| 204 | The libnet module collection has been upgraded from version 1.22 to 1.23. |
| 205 | |
| 206 | =item * |
| 207 | |
| 208 | L<List::Util> has been upgraded from version 1.27 to 1.30 |
| 209 | |
| 210 | L<List::Util> now includes C<pairgrep>, C<pairmap>, C<pairs>, C<pairkeys>, |
| 211 | C<pairvalues> and C<pairfirst> functions that operate on even-sized lists of |
| 212 | pairs. |
| 213 | |
| 214 | =item * |
| 215 | |
| 216 | L<parent> has been upgraded from version 0.225 to 0.226. |
| 217 | |
| 218 | =item * |
| 219 | |
| 220 | L<Socket> has been upgraded from version 2.010 to 2.011. |
| 221 | |
| 222 | Handle FreeBSD (or other platforms) returning shorter AF_UNIX sockaddr |
| 223 | structures due to embedded sun_len. [cpan #86613] |
| 224 | |
| 225 | =item * |
| 226 | |
| 227 | L<Storable> has been upgraded from version 2.45 to 2.46. |
| 228 | |
| 229 | Avoid creating temporary objects for STORABLE_attach when they aren't |
| 230 | required. [perl #118907] |
| 231 | |
| 232 | =item * |
| 233 | |
| 234 | L<Time::Piece> has been upgraded from version 1.21 to 1.22. |
| 235 | |
| 236 | =back |
| 237 | |
| 238 | =head2 Removed Modules and Pragmata |
| 239 | |
| 240 | =over 4 |
| 241 | |
| 242 | =item * |
| 243 | |
| 244 | XXX |
| 245 | |
| 246 | =back |
| 247 | |
| 248 | =head1 Documentation |
| 249 | |
| 250 | XXX Changes to files in F<pod/> go here. Consider grouping entries by |
| 251 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. |
| 252 | |
| 253 | =head2 New Documentation |
| 254 | |
| 255 | XXX Changes which create B<new> files in F<pod/> go here. |
| 256 | |
| 257 | =head3 L<XXX> |
| 258 | |
| 259 | XXX Description of the purpose of the new file here |
| 260 | |
| 261 | =head2 Changes to Existing Documentation |
| 262 | |
| 263 | XXX Changes which significantly change existing files in F<pod/> go here. |
| 264 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> |
| 265 | section. |
| 266 | |
| 267 | =head3 L<perlopentut> |
| 268 | |
| 269 | =over 4 |
| 270 | |
| 271 | =item * |
| 272 | |
| 273 | The C<open> tutorial has been completely rewriten by Tom Christiansen, and now |
| 274 | focuses on covering only the basics, rather than providing a comprehensive |
| 275 | reference to all things openable. This rewrite came as the result of a |
| 276 | vigorous discussion on perl5-porters kicked off by a set of improvements |
| 277 | written by Alexander Hartmaier to the existing C<perlopentut>. A "more than |
| 278 | you ever wanted to know about C<open>" document may follow in subsequent |
| 279 | versions of perl. |
| 280 | |
| 281 | =back |
| 282 | |
| 283 | =head1 Diagnostics |
| 284 | |
| 285 | The following additions or changes have been made to diagnostic output, |
| 286 | including warnings and fatal error messages. For the complete list of |
| 287 | diagnostic messages, see L<perldiag>. |
| 288 | |
| 289 | XXX New or changed warnings emitted by the core's C<C> code go here. Also |
| 290 | include any changes in L<perldiag> that reconcile it to the C<C> code. |
| 291 | |
| 292 | =head2 New Diagnostics |
| 293 | |
| 294 | XXX Newly added diagnostic messages go under here, separated into New Errors |
| 295 | and New Warnings |
| 296 | |
| 297 | =head3 New Errors |
| 298 | |
| 299 | =over 4 |
| 300 | |
| 301 | =item * |
| 302 | |
| 303 | XXX L<message|perldiag/"message"> |
| 304 | |
| 305 | =back |
| 306 | |
| 307 | =head3 New Warnings |
| 308 | |
| 309 | =over 4 |
| 310 | |
| 311 | =item * |
| 312 | |
| 313 | XXX L<message|perldiag/"message"> |
| 314 | |
| 315 | =back |
| 316 | |
| 317 | =head2 Changes to Existing Diagnostics |
| 318 | |
| 319 | XXX Changes (i.e. rewording) of diagnostic messages go here |
| 320 | |
| 321 | =over 4 |
| 322 | |
| 323 | =item * |
| 324 | |
| 325 | XXX Describe change here |
| 326 | |
| 327 | =back |
| 328 | |
| 329 | =head1 Utility Changes |
| 330 | |
| 331 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here. |
| 332 | Most of these are built within the directories F<utils> and F<x2p>. |
| 333 | |
| 334 | [ List utility changes as a =head3 entry for each utility and =item |
| 335 | entries for each change |
| 336 | Use L<XXX> with program names to get proper documentation linking. ] |
| 337 | |
| 338 | =head3 L<XXX> |
| 339 | |
| 340 | =over 4 |
| 341 | |
| 342 | =item * |
| 343 | |
| 344 | XXX |
| 345 | |
| 346 | =back |
| 347 | |
| 348 | =head1 Configuration and Compilation |
| 349 | |
| 350 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools |
| 351 | go here. Any other changes to the Perl build process should be listed here. |
| 352 | However, any platform-specific changes should be listed in the |
| 353 | L</Platform Support> section, instead. |
| 354 | |
| 355 | [ List changes as a =item entry ]. |
| 356 | |
| 357 | =over 4 |
| 358 | |
| 359 | =item * |
| 360 | |
| 361 | XXX |
| 362 | |
| 363 | =back |
| 364 | |
| 365 | =head1 Testing |
| 366 | |
| 367 | XXX Any significant changes to the testing of a freshly built perl should be |
| 368 | listed here. Changes which create B<new> files in F<t/> go here as do any |
| 369 | large changes to the testing harness (e.g. when parallel testing was added). |
| 370 | Changes to existing files in F<t/> aren't worth summarizing, although the bugs |
| 371 | that they represent may be covered elsewhere. |
| 372 | |
| 373 | [ List each test improvement as a =item entry ] |
| 374 | |
| 375 | =over 4 |
| 376 | |
| 377 | =item * |
| 378 | |
| 379 | XXX |
| 380 | |
| 381 | =back |
| 382 | |
| 383 | =head1 Platform Support |
| 384 | |
| 385 | XXX Any changes to platform support should be listed in the sections below. |
| 386 | |
| 387 | [ Within the sections, list each platform as a =item entry with specific |
| 388 | changes as paragraphs below it. ] |
| 389 | |
| 390 | =head2 New Platforms |
| 391 | |
| 392 | XXX List any platforms that this version of perl compiles on, that previous |
| 393 | versions did not. These will either be enabled by new files in the F<hints/> |
| 394 | directories, or new subdirectories and F<README> files at the top level of the |
| 395 | source tree. |
| 396 | |
| 397 | =over 4 |
| 398 | |
| 399 | =item XXX-some-platform |
| 400 | |
| 401 | XXX |
| 402 | |
| 403 | =back |
| 404 | |
| 405 | =head2 Discontinued Platforms |
| 406 | |
| 407 | XXX List any platforms that this version of perl no longer compiles on. |
| 408 | |
| 409 | =over 4 |
| 410 | |
| 411 | =item XXX-some-platform |
| 412 | |
| 413 | XXX |
| 414 | |
| 415 | =back |
| 416 | |
| 417 | =head2 Platform-Specific Notes |
| 418 | |
| 419 | XXX List any changes for specific platforms. This could include configuration |
| 420 | and compilation changes or changes in portability/compatibility. However, |
| 421 | changes within modules for platforms should generally be listed in the |
| 422 | L</Modules and Pragmata> section. |
| 423 | |
| 424 | =over 4 |
| 425 | |
| 426 | =item XXX-some-platform |
| 427 | |
| 428 | XXX |
| 429 | |
| 430 | =back |
| 431 | |
| 432 | =head1 Internal Changes |
| 433 | |
| 434 | XXX Changes which affect the interface available to C<XS> code go here. Other |
| 435 | significant internal changes for future core maintainers should be noted as |
| 436 | well. |
| 437 | |
| 438 | [ List each change as a =item entry ] |
| 439 | |
| 440 | =over 4 |
| 441 | |
| 442 | =item * |
| 443 | |
| 444 | C<sv_pos_b2u_flags> has been added to the API. It is similar to |
| 445 | C<sv_pos_b2u>, but supports long strings on 64-bit platforms. |
| 446 | |
| 447 | =back |
| 448 | |
| 449 | =head1 Selected Bug Fixes |
| 450 | |
| 451 | XXX Important bug fixes in the core language are summarized here. Bug fixes in |
| 452 | files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. |
| 453 | |
| 454 | [ List each fix as a =item entry ] |
| 455 | |
| 456 | =over 4 |
| 457 | |
| 458 | =item * |
| 459 | |
| 460 | Autovivifying a subroutine stub via C<\&$glob> started causing crashes in |
| 461 | Perl 5.18.0 if the $glob was merely a copy of a real glob, i.e., a scalar |
| 462 | that had had a glob assigned to it. This has been fixed [perl #119051]. |
| 463 | |
| 464 | =item * |
| 465 | |
| 466 | On 64-bit platforms C<pos> can now be set to a value higher than 2**31-1 |
| 467 | [perl #72766]. |
| 468 | |
| 469 | =item * |
| 470 | |
| 471 | Perl used to leak an implementation detail when it came to referencing the |
| 472 | return values of certain operators. C<for ($a+$b) { warn \$_; warn \$_ }> |
| 473 | used to display two different memory addresses, because the C<\> operator |
| 474 | was copying the variable. Under threaded builds, it would also happen for |
| 475 | constants (C<for(1) { ... }>). This has been fixed [perl #21979, #78194, |
| 476 | #89188, #109746, #114838, #115388]. |
| 477 | |
| 478 | =item * |
| 479 | |
| 480 | The range operator C<..> was returning the same modifiable scalars with |
| 481 | each call, unless it was the only thing in a C<foreach> loop header. This |
| 482 | meant that changes to values within the list returned would be visible the |
| 483 | next time the operator was executed [perl #3105]. |
| 484 | |
| 485 | =item * |
| 486 | |
| 487 | Constant folding and subroutine inlining no longer cause operations that |
| 488 | would normally return new modifiable scalars to return read-only values |
| 489 | instead. |
| 490 | |
| 491 | =item * |
| 492 | |
| 493 | Closures of the form C<sub () { $some_variable }> are no longer inlined, |
| 494 | causing changes to the variable to be ignored by callers of the subroutine |
| 495 | [perl #79908]. |
| 496 | |
| 497 | =item * |
| 498 | |
| 499 | Return values of certain operators such as C<ref> would sometimes be shared |
| 500 | between recursive calls to the same subroutine, causing the inner call to |
| 501 | modify the value returned by C<ref> in the outer call. This has been |
| 502 | fixed. |
| 503 | |
| 504 | =item * |
| 505 | |
| 506 | C<__PACKAGE__> and constants returning a package name or hash key are now |
| 507 | consistently read-only. In various previous Perl releases, they have |
| 508 | become mutable under certain circumstances. |
| 509 | |
| 510 | =back |
| 511 | |
| 512 | =head1 Known Problems |
| 513 | |
| 514 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any |
| 515 | tests that had to be C<TODO>ed for the release would be noted here. Unfixed |
| 516 | platform specific bugs also go here. |
| 517 | |
| 518 | [ List each fix as a =item entry ] |
| 519 | |
| 520 | =over 4 |
| 521 | |
| 522 | =item * |
| 523 | |
| 524 | XXX |
| 525 | |
| 526 | =back |
| 527 | |
| 528 | =head1 Obituary |
| 529 | |
| 530 | XXX If any significant core contributor has died, we've added a short obituary |
| 531 | here. |
| 532 | |
| 533 | =head1 Acknowledgements |
| 534 | |
| 535 | XXX Generate this with: |
| 536 | |
| 537 | perl Porting/acknowledgements.pl v5.19.2..HEAD |
| 538 | |
| 539 | =head1 Reporting Bugs |
| 540 | |
| 541 | If you find what you think is a bug, you might check the articles recently |
| 542 | posted to the comp.lang.perl.misc newsgroup and the perl bug database at |
| 543 | http://rt.perl.org/perlbug/ . There may also be information at |
| 544 | http://www.perl.org/ , the Perl Home Page. |
| 545 | |
| 546 | If you believe you have an unreported bug, please run the L<perlbug> program |
| 547 | included with your release. Be sure to trim your bug down to a tiny but |
| 548 | sufficient test case. Your bug report, along with the output of C<perl -V>, |
| 549 | will be sent off to perlbug@perl.org to be analysed by the Perl porting team. |
| 550 | |
| 551 | If the bug you are reporting has security implications, which make it |
| 552 | inappropriate to send to a publicly archived mailing list, then please send it |
| 553 | to perl5-security-report@perl.org. This points to a closed subscription |
| 554 | unarchived mailing list, which includes all the core committers, who will be |
| 555 | able to help assess the impact of issues, figure out a resolution, and help |
| 556 | co-ordinate the release of patches to mitigate or fix the problem across all |
| 557 | platforms on which Perl is supported. Please only use this address for |
| 558 | security issues in the Perl core, not for modules independently distributed on |
| 559 | CPAN. |
| 560 | |
| 561 | =head1 SEE ALSO |
| 562 | |
| 563 | The F<Changes> file for an explanation of how to view exhaustive details on |
| 564 | what changed. |
| 565 | |
| 566 | The F<INSTALL> file for how to build Perl. |
| 567 | |
| 568 | The F<README> file for general stuff. |
| 569 | |
| 570 | The F<Artistic> and F<Copying> files for copyright information. |
| 571 | |
| 572 | =cut |