This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
c92bb872613f83178b9d39708b8042e91bee0d04
[perl5.git] / pod / perldelta.pod
1 =encoding utf8
2
3 =for comment
4 This has been completed up to a75c6ed6bbe.
5
6 =head1 NAME
7
8 [ this is a template for a new perldelta file. Any text flagged as
9 XXX needs to be processed before release. ]
10
11 perldelta - what is new for perl v5.15.8
12
13 =head1 DESCRIPTION
14
15 This document describes differences between the 5.15.7 release and
16 the 5.15.8 release.
17
18 If you are upgrading from an earlier release such as 5.15.6, first read
19 L<perl5157delta>, which describes differences between 5.15.6 and
20 5.15.7.
21
22 =head1 Notice
23
24 XXX Any important notices here
25
26 =head1 Core Enhancements
27
28 XXX New core language features go here. Summarise user-visible core language
29 enhancements. Particularly prominent performance optimisations could go
30 here, but most should go in the L</Performance Enhancements> section.
31
32 [ List each enhancement as a =head2 entry ]
33
34 =head2 Improved ability to mix locales and Unicode, including UTF-8 locales
35
36 An optional parameter has been added to C<use locale>
37
38  use locale ':not_characters';
39
40 which tells Perl to use all but the C<LC_CTYPE> and C<LC_COLLATE>
41 portions of the current locale.  Instead, the character set is assumed
42 to be Unicode.  This allows locales and Unicode to be seamlessly mixed,
43 including the increasingly frequent UTF-8 locales.  When using this
44 hybrid form of locales, the C<:locale> layer to the L<open> pragma can
45 be used to interface with the file system, and there are CPAN modules
46 available for ARGV and environment variable conversions.
47
48 Full details are in L<perllocale>.
49
50 =head2 New function C<fc> and corresponding escape sequence C<\F> for Unicode foldcase
51
52 Unicode foldcase is an extension to lowercase that gives better results
53 when comparing two strings case-insensitively.  It has long been used
54 internally in regular expression C</i> matching.  Now it is available
55 explicitly through the new C<fc> function call (enabled by
56 S<C<"use feature 'fc'">>, or C<use v5.16>, or explicitly callable via
57 C<CORE::fc>) or through the new C<\F> sequence in double-quotish
58 strings.
59
60 Full details are in L<perlfunc/fc>.
61
62 =head1 Security
63
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 ]
69
70 =head1 Incompatible Changes
71
72 XXX For a release on a stable branch, this section aspires to be:
73
74     There are no changes intentionally incompatible with 5.XXX.XXX
75     If any exist, they are bugs, and we request that you submit a
76     report.  See L</Reporting Bugs> below.
77
78 [ List each incompatible change as a =head2 entry ]
79
80 =head2 Special blocks called in void context
81
82 Special blocks (C<BEGIN>, C<CHECK>, C<INIT>, C<UNITCHECK>, C<END>) are now
83 called in void context.  This avoids wasteful copying of the result of the
84 last statement [perl #108794].
85
86 =head2 The C<overloading> pragma and regexp objects
87
88 With C<no overloading>, regular expression objects returned by C<qr//> are
89 now stringified as "Regexp=REGEXP(0xbe600d)" instead of the regular
90 expression itself [perl #108780].
91
92 =head1 Deprecations
93
94 XXX Any deprecated features, syntax, modules etc. should be listed here.
95 In particular, deprecated modules should be listed here even if they are
96 listed as an updated module in the L</Modules and Pragmata> section.
97
98 [ List each deprecation as a =head2 entry ]
99
100 =head1 Performance Enhancements
101
102 XXX Changes which enhance performance without changing behaviour go here. There
103 may well be none in a stable release.
104
105 [ List each enhancement as a =item entry ]
106
107 =over 4
108
109 =item *
110
111 XXX
112
113 =back
114
115 =head1 Modules and Pragmata
116
117 XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/>
118 go here.  If Module::CoreList is updated, generate an initial draft of the
119 following sections using F<Porting/corelist-perldelta.pl>, which prints stub
120 entries to STDOUT.  Results can be pasted in place of the '=head2' entries
121 below.  A paragraph summary for important changes should then be added by hand.
122 In an ideal world, dual-life modules would have a F<Changes> file that could be
123 cribbed.
124
125 [ Within each section, list entries as a =item entry ]
126
127 =head2 New Modules and Pragmata
128
129 =over 4
130
131 =item *
132
133 XXX
134
135 =back
136
137 =head2 Updated Modules and Pragmata
138
139 =over 4
140
141 =item *
142
143 L<B> has been upgraded from version 1.33 to version 1.34.
144
145 C<B::COP> now has a C<stashflags> method, corresponding to a new internal
146 field added in 5.15.4 [perl #108860].
147
148 =item *
149
150 L<Compress::Raw::Bzip2> has been upgraded from version 2.045 to version 2.048.
151
152 =item *
153
154 L<Compress::Raw::Zlib> has been upgraded from version 2.045 to version 2.048.
155
156 =item *
157
158 L<Compress::Zlib> has been upgraded from version 2.046 to version 2.048.
159
160 =item *
161
162 L<DB_File> has been upgraded from version 1.824 to version 1.826.
163
164 =item *
165
166 L<diagnostics> has been upgraded from version 1.27 to version 1.28.
167
168 When searching for F<perldiag.pod>, it no longer uses paths that were only
169 relevant on Perl 5.004 and earlier.
170
171 =item *
172
173 L<IPC::Cmd> has been upgraded from version 0.72 to version 0.76.
174
175 =item *
176
177 L<Math::Complex> has been upgraded from version 1.58 to version 1.59.
178
179 This avoids a new core warning.
180
181 =item *
182
183 L<Pod::Parser> has been upgraded from version 1.37 to version 1.51.
184
185 =item *
186
187 L<Time::HiRes>  has been upgraded from version 1.9724 to version 1.9725.
188
189 There is an important bugfix for C<Time::HiRes::stat()>.
190
191 =item *
192
193 L<Unicode::UCD> has been upgraded from version 0.39 to 0.40.
194
195 The only change is to fix a formatting error in the Pod.
196
197 =back
198
199 =head2 Removed Modules and Pragmata
200
201 =over 4
202
203 =item *
204
205 XXX
206
207 =back
208
209 =head1 Documentation
210
211 XXX Changes to files in F<pod/> go here.  Consider grouping entries by
212 file and be sure to link to the appropriate page, e.g. L<perlfunc>.
213
214 =head2 New Documentation
215
216 XXX Changes which create B<new> files in F<pod/> go here.
217
218 =head3 L<XXX>
219
220 XXX Description of the purpose of the new file here
221
222 =head2 Changes to Existing Documentation
223
224 XXX Changes which significantly change existing files in F<pod/> go here.
225 However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
226 section.
227
228 =head3 L<XXX>
229
230 =over 4
231
232 =item *
233
234 XXX Description of the change here
235
236 =back
237
238 =head1 Diagnostics
239
240 The following additions or changes have been made to diagnostic output,
241 including warnings and fatal error messages.  For the complete list of
242 diagnostic messages, see L<perldiag>.
243
244 XXX New or changed warnings emitted by the core's C<C> code go here. Also
245 include any changes in L<perldiag> that reconcile it to the C<C> code.
246
247 [ Within each section, list entries as a =item entry that links to perldiag,
248   e.g.
249
250   =item *
251
252   L<Invalid version object|perldiag/"Invalid version object">
253 ]
254
255 =head2 New Diagnostics
256
257 XXX Newly added diagnostic messages go here
258
259 =head3 New Errors
260
261 =over 4
262
263 =item *
264
265 XXX L<message|perldiag/"message">
266
267 =back
268
269 =head3 New Warnings
270
271 =over 4
272
273 =item *
274
275 XXX L<message|perldiag/"message">
276
277 =back
278
279 =head2 Changes to Existing Diagnostics
280
281 XXX Changes (i.e. rewording) of diagnostic messages go here
282
283 =over 4
284
285 =item *
286
287 XXX Describe change here
288
289 =back
290
291 =head1 Utility Changes
292
293 XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go
294 here. Most of these are built within the directories F<utils> and F<x2p>.
295
296 [ List utility changes as a =head3 entry for each utility and =item
297 entries for each change
298 Use L<XXX> with program names to get proper documentation linking. ]
299
300 =head3 L<XXX>
301
302 =over 4
303
304 =item *
305
306 XXX
307
308 =back
309
310 =head1 Configuration and Compilation
311
312 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
313 go here.  Any other changes to the Perl build process should be listed here.
314 However, any platform-specific changes should be listed in the
315 L</Platform Support> section, instead.
316
317 [ List changes as a =item entry ].
318
319 =over 4
320
321 =item *
322
323 XXX
324
325 =back
326
327 =head1 Testing
328
329 XXX Any significant changes to the testing of a freshly built perl should be
330 listed here.  Changes which create B<new> files in F<t/> go here as do any
331 large changes to the testing harness (e.g. when parallel testing was added).
332 Changes to existing files in F<t/> aren't worth summarising, although the bugs
333 that they represent may be covered elsewhere.
334
335 [ List each test improvement as a =item entry ]
336
337 =over 4
338
339 =item *
340
341 XXX
342
343 =back
344
345 =head1 Platform Support
346
347 XXX Any changes to platform support should be listed in the sections below.
348
349 [ Within the sections, list each platform as a =item entry with specific
350 changes as paragraphs below it. ]
351
352 =head2 New Platforms
353
354 XXX List any platforms that this version of perl compiles on, that previous
355 versions did not. These will either be enabled by new files in the F<hints/>
356 directories, or new subdirectories and F<README> files at the top level of the
357 source tree.
358
359 =over 4
360
361 =item XXX-some-platform
362
363 XXX
364
365 =back
366
367 =head2 Discontinued Platforms
368
369 XXX List any platforms that this version of perl no longer compiles on.
370
371 =over 4
372
373 =item XXX-some-platform
374
375 XXX
376
377 =back
378
379 =head2 Platform-Specific Notes
380
381 XXX List any changes for specific platforms. This could include configuration
382 and compilation changes or changes in portability/compatibility.  However,
383 changes within modules for platforms should generally be listed in the
384 L</Modules and Pragmata> section.
385
386 =over 4
387
388 =item XXX-some-platform
389
390 XXX
391
392 =back
393
394 =head1 Internal Changes
395
396 XXX Changes which affect the interface available to C<XS> code go here.
397 Other significant internal changes for future core maintainers should
398 be noted as well.
399
400 [ List each change as a =item entry ]
401
402 =over 4
403
404 =item *
405
406 XXX
407
408 =back
409
410 =head1 Selected Bug Fixes
411
412 XXX Important bug fixes in the core language are summarised here.
413 Bug fixes in files in F<ext/> and F<lib/> are best summarised in
414 L</Modules and Pragmata>.
415
416 [ List each fix as a =item entry ]
417
418 =over 4
419
420 =item *
421
422 C<~~> now correctly handles the precedence of Any~~Object, and is not tricked
423 by an overloaded object on the left-hand side.
424
425 =item *
426
427 C<stat _> no longer warns about unopened filehandles [perl #71002].
428
429 =item *
430
431 C<stat> on an unopened filehandle now warns consistently, instead of
432 skipping the warning at times.
433
434 =item *
435
436 A change in an earlier 5.15 release caused warning hints to propagate into
437 C<do $file>.  This has been fixed [rt.cpan.org #72767].
438
439 =item *
440
441 Starting with 5.12.0, Perl used to get its internal bookkeeping muddled up
442 after assigning C<${ qr// }> to a hash element and locking it with
443 L<Hash::Util>.  This could result in double frees, crashes or erratic
444 behaviour.
445
446 =item *
447
448 In 5.15.7, some typeglobs in the CORE namespace were made read-only by
449 mistake.  This has been fixed [rt.cpan.org #74289].
450
451 =item *
452
453 C<-t> now works when stacked with other filetest operators [perl #77388].
454
455 =item *
456
457 Stacked filetest operators now only call FETCH once on a tied argument.
458
459 =back
460
461 =head1 Known Problems
462
463 XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any
464 tests that had to be C<TODO>ed for the release would be noted here, unless
465 they were specific to a particular platform (see below).
466
467 This is a list of some significant unfixed bugs, which are regressions
468 from either 5.XXX.XXX or 5.XXX.XXX.
469
470 [ List each fix as a =item entry ]
471
472 =over 4
473
474 =item *
475
476 XXX
477
478 =back
479
480 =head1 Obituary
481
482 XXX If any significant core contributor has died, we've added a short obituary
483 here.
484
485 =head1 Acknowledgements
486
487 XXX Generate this with:
488
489   perl Porting/acknowledgements.pl v5.15.7..HEAD
490
491 =head1 Reporting Bugs
492
493 If you find what you think is a bug, you might check the articles
494 recently posted to the comp.lang.perl.misc newsgroup and the perl
495 bug database at http://rt.perl.org/perlbug/ .  There may also be
496 information at http://www.perl.org/ , the Perl Home Page.
497
498 If you believe you have an unreported bug, please run the L<perlbug>
499 program included with your release.  Be sure to trim your bug down
500 to a tiny but sufficient test case.  Your bug report, along with the
501 output of C<perl -V>, will be sent off to perlbug@perl.org to be
502 analysed by the Perl porting team.
503
504 If the bug you are reporting has security implications, which make it
505 inappropriate to send to a publicly archived mailing list, then please send
506 it to perl5-security-report@perl.org. This points to a closed subscription
507 unarchived mailing list, which includes
508 all the core committers, who will be able
509 to help assess the impact of issues, figure out a resolution, and help
510 co-ordinate the release of patches to mitigate or fix the problem across all
511 platforms on which Perl is supported. Please only use this address for
512 security issues in the Perl core, not for modules independently
513 distributed on CPAN.
514
515 =head1 SEE ALSO
516
517 The F<Changes> file for an explanation of how to view exhaustive details
518 on what changed.
519
520 The F<INSTALL> file for how to build Perl.
521
522 The F<README> file for general stuff.
523
524 The F<Artistic> and F<Copying> files for copyright information.
525
526 =cut