This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
69395c2805137e4a40946b3e3648ac203215006e
[perl5.git] / pod / perldelta.pod
1 =encoding utf8
2
3 =head1 NAME
4
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.21.3
9
10 =head1 DESCRIPTION
11
12 This document describes differences between the 5.21.2 release and the 5.21.3
13 release.
14
15 If you are upgrading from an earlier release such as 5.21.1, first read
16 L<perl5212delta>, which describes differences between 5.21.1 and 5.21.2.
17
18 =head1 Notice
19
20 XXX Any important notices here
21
22 =head1 Core Enhancements
23
24 =head2 C<defined(@array = LIST)> is no longer fatal
25
26 In 5.21.1, C<defined(@array)> was made fatal.  This has been relaxed
27 to not die if the argument is assigning to an array.
28
29 =head1 Security
30
31 =head2 The L<Safe> module could allow outside packages to be replaced
32
33 Critical bugfix: outside packages could be replaced.  L<Safe> has
34 been patched to 2.38 to address this.
35
36 =head1 Incompatible Changes
37
38 =head2 S<C<use UNIVERSAL '...'>> is now a fatal error
39
40 Importing functions from C<UNIVERSAL> has been deprecated since v5.12, and
41 is now a fatal error.  S<C<"use UNIVERSAL">> without any arguments is still
42 allowed.
43
44 =head1 Deprecations
45
46 XXX Any deprecated features, syntax, modules etc. should be listed here.
47
48 [ List each other deprecation as a =head2 entry ]
49
50 =head1 Performance Enhancements
51
52 XXX Changes which enhance performance without changing behaviour go here.
53 There may well be none in a stable release.
54
55 [ List each enhancement as a =item entry ]
56
57 =over 4
58
59 =item *
60
61 XXX
62
63 =back
64
65 =head1 Modules and Pragmata
66
67 =head2 Updated Modules and Pragmata
68
69 =over 4
70
71 =item *
72
73 L<B::Debug> has been upgraded from version 1.19 to 1.21
74
75 =item *
76
77 L<Config::Perl::V> has been upgraded from version 0.20 to 0.22.
78
79 =item *
80
81 L<CPAN::Meta> has been upgraded from version 2.141520 to 2.142060.
82
83 =item *
84
85 L<CPAN::Meta::Requirements> has been upgraded from version 2.125 to 2.126.
86
87 =item *
88
89 L<ExtUtils::Manifest> has been upgraded from version 1.64 to 1.65.
90
91 The MANIFEST is now opened with C<:raw>, to prevent C<CRLF>s leaking in.
92
93 =item *
94
95 L<HTTP::Tiny> has been upgraded from version 0.043 to 0.047.
96
97 =item *
98
99 L<perl5db.pl> has been upgraded from version 1.45 to 1.46.
100
101 Fixed the scope level handling of the debugger's C<y> command.
102
103 =item *
104
105 L<POSIX> has been upgraded from version 1.41 to 1.42.
106
107 Replaced the thread-unsafe code used to prevent duplicate warning
108 messages for using the isxxx() functions.  [perl #122476]
109
110 =item *
111
112 L<Safe> has been upgraded from version 2.37 to 2.38.
113
114 Critical bugfix: outside packages could be replaced.
115
116 =item *
117
118 L<Socket> has been upgraded from version 2.014 to 2.015.
119
120 Test suite updates, particularly useful for Solaris and cygwin, and
121 a slight change to the pattern used for IPv4 address matching.
122
123 =back
124
125 =head1 Documentation
126
127 XXX Changes to files in F<pod/> go here.  Consider grouping entries by
128 file and be sure to link to the appropriate page, e.g. L<perlfunc>.
129
130 =head2 Changes to Existing Documentation
131
132 XXX Changes which significantly change existing files in F<pod/> go here.
133 However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics>
134 section.
135
136 =head3 L<XXX>
137
138 =over 4
139
140 =item *
141
142 XXX Description of the change here
143
144 =back
145
146 =head1 Diagnostics
147
148 The following additions or changes have been made to diagnostic output,
149 including warnings and fatal error messages.  For the complete list of
150 diagnostic messages, see L<perldiag>.
151
152 XXX New or changed warnings emitted by the core's C<C> code go here.  Also
153 include any changes in L<perldiag> that reconcile it to the C<C> code.
154
155 =head2 New Diagnostics
156
157 XXX Newly added diagnostic messages go under here, separated into New Errors
158 and New Warnings
159
160 =head3 New Errors
161
162 =over 4
163
164 =item *
165
166 XXX L<message|perldiag/"message">
167
168 =back
169
170 =head3 New Warnings
171
172 =over 4
173
174 =item *
175
176 L<Hexadecimal float: exponent overflow|perldiag/"Hexadecimal float: exponent overflow">
177
178 (W overflow) The hexadecimal floating point has larger exponent
179 than the floating point supports.
180
181 =item *
182
183 L<Hexadecimal float: exponent underflow|perldiag/"Hexadecimal float: exponent underflow">
184
185 (W overflow) The hexadecimal floating point has smaller exponent
186 than the floating point supports.
187
188 =item *
189
190 L<Hexadecimal float: internal error|perldiag/"Hexadecimal float: internal error">
191
192 (F) Something went horribly bad in hexadecimal float handling.
193
194 =item *
195
196 L<Hexadecimal float: mantissa overflow|perldiag/"Hexadecimal float: mantissa overflow">
197
198 (W overflow) The hexadecimal floating point literal had more bits in
199 the mantissa (the part between the 0x and the exponent, also known as
200 the fraction or the significand) than the floating point supports.
201
202 =item *
203
204 L<Hexadecimal float: precision loss|perldiag/"Hexadecimal float: precision loss">
205
206 (W overflow) The hexadecimal floating point had internally more
207 digits than could be output.  This can be caused by unsupported
208 long double formats, or by 64-bit integers not being available
209 (needed to retrieve the digits under some configurations).
210
211 =item *
212
213 L<Hexadecimal float: unsupported long double format|perldiag/"Hexadecimal float: unsupported long double format">
214
215 (F) You have configured Perl to use long doubles but
216 the internals of the long double format are unknown,
217 therefore the hexadecimal float output is impossible.
218
219 =back
220
221 =head2 Changes to Existing Diagnostics
222
223 XXX Changes (i.e. rewording) of diagnostic messages go here
224
225 =over 4
226
227 =item *
228
229 XXX Describe change here
230
231 =back
232
233 =head1 Configuration and Compilation
234
235 XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools
236 go here.  Any other changes to the Perl build process should be listed here.
237 However, any platform-specific changes should be listed in the
238 L</Platform Support> section, instead.
239
240 [ List changes as a =item entry ].
241
242 =over 4
243
244 =item *
245
246 Internal handling of floating point values has been improved.
247
248 =back
249
250 =head1 Testing
251
252 XXX Any significant changes to the testing of a freshly built perl should be
253 listed here.  Changes which create B<new> files in F<t/> go here as do any
254 large changes to the testing harness (e.g. when parallel testing was added).
255 Changes to existing files in F<t/> aren't worth summarizing, although the bugs
256 that they represent may be covered elsewhere.
257
258 [ List each test improvement as a =item entry ]
259
260 =over 4
261
262 =item *
263
264 XXX
265
266 =back
267
268 =head1 Platform Support
269
270 XXX Any changes to platform support should be listed in the sections below.
271
272 [ Within the sections, list each platform as a =item entry with specific
273 changes as paragraphs below it. ]
274
275 =head2 Platform-Specific Notes
276
277 XXX List any changes for specific platforms.  This could include configuration
278 and compilation changes or changes in portability/compatibility.  However,
279 changes within modules for platforms should generally be listed in the
280 L</Modules and Pragmata> section.
281
282 =over 4
283
284 =item XXX-some-platform
285
286 XXX
287
288 =back
289
290 =head1 Internal Changes
291
292 XXX Changes which affect the interface available to C<XS> code go here.  Other
293 significant internal changes for future core maintainers should be noted as
294 well.
295
296 [ List each change as a =item entry ]
297
298 =over 4
299
300 =item *
301
302 Added L<perlapi/sync_locale>.
303 Changing the program's locale should be avoided by XS code.  Nevertheless,
304 certain non-Perl libraries called from XS, such as C<Gtk> do so.  When this
305 happens, Perl needs to be told that the locale has changed.  Use this function
306 to do so, before returning to Perl.
307
308 =back
309
310 =head1 Selected Bug Fixes
311
312 XXX Important bug fixes in the core language are summarized here.  Bug fixes in
313 files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>.
314
315 [ List each fix as a =item entry ]
316
317 =over 4
318
319 =item *
320
321 Failing to compile C<use Foo> in an eval could leave a spurious
322 C<BEGIN> subroutine definition, which would produce a "Subroutine
323 BEGIN redefined" warning on the next use of C<use>, or other C<BEGIN>
324 block.  [perl #122107]
325
326 =item *
327
328 C<method { BLOCK } ARGS> syntax now correctly parses the arguments if they
329 begin with an opening brace.  [perl #46947]
330
331 =back
332
333 =head1 Known Problems
334
335 XXX Descriptions of platform agnostic bugs we know we can't fix go here.  Any
336 tests that had to be C<TODO>ed for the release would be noted here.  Unfixed
337 platform specific bugs also go here.
338
339 [ List each fix as a =item entry ]
340
341 =over 4
342
343 =item *
344
345 XXX
346
347 =back
348
349 =head1 Errata From Previous Releases
350
351 =over 4
352
353 =item *
354
355 XXX Add anything here that we forgot to add, or were mistaken about, in
356 the perldelta of a previous release.
357
358 =back
359
360 =head1 Acknowledgements
361
362 XXX Generate this with:
363
364   perl Porting/acknowledgements.pl v5.21.2..HEAD
365
366 =head1 Reporting Bugs
367
368 If you find what you think is a bug, you might check the articles recently
369 posted to the comp.lang.perl.misc newsgroup and the perl bug database at
370 https://rt.perl.org/ .  There may also be information at
371 http://www.perl.org/ , the Perl Home Page.
372
373 If you believe you have an unreported bug, please run the L<perlbug> program
374 included with your release.  Be sure to trim your bug down to a tiny but
375 sufficient test case.  Your bug report, along with the output of C<perl -V>,
376 will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
377
378 If the bug you are reporting has security implications, which make it
379 inappropriate to send to a publicly archived mailing list, then please send it
380 to perl5-security-report@perl.org.  This points to a closed subscription
381 unarchived mailing list, which includes all the core committers, who will be
382 able to help assess the impact of issues, figure out a resolution, and help
383 co-ordinate the release of patches to mitigate or fix the problem across all
384 platforms on which Perl is supported.  Please only use this address for
385 security issues in the Perl core, not for modules independently distributed on
386 CPAN.
387
388 =head1 SEE ALSO
389
390 The F<Changes> file for an explanation of how to view exhaustive details on
391 what changed.
392
393 The F<INSTALL> file for how to build Perl.
394
395 The F<README> file for general stuff.
396
397 The F<Artistic> and F<Copying> files for copyright information.
398
399 =cut