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 | ||
c85f23b2 DD |
171 | L<IPC::Open3> has been upgraded from version 1.18 to 1.19. |
172 | ||
173 | If a Perl exception was thrown from inside this module, the exception | |
779c45ce | 174 | C<IPC::Open3> threw to the callers of C<open3> would have an irrelevant |
c85f23b2 DD |
175 | message derived from C<$!> which was in an undefined state, instead of the |
176 | C<$@> message which triggers the failure path inside C<open3>. | |
eabfc7bc | 177 | |
fc4c3cec RS |
178 | =back |
179 | ||
180 | =head2 Removed Modules and Pragmata | |
eabfc7bc | 181 | |
fc4c3cec | 182 | =over 4 |
374c951f SH |
183 | |
184 | =item * | |
185 | ||
fc4c3cec | 186 | XXX |
e586de20 | 187 | |
fc4c3cec | 188 | =back |
e586de20 | 189 | |
fc4c3cec | 190 | =head1 Documentation |
fd0a842f | 191 | |
fc4c3cec RS |
192 | XXX Changes to files in F<pod/> go here. Consider grouping entries by |
193 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
fd0a842f | 194 | |
fc4c3cec | 195 | =head2 New Documentation |
99527ef1 | 196 | |
fc4c3cec | 197 | XXX Changes which create B<new> files in F<pod/> go here. |
99527ef1 | 198 | |
fc4c3cec | 199 | =head3 L<XXX> |
a4f8ff46 | 200 | |
fc4c3cec | 201 | XXX Description of the purpose of the new file here |
a4f8ff46 | 202 | |
fc4c3cec | 203 | =head2 Changes to Existing Documentation |
73d6481e | 204 | |
fc4c3cec RS |
205 | XXX Changes which significantly change existing files in F<pod/> go here. |
206 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
207 | section. | |
208 | ||
209 | =head3 L<XXX> | |
73d6481e | 210 | |
fc4c3cec | 211 | =over 4 |
eabfc7bc RS |
212 | |
213 | =item * | |
214 | ||
fc4c3cec | 215 | XXX Description of the change here |
b7b593d8 | 216 | |
fc4c3cec | 217 | =back |
b7b593d8 | 218 | |
fc4c3cec | 219 | =head1 Diagnostics |
b7b593d8 | 220 | |
fc4c3cec RS |
221 | The following additions or changes have been made to diagnostic output, |
222 | including warnings and fatal error messages. For the complete list of | |
223 | diagnostic messages, see L<perldiag>. | |
b7b593d8 | 224 | |
fc4c3cec RS |
225 | XXX New or changed warnings emitted by the core's C<C> code go here. Also |
226 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
b7b593d8 | 227 | |
fc4c3cec | 228 | =head2 New Diagnostics |
b7b593d8 | 229 | |
fc4c3cec RS |
230 | XXX Newly added diagnostic messages go under here, separated into New Errors |
231 | and New Warnings | |
b7b593d8 | 232 | |
fc4c3cec RS |
233 | =head3 New Errors |
234 | ||
235 | =over 4 | |
eabfc7bc | 236 | |
ef5cf9f5 TC |
237 | =item * |
238 | ||
fc4c3cec | 239 | XXX L<message|perldiag/"message"> |
72b8c7a2 | 240 | |
fc4c3cec | 241 | =back |
72b8c7a2 | 242 | |
fc4c3cec RS |
243 | =head3 New Warnings |
244 | ||
245 | =over 4 | |
bdb6acef SH |
246 | |
247 | =item * | |
248 | ||
fc4c3cec | 249 | XXX L<message|perldiag/"message"> |
ef5cf9f5 | 250 | |
fc4c3cec | 251 | =back |
3d58dd24 | 252 | |
fc4c3cec RS |
253 | =head2 Changes to Existing Diagnostics |
254 | ||
255 | XXX Changes (i.e. rewording) of diagnostic messages go here | |
256 | ||
257 | =over 4 | |
4b951711 TC |
258 | |
259 | =item * | |
260 | ||
fc4c3cec | 261 | XXX Describe change here |
eabfc7bc | 262 | |
fc4c3cec | 263 | =back |
eabfc7bc | 264 | |
fc4c3cec | 265 | =head1 Utility Changes |
eabfc7bc | 266 | |
fc4c3cec RS |
267 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go here. |
268 | Most of these are built within the directory F<utils>. | |
eabfc7bc | 269 | |
fc4c3cec RS |
270 | [ List utility changes as a =head2 entry for each utility and =item |
271 | entries for each change | |
272 | Use L<XXX> with program names to get proper documentation linking. ] | |
eabfc7bc | 273 | |
fc4c3cec RS |
274 | =head2 L<XXX> |
275 | ||
276 | =over 4 | |
eabfc7bc RS |
277 | |
278 | =item * | |
279 | ||
fc4c3cec | 280 | XXX |
eabfc7bc | 281 | |
fc4c3cec | 282 | =back |
eabfc7bc | 283 | |
fc4c3cec | 284 | =head1 Configuration and Compilation |
eabfc7bc | 285 | |
fc4c3cec RS |
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. | |
eabfc7bc | 290 | |
fc4c3cec | 291 | [ List changes as a =item entry ]. |
eabfc7bc | 292 | |
fc4c3cec | 293 | =over 4 |
eabfc7bc RS |
294 | |
295 | =item * | |
296 | ||
fc4c3cec | 297 | XXX |
eabfc7bc | 298 | |
fc4c3cec | 299 | =back |
eabfc7bc | 300 | |
fc4c3cec | 301 | =head1 Testing |
eabfc7bc | 302 | |
fc4c3cec RS |
303 | XXX Any significant changes to the testing of a freshly built perl should be |
304 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
305 | large changes to the testing harness (e.g. when parallel testing was added). | |
306 | Changes to existing files in F<t/> aren't worth summarizing, although the bugs | |
307 | that they represent may be covered elsewhere. | |
308 | ||
309 | [ List each test improvement as a =item entry ] | |
310 | ||
311 | =over 4 | |
eabfc7bc | 312 | |
fc4c3cec | 313 | =item * |
eabfc7bc | 314 | |
fc4c3cec | 315 | XXX |
eabfc7bc | 316 | |
2cfe9b50 | 317 | =back |
33ca8d3c | 318 | |
73d6481e | 319 | =head1 Platform Support |
eabfc7bc | 320 | |
fc4c3cec | 321 | XXX Any changes to platform support should be listed in the sections below. |
eabfc7bc | 322 | |
fc4c3cec RS |
323 | [ Within the sections, list each platform as a =item entry with specific |
324 | changes as paragraphs below it. ] | |
eabfc7bc | 325 | |
fc4c3cec | 326 | =head2 New Platforms |
42fe7840 | 327 | |
fc4c3cec RS |
328 | XXX List any platforms that this version of perl compiles on, that previous |
329 | versions did not. These will either be enabled by new files in the F<hints/> | |
330 | directories, or new subdirectories and F<README> files at the top level of the | |
331 | source tree. | |
332 | ||
333 | =over 4 | |
42fe7840 | 334 | |
fc4c3cec RS |
335 | =item XXX-some-platform |
336 | ||
337 | XXX | |
42fe7840 CB |
338 | |
339 | =back | |
340 | ||
fc4c3cec | 341 | =head2 Discontinued Platforms |
eabfc7bc | 342 | |
fc4c3cec | 343 | XXX List any platforms that this version of perl no longer compiles on. |
269713a1 | 344 | |
fc4c3cec | 345 | =over 4 |
269713a1 | 346 | |
fc4c3cec | 347 | =item XXX-some-platform |
269713a1 | 348 | |
fc4c3cec | 349 | XXX |
463e63a4 | 350 | |
fc4c3cec | 351 | =back |
463e63a4 | 352 | |
fc4c3cec | 353 | =head2 Platform-Specific Notes |
9c0328ac | 354 | |
fc4c3cec RS |
355 | XXX List any changes for specific platforms. This could include configuration |
356 | and compilation changes or changes in portability/compatibility. However, | |
357 | changes within modules for platforms should generally be listed in the | |
358 | L</Modules and Pragmata> section. | |
9c0328ac | 359 | |
fc4c3cec RS |
360 | =over 4 |
361 | ||
7d380357 | 362 | =item VMS |
fc4c3cec | 363 | |
7d380357 RS |
364 | =over |
365 | ||
366 | =item * | |
367 | ||
368 | The minimum supported version of VMS is now v7.3-2, released in 2003. As a | |
369 | side effect of this change, VAX is no longer supported as the terminal | |
370 | release of OpenVMS VAX was v7.3 in 2001. | |
371 | ||
372 | =back | |
eabfc7bc | 373 | |
2cfe9b50 | 374 | =back |
eabfc7bc | 375 | |
fc4c3cec RS |
376 | =head1 Internal Changes |
377 | ||
378 | XXX Changes which affect the interface available to C<XS> code go here. Other | |
379 | significant internal changes for future core maintainers should be noted as | |
380 | well. | |
381 | ||
382 | [ List each change as a =item entry ] | |
eabfc7bc | 383 | |
2cfe9b50 | 384 | =over 4 |
eabfc7bc RS |
385 | |
386 | =item * | |
387 | ||
fc4c3cec | 388 | XXX |
eabfc7bc | 389 | |
fc4c3cec | 390 | =back |
302ef3d4 | 391 | |
fc4c3cec | 392 | =head1 Selected Bug Fixes |
302ef3d4 | 393 | |
fc4c3cec RS |
394 | XXX Important bug fixes in the core language are summarized here. Bug fixes in |
395 | files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. | |
eabfc7bc | 396 | |
fc4c3cec RS |
397 | [ List each fix as a =item entry ] |
398 | ||
399 | =over 4 | |
eabfc7bc | 400 | |
73d6481e | 401 | =item * |
eabfc7bc | 402 | |
7ed1d857 DD |
403 | A leak in the XS typemap caused one scalar to be leaked each time a C<FILE *> |
404 | or a C<PerlIO *> was C<OUTPUT:>ed or imported to Perl, since perl 5.000. These | |
405 | particular typemap entries are thought to be extremely rarely used by XS | |
406 | modules. [perl #124181] | |
eabfc7bc | 407 | |
fc4c3cec RS |
408 | =back |
409 | ||
410 | =head1 Known Problems | |
411 | ||
412 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any | |
413 | tests that had to be C<TODO>ed for the release would be noted here. Unfixed | |
414 | platform specific bugs also go here. | |
415 | ||
416 | [ List each fix as a =item entry ] | |
eabfc7bc | 417 | |
fc4c3cec RS |
418 | =over 4 |
419 | ||
420 | =item * | |
eabfc7bc | 421 | |
fc4c3cec | 422 | XXX |
eabfc7bc | 423 | |
73d6481e | 424 | =back |
eabfc7bc | 425 | |
fc4c3cec | 426 | =head1 Errata From Previous Releases |
eabfc7bc | 427 | |
fc4c3cec | 428 | =over 4 |
eabfc7bc | 429 | |
fc4c3cec | 430 | =item * |
2a7a05b4 | 431 | |
fc4c3cec RS |
432 | XXX Add anything here that we forgot to add, or were mistaken about, in |
433 | the perldelta of a previous release. | |
30aa8e3f | 434 | |
fc4c3cec | 435 | =back |
30aa8e3f | 436 | |
fc4c3cec RS |
437 | =head1 Obituary |
438 | ||
439 | XXX If any significant core contributor has died, we've added a short obituary | |
440 | here. | |
441 | ||
442 | =head1 Acknowledgements | |
2a7a05b4 | 443 | |
fc4c3cec | 444 | XXX Generate this with: |
2cfe9b50 | 445 | |
fc4c3cec | 446 | perl Porting/acknowledgements.pl v5.23.1..HEAD |
f5b73711 | 447 | |
44691e6f AB |
448 | =head1 Reporting Bugs |
449 | ||
e08634c5 SH |
450 | If you find what you think is a bug, you might check the articles recently |
451 | posted to the comp.lang.perl.misc newsgroup and the perl bug database at | |
fc4c3cec RS |
452 | L<https://rt.perl.org/> . There may also be information at |
453 | L<http://www.perl.org/> , the Perl Home Page. | |
44691e6f | 454 | |
e08634c5 SH |
455 | If you believe you have an unreported bug, please run the L<perlbug> program |
456 | included with your release. Be sure to trim your bug down to a tiny but | |
457 | sufficient test case. Your bug report, along with the output of C<perl -V>, | |
458 | will be sent off to perlbug@perl.org to be analysed by the Perl porting team. | |
44691e6f AB |
459 | |
460 | If the bug you are reporting has security implications, which make it | |
e08634c5 SH |
461 | inappropriate to send to a publicly archived mailing list, then please send it |
462 | to perl5-security-report@perl.org. This points to a closed subscription | |
463 | unarchived mailing list, which includes all the core committers, who will be | |
464 | able to help assess the impact of issues, figure out a resolution, and help | |
f9001595 | 465 | co-ordinate the release of patches to mitigate or fix the problem across all |
e08634c5 SH |
466 | platforms on which Perl is supported. Please only use this address for |
467 | security issues in the Perl core, not for modules independently distributed on | |
468 | CPAN. | |
44691e6f AB |
469 | |
470 | =head1 SEE ALSO | |
471 | ||
e08634c5 SH |
472 | The F<Changes> file for an explanation of how to view exhaustive details on |
473 | what changed. | |
44691e6f AB |
474 | |
475 | The F<INSTALL> file for how to build Perl. | |
476 | ||
477 | The F<README> file for general stuff. | |
478 | ||
479 | The F<Artistic> and F<Copying> files for copyright information. | |
480 | ||
481 | =cut |