Commit | Line | Data |
---|---|---|
44691e6f AB |
1 | =encoding utf8 |
2 | ||
3 | =head1 NAME | |
4 | ||
fc4c3cec RS |
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.23.1 | |
eabfc7bc | 9 | |
2cfe9b50 | 10 | =head1 DESCRIPTION |
eabfc7bc | 11 | |
fc4c3cec | 12 | This document describes differences between the 5.23.0 release and the 5.23.1 |
2cfe9b50 | 13 | release. |
eabfc7bc | 14 | |
fc4c3cec RS |
15 | If you are upgrading from an earlier release such as 5.22.0, first read |
16 | L<perl5230delta>, which describes differences between 5.22.0 and 5.23.0. | |
17 | ||
18 | =head1 Notice | |
19 | ||
20 | XXX Any important notices here | |
21 | ||
2cfe9b50 | 22 | =head1 Core Enhancements |
eabfc7bc | 23 | |
fc4c3cec RS |
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. | |
ac71d2a0 | 27 | |
fc4c3cec | 28 | [ List each enhancement as a =head2 entry ] |
ac71d2a0 | 29 | |
deaaea8c JH |
30 | =head2 Integer shift (C<< << >> and C<< >> >>) now explicitly defined |
31 | ||
32 | Negative shifts are reverse shifts: left shift becomes right shift, | |
33 | and right shift becomes left shift. | |
34 | ||
35 | Shifting by the number of bits in a native integer (or more) is zero, | |
36 | except when the "overshift" is right shifting a negative value under | |
37 | C<use integer>, in which case the result is -1 (arithmetic shift). | |
38 | ||
39 | Until now negative shifting and overshifting have been undefined | |
40 | because they have relied on whatever the C implementation happens | |
41 | to do. For example, for the "overshift" a common behavior C is | |
42 | "modulo shift": | |
43 | ||
44 | 1 >> 64 == 1 >> (64 % 64) == 1 >> 0 == 1 # Common C behavior. | |
45 | ||
46 | # And the same for <<, while Perl now produces 0 for both. | |
47 | ||
48 | Now these behaviors are well-defined under Perl, regardless of what | |
49 | the underlying C implementation does. Note, however, that you cannot | |
50 | escape the native integer width. If you need more bits on the left shift, | |
51 | you could use the C<bigint> pragma. | |
52 | ||
7d380357 RS |
53 | =head2 Postfix dereferencing is no longer experimental |
54 | ||
1c2511e0 AC |
55 | Using the C<postderef> and C<postderef_qq> features no longer emits a |
56 | warning. Existing code that disables the C<experimental::postderef> warning | |
57 | category that they previously used will continue to work. The C<postderef> | |
58 | feature has no effect; all Perl code can use postfix dereferencing, | |
59 | regardless of what feature declarations are in scope. The C<5.24> feature | |
60 | bundle now includes the C<postderef_qq> feature. | |
7d380357 | 61 | |
fc4c3cec | 62 | =head1 Security |
2ad792cd | 63 | |
fc4c3cec RS |
64 | XXX Any security-related notices go here. In particular, any security |
65 | vulnerabilities closed should be noted here rather than in the | |
66 | L</Selected Bug Fixes> section. | |
67 | ||
68 | [ List each security issue as a =head2 entry ] | |
2ad792cd | 69 | |
2cfe9b50 | 70 | =head1 Incompatible Changes |
eabfc7bc | 71 | |
ce4793f1 KW |
72 | =head2 ASCII characters in variable names must now be all visible |
73 | ||
74 | It was legal until now on ASCII platforms for variable names to contain | |
75 | non-graphical ASCII control characters (ordinals 0 through 31, and 127, | |
76 | which are the C0 controls and C<DELETE>). This usage has been | |
77 | deprecated since v5.20, and as of now causes a syntax error. The | |
78 | variables these names referred to are special, reserved by Perl for | |
79 | whatever use it may choose, now, or in the future. Each such variable | |
80 | has an alternative way of spelling it. Instead of the single | |
81 | non-graphic control character, a two character sequence beginning with a | |
82 | caret is used, like C<$^]> and C<${^GLOBAL_PHASE}>. Details are at | |
83 | L<perlvar>. It remains legal, though unwise and deprecated (raising a | |
84 | deprecation warning), to use certain non-graphic non-ASCII characters in | |
85 | variables names when not under S<C<use utf8>>. No code should do this, | |
86 | as all such variables are reserved by Perl, and Perl doesn't currently | |
87 | define any of them (but could at any time, without notice). | |
eabfc7bc | 88 | |
26230909 AC |
89 | =head2 The C<autoderef> feature has been removed |
90 | ||
91 | The experimental C<autoderef> feature (which allowed calling C<push>, | |
92 | C<pop>, C<shift>, C<unshift>, C<splice>, C<keys>, C<values>, and C<each> on | |
93 | a scalar argument) has been deemed unsuccessful. It has now been removed; | |
94 | trying to use the feature (or to disable the C<experimental::autoderef> | |
95 | warning it previously triggered) now yields an exception. | |
96 | ||
fc4c3cec | 97 | =head1 Deprecations |
eabfc7bc | 98 | |
fc4c3cec | 99 | XXX Any deprecated features, syntax, modules etc. should be listed here. |
eabfc7bc | 100 | |
fc4c3cec RS |
101 | =head2 Module removals |
102 | ||
103 | XXX Remove this section if inapplicable. | |
104 | ||
105 | The following modules will be removed from the core distribution in a | |
106 | future release, and will at that time need to be installed from CPAN. | |
107 | Distributions on CPAN which require these modules will need to list them as | |
108 | prerequisites. | |
109 | ||
110 | The core versions of these modules will now issue C<"deprecated">-category | |
111 | warnings to alert you to this fact. To silence these deprecation warnings, | |
112 | install the modules in question from CPAN. | |
113 | ||
114 | Note that these are (with rare exceptions) fine modules that you are encouraged | |
115 | to continue to use. Their disinclusion from core primarily hinges on their | |
116 | necessity to bootstrapping a fully functional, CPAN-capable Perl installation, | |
117 | not usually on concerns over their design. | |
118 | ||
119 | =over | |
120 | ||
121 | =item XXX | |
122 | ||
123 | XXX Note that deprecated modules should be listed here even if they are listed | |
124 | as an updated module in the L</Modules and Pragmata> section. | |
125 | ||
126 | =back | |
127 | ||
128 | [ List each other deprecation as a =head2 entry ] | |
129 | ||
130 | =head1 Performance Enhancements | |
131 | ||
132 | XXX Changes which enhance performance without changing behaviour go here. | |
133 | There may well be none in a stable release. | |
134 | ||
135 | [ List each enhancement as a =item entry ] | |
eabfc7bc | 136 | |
73d6481e | 137 | =over 4 |
eabfc7bc | 138 | |
73d6481e | 139 | =item * |
eabfc7bc | 140 | |
fc4c3cec | 141 | XXX |
eabfc7bc | 142 | |
fc4c3cec | 143 | =back |
eabfc7bc | 144 | |
fc4c3cec | 145 | =head1 Modules and Pragmata |
eabfc7bc | 146 | |
fc4c3cec RS |
147 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> |
148 | go here. If Module::CoreList is updated, generate an initial draft of the | |
149 | following sections using F<Porting/corelist-perldelta.pl>. A paragraph summary | |
150 | for important changes should then be added by hand. In an ideal world, | |
151 | dual-life modules would have a F<Changes> file that could be cribbed. | |
eabfc7bc | 152 | |
fc4c3cec | 153 | [ Within each section, list entries as a =item entry ] |
eabfc7bc | 154 | |
fc4c3cec | 155 | =head2 New Modules and Pragmata |
eabfc7bc | 156 | |
fc4c3cec | 157 | =over 4 |
eabfc7bc | 158 | |
73d6481e | 159 | =item * |
eabfc7bc | 160 | |
fc4c3cec | 161 | XXX |
eabfc7bc | 162 | |
fc4c3cec | 163 | =back |
eabfc7bc | 164 | |
fc4c3cec RS |
165 | =head2 Updated Modules and Pragmata |
166 | ||
167 | =over 4 | |
eabfc7bc RS |
168 | |
169 | =item * | |
170 | ||
dc013420 SH |
171 | L<autodie> has been upgraded from version 2.28 to 2.29. |
172 | ||
173 | =item * | |
174 | ||
c85f23b2 DD |
175 | L<IPC::Open3> has been upgraded from version 1.18 to 1.19. |
176 | ||
177 | If a Perl exception was thrown from inside this module, the exception | |
779c45ce | 178 | C<IPC::Open3> threw to the callers of C<open3> would have an irrelevant |
c85f23b2 DD |
179 | message derived from C<$!> which was in an undefined state, instead of the |
180 | C<$@> message which triggers the failure path inside C<open3>. | |
eabfc7bc | 181 | |
6962a25d SH |
182 | =item * |
183 | ||
184 | L<Unicode::Collate> has been upgraded from version 1.12 to 1.14. | |
185 | ||
fc4c3cec RS |
186 | =back |
187 | ||
188 | =head2 Removed Modules and Pragmata | |
eabfc7bc | 189 | |
fc4c3cec | 190 | =over 4 |
374c951f SH |
191 | |
192 | =item * | |
193 | ||
fc4c3cec | 194 | XXX |
e586de20 | 195 | |
fc4c3cec | 196 | =back |
e586de20 | 197 | |
fc4c3cec | 198 | =head1 Documentation |
fd0a842f | 199 | |
fc4c3cec RS |
200 | XXX Changes to files in F<pod/> go here. Consider grouping entries by |
201 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
fd0a842f | 202 | |
fc4c3cec | 203 | =head2 New Documentation |
99527ef1 | 204 | |
fc4c3cec | 205 | XXX Changes which create B<new> files in F<pod/> go here. |
99527ef1 | 206 | |
fc4c3cec | 207 | =head3 L<XXX> |
a4f8ff46 | 208 | |
fc4c3cec | 209 | XXX Description of the purpose of the new file here |
a4f8ff46 | 210 | |
fc4c3cec | 211 | =head2 Changes to Existing Documentation |
73d6481e | 212 | |
fc4c3cec RS |
213 | XXX Changes which significantly change existing files in F<pod/> go here. |
214 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
215 | section. | |
216 | ||
217 | =head3 L<XXX> | |
73d6481e | 218 | |
fc4c3cec | 219 | =over 4 |
eabfc7bc RS |
220 | |
221 | =item * | |
222 | ||
fc4c3cec | 223 | XXX Description of the change here |
b7b593d8 | 224 | |
fc4c3cec | 225 | =back |
b7b593d8 | 226 | |
fc4c3cec | 227 | =head1 Diagnostics |
b7b593d8 | 228 | |
fc4c3cec RS |
229 | The following additions or changes have been made to diagnostic output, |
230 | including warnings and fatal error messages. For the complete list of | |
231 | diagnostic messages, see L<perldiag>. | |
b7b593d8 | 232 | |
fc4c3cec RS |
233 | XXX New or changed warnings emitted by the core's C<C> code go here. Also |
234 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
b7b593d8 | 235 | |
fc4c3cec | 236 | =head2 New Diagnostics |
b7b593d8 | 237 | |
fc4c3cec RS |
238 | XXX Newly added diagnostic messages go under here, separated into New Errors |
239 | and New Warnings | |
b7b593d8 | 240 | |
fc4c3cec RS |
241 | =head3 New Errors |
242 | ||
243 | =over 4 | |
eabfc7bc | 244 | |
ef5cf9f5 TC |
245 | =item * |
246 | ||
fc4c3cec | 247 | XXX L<message|perldiag/"message"> |
72b8c7a2 | 248 | |
fc4c3cec | 249 | =back |
72b8c7a2 | 250 | |
fc4c3cec RS |
251 | =head3 New Warnings |
252 | ||
253 | =over 4 | |
bdb6acef SH |
254 | |
255 | =item * | |
256 | ||
fc4c3cec | 257 | XXX L<message|perldiag/"message"> |
ef5cf9f5 | 258 | |
fc4c3cec | 259 | =back |
3d58dd24 | 260 | |
fc4c3cec RS |
261 | =head2 Changes to Existing Diagnostics |
262 | ||
263 | XXX Changes (i.e. rewording) of diagnostic messages go here | |
264 | ||
265 | =over 4 | |
4b951711 TC |
266 | |
267 | =item * | |
268 | ||
fc4c3cec | 269 | XXX Describe change here |
eabfc7bc | 270 | |
fc4c3cec | 271 | =back |
eabfc7bc | 272 | |
fc4c3cec | 273 | =head1 Utility Changes |
eabfc7bc | 274 | |
fc4c3cec RS |
275 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here. |
276 | Most of these are built within the directory F<utils>. | |
eabfc7bc | 277 | |
fc4c3cec RS |
278 | [ List utility changes as a =head2 entry for each utility and =item |
279 | entries for each change | |
280 | Use L<XXX> with program names to get proper documentation linking. ] | |
eabfc7bc | 281 | |
fc4c3cec RS |
282 | =head2 L<XXX> |
283 | ||
284 | =over 4 | |
eabfc7bc RS |
285 | |
286 | =item * | |
287 | ||
fc4c3cec | 288 | XXX |
eabfc7bc | 289 | |
fc4c3cec | 290 | =back |
eabfc7bc | 291 | |
fc4c3cec | 292 | =head1 Configuration and Compilation |
eabfc7bc | 293 | |
fc4c3cec RS |
294 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools |
295 | go here. Any other changes to the Perl build process should be listed here. | |
296 | However, any platform-specific changes should be listed in the | |
297 | L</Platform Support> section, instead. | |
eabfc7bc | 298 | |
fc4c3cec | 299 | [ List changes as a =item entry ]. |
eabfc7bc | 300 | |
fc4c3cec | 301 | =over 4 |
eabfc7bc RS |
302 | |
303 | =item * | |
304 | ||
fc4c3cec | 305 | XXX |
eabfc7bc | 306 | |
fc4c3cec | 307 | =back |
eabfc7bc | 308 | |
fc4c3cec | 309 | =head1 Testing |
eabfc7bc | 310 | |
fc4c3cec RS |
311 | XXX Any significant changes to the testing of a freshly built perl should be |
312 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
313 | large changes to the testing harness (e.g. when parallel testing was added). | |
314 | Changes to existing files in F<t/> aren't worth summarizing, although the bugs | |
315 | that they represent may be covered elsewhere. | |
316 | ||
317 | [ List each test improvement as a =item entry ] | |
318 | ||
319 | =over 4 | |
eabfc7bc | 320 | |
fc4c3cec | 321 | =item * |
eabfc7bc | 322 | |
fc4c3cec | 323 | XXX |
eabfc7bc | 324 | |
2cfe9b50 | 325 | =back |
33ca8d3c | 326 | |
73d6481e | 327 | =head1 Platform Support |
eabfc7bc | 328 | |
fc4c3cec | 329 | XXX Any changes to platform support should be listed in the sections below. |
eabfc7bc | 330 | |
fc4c3cec RS |
331 | [ Within the sections, list each platform as a =item entry with specific |
332 | changes as paragraphs below it. ] | |
eabfc7bc | 333 | |
fc4c3cec | 334 | =head2 New Platforms |
42fe7840 | 335 | |
fc4c3cec RS |
336 | XXX List any platforms that this version of perl compiles on, that previous |
337 | versions did not. These will either be enabled by new files in the F<hints/> | |
338 | directories, or new subdirectories and F<README> files at the top level of the | |
339 | source tree. | |
340 | ||
341 | =over 4 | |
42fe7840 | 342 | |
fc4c3cec RS |
343 | =item XXX-some-platform |
344 | ||
345 | XXX | |
42fe7840 CB |
346 | |
347 | =back | |
348 | ||
fc4c3cec | 349 | =head2 Discontinued Platforms |
eabfc7bc | 350 | |
fc4c3cec | 351 | XXX List any platforms that this version of perl no longer compiles on. |
269713a1 | 352 | |
fc4c3cec | 353 | =over 4 |
269713a1 | 354 | |
fc4c3cec | 355 | =item XXX-some-platform |
269713a1 | 356 | |
fc4c3cec | 357 | XXX |
463e63a4 | 358 | |
fc4c3cec | 359 | =back |
463e63a4 | 360 | |
fc4c3cec | 361 | =head2 Platform-Specific Notes |
9c0328ac | 362 | |
fc4c3cec RS |
363 | XXX List any changes for specific platforms. This could include configuration |
364 | and compilation changes or changes in portability/compatibility. However, | |
365 | changes within modules for platforms should generally be listed in the | |
366 | L</Modules and Pragmata> section. | |
9c0328ac | 367 | |
fc4c3cec RS |
368 | =over 4 |
369 | ||
7d380357 | 370 | =item VMS |
fc4c3cec | 371 | |
7d380357 RS |
372 | =over |
373 | ||
374 | =item * | |
375 | ||
376 | The minimum supported version of VMS is now v7.3-2, released in 2003. As a | |
377 | side effect of this change, VAX is no longer supported as the terminal | |
378 | release of OpenVMS VAX was v7.3 in 2001. | |
379 | ||
380 | =back | |
eabfc7bc | 381 | |
2cfe9b50 | 382 | =back |
eabfc7bc | 383 | |
fc4c3cec RS |
384 | =head1 Internal Changes |
385 | ||
386 | XXX Changes which affect the interface available to C<XS> code go here. Other | |
387 | significant internal changes for future core maintainers should be noted as | |
388 | well. | |
389 | ||
390 | [ List each change as a =item entry ] | |
eabfc7bc | 391 | |
2cfe9b50 | 392 | =over 4 |
eabfc7bc RS |
393 | |
394 | =item * | |
395 | ||
fc4c3cec | 396 | XXX |
eabfc7bc | 397 | |
fc4c3cec | 398 | =back |
302ef3d4 | 399 | |
fc4c3cec | 400 | =head1 Selected Bug Fixes |
302ef3d4 | 401 | |
fc4c3cec RS |
402 | XXX Important bug fixes in the core language are summarized here. Bug fixes in |
403 | files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. | |
eabfc7bc | 404 | |
fc4c3cec RS |
405 | [ List each fix as a =item entry ] |
406 | ||
407 | =over 4 | |
eabfc7bc | 408 | |
73d6481e | 409 | =item * |
eabfc7bc | 410 | |
7ed1d857 DD |
411 | A leak in the XS typemap caused one scalar to be leaked each time a C<FILE *> |
412 | or a C<PerlIO *> was C<OUTPUT:>ed or imported to Perl, since perl 5.000. These | |
413 | particular typemap entries are thought to be extremely rarely used by XS | |
414 | modules. [perl #124181] | |
eabfc7bc | 415 | |
fc4c3cec RS |
416 | =back |
417 | ||
418 | =head1 Known Problems | |
419 | ||
420 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any | |
421 | tests that had to be C<TODO>ed for the release would be noted here. Unfixed | |
422 | platform specific bugs also go here. | |
423 | ||
424 | [ List each fix as a =item entry ] | |
eabfc7bc | 425 | |
fc4c3cec RS |
426 | =over 4 |
427 | ||
428 | =item * | |
eabfc7bc | 429 | |
fc4c3cec | 430 | XXX |
eabfc7bc | 431 | |
73d6481e | 432 | =back |
eabfc7bc | 433 | |
fc4c3cec | 434 | =head1 Errata From Previous Releases |
eabfc7bc | 435 | |
fc4c3cec | 436 | =over 4 |
eabfc7bc | 437 | |
fc4c3cec | 438 | =item * |
2a7a05b4 | 439 | |
fc4c3cec RS |
440 | XXX Add anything here that we forgot to add, or were mistaken about, in |
441 | the perldelta of a previous release. | |
30aa8e3f | 442 | |
fc4c3cec | 443 | =back |
30aa8e3f | 444 | |
fc4c3cec RS |
445 | =head1 Obituary |
446 | ||
447 | XXX If any significant core contributor has died, we've added a short obituary | |
448 | here. | |
449 | ||
450 | =head1 Acknowledgements | |
2a7a05b4 | 451 | |
fc4c3cec | 452 | XXX Generate this with: |
2cfe9b50 | 453 | |
fc4c3cec | 454 | perl Porting/acknowledgements.pl v5.23.1..HEAD |
f5b73711 | 455 | |
44691e6f AB |
456 | =head1 Reporting Bugs |
457 | ||
e08634c5 SH |
458 | If you find what you think is a bug, you might check the articles recently |
459 | posted to the comp.lang.perl.misc newsgroup and the perl bug database at | |
fc4c3cec RS |
460 | L<https://rt.perl.org/> . There may also be information at |
461 | L<http://www.perl.org/> , the Perl Home Page. | |
44691e6f | 462 | |
e08634c5 SH |
463 | If you believe you have an unreported bug, please run the L<perlbug> program |
464 | included with your release. Be sure to trim your bug down to a tiny but | |
465 | sufficient test case. Your bug report, along with the output of C<perl -V>, | |
466 | will be sent off to perlbug@perl.org to be analysed by the Perl porting team. | |
44691e6f AB |
467 | |
468 | If the bug you are reporting has security implications, which make it | |
e08634c5 SH |
469 | inappropriate to send to a publicly archived mailing list, then please send it |
470 | to perl5-security-report@perl.org. This points to a closed subscription | |
471 | unarchived mailing list, which includes all the core committers, who will be | |
472 | able to help assess the impact of issues, figure out a resolution, and help | |
f9001595 | 473 | co-ordinate the release of patches to mitigate or fix the problem across all |
e08634c5 SH |
474 | platforms on which Perl is supported. Please only use this address for |
475 | security issues in the Perl core, not for modules independently distributed on | |
476 | CPAN. | |
44691e6f AB |
477 | |
478 | =head1 SEE ALSO | |
479 | ||
e08634c5 SH |
480 | The F<Changes> file for an explanation of how to view exhaustive details on |
481 | what changed. | |
44691e6f AB |
482 | |
483 | The F<INSTALL> file for how to build Perl. | |
484 | ||
485 | The F<README> file for general stuff. | |
486 | ||
487 | The F<Artistic> and F<Copying> files for copyright information. | |
488 | ||
489 | =cut |