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