Commit | Line | Data |
---|---|---|
3a5c9134 CBW |
1 | =encoding utf8 |
2 | ||
59773fc7 | 3 | =for comment |
c35766a7 | 4 | This has been completed up to ca88a729. |
59773fc7 | 5 | |
3a5c9134 CBW |
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.13.8 | |
12 | ||
13 | =head1 DESCRIPTION | |
14 | ||
15 | This document describes differences between the 5.13.8 release and | |
16 | the 5.13.7 release. | |
17 | ||
dbbe2d83 | 18 | If you are upgrading from an earlier release such as 5.13.6, first read |
3a5c9134 CBW |
19 | L<perl5137delta>, which describes differences between 5.13.6 and |
20 | 5.13.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 | ||
b19934fb NC |
34 | =head2 C<-d:-foo> calls C<Devel::foo::unimport> |
35 | ||
36 | The syntax C<-dI<B<:>foo>> was extended in 5.6.1 to make C<-dI<:fooB<=bar>>> | |
6a8c8694 FC |
37 | equivalent to C<-MDevel::foo=bar>, which expands |
38 | internally to C<use Devel::foo 'bar';>. | |
b19934fb NC |
39 | F<perl> now allows prefixing the module name with C<->, with the same |
40 | semantics as C<-M>, I<i.e.> | |
41 | ||
42 | =over 4 | |
43 | ||
44 | =item C<-d:-foo> | |
45 | ||
6a8c8694 FC |
46 | Equivalent to C<-M-Devel::foo>, expands to |
47 | C<no Devel::foo;>, calls C<< Devel::foo->unimport() >> | |
b19934fb NC |
48 | if the method exists. |
49 | ||
50 | =item C<-d:-foo=bar> | |
51 | ||
6a8c8694 FC |
52 | Equivalent to C<-M-Devel::foo=bar>, expands to C<no Devel::foo 'bar';>, |
53 | calls C<< Devel::foo->unimport('bar') >> if the method exists. | |
b19934fb NC |
54 | |
55 | =back | |
56 | ||
57 | This is particularly useful to suppresses the default actions of a | |
58 | C<Devel::*> module's C<import> method whilst still loading it for debugging. | |
59 | ||
15e6cdd9 DG |
60 | =head2 Filehandle method calls load IO::File on demand |
61 | ||
62 | When a method call on a filehandle would die because the method can not | |
63 | be resolved and L<IO::File> has not been loaded, Perl now loads IO::File | |
64 | via C<require> and attempts method resolution again: | |
65 | ||
66 | open my $fh, ">", $file; | |
67 | $fh->binmode(":raw"); # loads IO::File and succeeds | |
68 | ||
69 | This also works for globs like STDOUT, STDERR and STDIN: | |
70 | ||
71 | STDOUT->autoflush(1); | |
72 | ||
73 | Because this on-demand load only happens if method resolution fails, the | |
74 | legacy approach of manually loading an IO::File parent class for partial | |
75 | method support still works as expected: | |
76 | ||
77 | use IO::Handle; | |
78 | open my $fh, ">", $file; | |
79 | $fh->autoflush(1); # IO::File not loaded | |
80 | ||
20db7501 KW |
81 | =head2 Full functionality for C<use feature 'unicode_strings'> |
82 | ||
83 | This release provides full functionality for C<use feature | |
84 | 'unicode_strings'>. Under its scope, all string operations executed and | |
85 | regular expressions compiled (even if executed outside its scope) have | |
86 | Unicode semantics. See L<feature>. | |
87 | ||
88 | This feature avoids the "Unicode Bug" (See | |
89 | L<perlunicode/The "Unicode Bug"> for details.) If their is a | |
90 | possibility that your code will process Unicode strings, you are | |
91 | B<strongly> encouraged to use this subpragma to avoid nasty surprises. | |
92 | ||
07291fb1 KW |
93 | This availability of this should strongly affect the whole tone of |
94 | various documents, such as L<perlunicode> and L<perluniintro>, but this | |
95 | work has not been done yet. | |
96 | ||
ee076ba5 FR |
97 | =head2 Exception Handling Backcompat Hack |
98 | ||
99 | When an exception is thrown in an C<eval BLOCK>, C<$@> is now set before | |
100 | unwinding, as well as being set after unwinding as the eval block exits. This | |
101 | early setting supports code that has historically treated C<$@> during unwinding | |
102 | as an indicator of whether the unwinding was due to an exception. These modules | |
103 | had been broken by 5.13.1's change from setting C<$@> early to setting it late. | |
104 | This double setting arrangement is a stopgap until the reason for unwinding can | |
105 | be made properly introspectable. C<$@> has never been a reliable indicator of | |
106 | this. | |
107 | ||
f6166f76 CS |
108 | =head2 printf-like functions understand size modifiers "hh", "z", "t", and sometimes "j" |
109 | ||
110 | Perl's printf and sprintf operators, and Perl's internal printf replacement | |
111 | function, now understand the C90 size modifiers "hh" (C<char>), "z" | |
112 | (C<size_t>), and "t" (C<ptrdiff_t>). Also, when compiled with a C99 | |
113 | compiler, Perl now understands the size modifier "j" (C<intmax_t>). | |
114 | ||
115 | So, for example, on any modern machine, C<sprintf('%hhd', 257)> returns '1'. | |
116 | ||
0d157ee2 DL |
117 | =head2 DTrace probes now include package name |
118 | ||
119 | The DTrace probes now include an additional argument (C<arg3>) which contains | |
120 | the package the subroutine being entered or left was compiled in. | |
121 | ||
122 | For example using the following DTrace script: | |
123 | ||
124 | perl$target:::sub-entry | |
125 | { | |
126 | printf("%s::%s\n", copyinstr(arg0), copyinstr(arg3)); | |
127 | } | |
128 | ||
129 | and then running: | |
130 | ||
131 | perl -e'sub test { }; test' | |
132 | ||
133 | DTrace will print: | |
134 | ||
135 | main::test | |
136 | ||
bd8e866d FC |
137 | =head2 Stacked labels |
138 | ||
139 | Multiple statement labels can now appear before a single statement. | |
140 | ||
3a5c9134 CBW |
141 | =head1 Security |
142 | ||
143 | XXX Any security-related notices go here. In particular, any security | |
144 | vulnerabilities closed should be noted here rather than in the | |
145 | L</Selected Bug Fixes> section. | |
146 | ||
147 | [ List each security issue as a =head2 entry ] | |
148 | ||
149 | =head1 Incompatible Changes | |
150 | ||
2dc78664 | 151 | =head2 Attempting to use C<:=> as an empty attribute list is now a syntax error |
3a5c9134 | 152 | |
2dc78664 NC |
153 | Previously C<my $pi := 4;> was exactly equivalent to C<my $pi : = 4;>, |
154 | with the C<:> being treated as the start of an attribute list, ending before | |
155 | the C<=>. The use of C<:=> to mean C<: => was deprecated in 5.12.0, and is now | |
156 | a syntax error. This will allow the future use of C<:=> as a new token. | |
3a5c9134 | 157 | |
2dc78664 NC |
158 | We find no Perl 5 code on CPAN using this construction, outside the core's |
159 | tests for it, so we believe that this change will have very little impact on | |
160 | real-world codebases. | |
161 | ||
162 | If it is absolutely necessary to have empty attribute lists (for example, | |
baed7a72 NC |
163 | because of a code generator) then avoid the error by adding a space before |
164 | the C<=>. | |
3a5c9134 | 165 | |
d66e82e8 FC |
166 | =head2 Run-time code block in regular expressions |
167 | ||
168 | Code blocks in regular expressions (C<(?{...})> and C<(??{...})>) used not | |
169 | to inherit any pragmata (strict, warnings, etc.) if the regular expression | |
170 | was compiled at run time as happens in cases like these two: | |
171 | ||
172 | use re 'eval'; | |
173 | $foo =~ $bar; # when $bar contains (?{...}) | |
174 | $foo =~ /$bar(?{ $finished = 1 })/; | |
175 | ||
176 | This was a bug, which has now been fixed. But it has the potential to break | |
177 | any code that was relying on this bug. | |
178 | ||
3a5c9134 CBW |
179 | =head1 Deprecations |
180 | ||
181 | XXX Any deprecated features, syntax, modules etc. should be listed here. | |
182 | In particular, deprecated modules should be listed here even if they are | |
183 | listed as an updated module in the L</Modules and Pragmata> section. | |
184 | ||
185 | [ List each deprecation as a =head2 entry ] | |
186 | ||
59773fc7 FC |
187 | =head2 C<?PATTERN?> is deprecated |
188 | ||
189 | C<?PATTERN?> (without the initial m) has been deprecated and now produces | |
190 | a warning. | |
191 | ||
d59a8b3e NC |
192 | =head2 C<sv_compile_2op> is now deprecated |
193 | ||
194 | The C<sv_compile_2op> is now deprecated, and will be removed. Searches suggest | |
195 | that nothing on CPAN is using it, so this should have zero impact. | |
196 | ||
197 | It attempted to provide an API to compile code down to an optree, but failed | |
198 | to bind correctly to lexicals in the enclosing scope. It's not possible to | |
199 | fix this problem within the constraints of its parameters and return value. | |
200 | ||
5609d5f9 FC |
201 | =head2 Tie functions on scalars holding typeglobs |
202 | ||
203 | Calling a tie function (C<tie>, C<tied>, C<untie>) with a scalar argument | |
204 | acts on a file handle if the scalar happens to hold a typeglob. | |
205 | ||
206 | This is a long-standing bug that will be removed in Perl 5.16, as | |
207 | there is currently no way to tie the scalar itself when it holds | |
208 | a typeglob, and no way to untie a scalar that has had a typeglob | |
209 | assigned to it. | |
210 | ||
211 | This bug was fixed in 5.13.7 but, because of the breakage it caused, the | |
212 | fix has been reverted. Now there is a deprecation warning whenever a tie | |
213 | function is used on a handle without an explicit C<*>. | |
214 | ||
3a5c9134 CBW |
215 | =head1 Performance Enhancements |
216 | ||
217 | XXX Changes which enhance performance without changing behaviour go here. There | |
218 | may well be none in a stable release. | |
219 | ||
220 | [ List each enhancement as a =item entry ] | |
221 | ||
222 | =over 4 | |
223 | ||
224 | =item * | |
225 | ||
226 | XXX | |
227 | ||
228 | =back | |
229 | ||
230 | =head1 Modules and Pragmata | |
231 | ||
232 | XXX All changes to installed files in F<cpan/>, F<dist/>, F<ext/> and F<lib/> | |
233 | go here. If Module::CoreList is updated, generate an initial draft of the | |
234 | following sections using F<Porting/corelist-perldelta.pl>, which prints stub | |
235 | entries to STDOUT. Results can be pasted in place of the '=head2' entries | |
236 | below. A paragraph summary for important changes should then be added by hand. | |
237 | In an ideal world, dual-life modules would have a F<Changes> file that could be | |
238 | cribbed. | |
239 | ||
240 | [ Within each section, list entries as a =item entry ] | |
241 | ||
242 | =head2 New Modules and Pragmata | |
243 | ||
244 | =over 4 | |
245 | ||
246 | =item * | |
247 | ||
248 | XXX | |
249 | ||
250 | =back | |
251 | ||
252 | =head2 Updated Modules and Pragmata | |
253 | ||
254 | =over 4 | |
255 | ||
256 | =item * | |
257 | ||
c3e6accb CBW |
258 | C<Archive::Tar> has been upgraded from version 1.72 to 1.74 |
259 | ||
260 | =item * | |
261 | ||
04b0a669 FC |
262 | C<B::Concise> has been upgraded from version 0.81 to 0.82. |
263 | ||
264 | It no longer produces mangled output with the C<-tree> option | |
265 | L<[perl #80632]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=80632>. | |
266 | ||
267 | =item * | |
268 | ||
c2f8ff19 FR |
269 | C<Devel::SelfStubber> has been upgraded from version 1.04 to 1.05. |
270 | ||
271 | =item * | |
272 | ||
9cc8ef8a | 273 | C<Digest::SHA> has been upgraded from 5.48 to 5.50 |
0a178734 CBW |
274 | |
275 | shasum now more closely mimics sha1sum/md5sum and Addfile | |
276 | accepts all POSIX filenames. | |
8d849515 FR |
277 | |
278 | =item * | |
279 | ||
280 | C<Dumpvalue> has been upgraded from version 1.14 to 1.15. | |
0a178734 CBW |
281 | |
282 | =item * | |
283 | ||
5b0bc4e8 FR |
284 | C<Env> has been upgraded from version 1.01 to 1.02. |
285 | ||
286 | =item * | |
287 | ||
d3413324 | 288 | C<ExtUtils::CBuilder> has been upgraded from 0.2703 to 0.2802 |
06e8058f CBW |
289 | |
290 | =item * | |
291 | ||
121e1895 FC |
292 | C<ExtUtils::Embed> has been upgraded from 1.29 to 1.30. |
293 | ||
294 | =item * | |
295 | ||
11f2b7f3 FR |
296 | C<if> has been upgraded from 0.06 to 0.0601. |
297 | ||
298 | =item * | |
299 | ||
92c0bb90 FR |
300 | C<Devel::SelfStubber> has been upgraded from version 1.03 to 1.04. |
301 | ||
302 | =item * | |
303 | ||
39b09a1b CBW |
304 | C<IPC::Cmd> has been upgraded from 0.64 to 0.66 |
305 | ||
306 | Resolves an issue with splitting Win32 command lines | |
307 | and documentation enhancements. | |
308 | ||
309 | =item * | |
310 | ||
121e1895 FC |
311 | C<IPC::Open3> has been upgraded from 1.07 to 1.08. |
312 | ||
313 | =item * | |
314 | ||
1245abf1 CBW |
315 | C<Locale::Codes> has been upgraded from version 3.14 to 3.15 |
316 | ||
317 | =item * | |
318 | ||
28502098 FR |
319 | C<Memoize> has been upgraded from version 1.01_03 to 1.02. |
320 | ||
321 | =item * | |
322 | ||
37fa6334 | 323 | C<MIME::Base64> has been upgraded from 3.10 to 3.13 |
2456140e CBW |
324 | |
325 | Now provides encode_base64url and decode_base64url functions to process | |
326 | the base64 scheme for "URL applications". | |
327 | ||
328 | =item * | |
329 | ||
ad033849 FC |
330 | C<mro> has been upgraded from version 1.05 to 1.06. |
331 | ||
332 | C<next::method> I<et al.> now take into account that every class inherits | |
333 | from UNIVERSAL | |
334 | L<[perl #68654]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=68654>. | |
335 | ||
336 | =item * | |
337 | ||
121e1895 FC |
338 | C<Net::Ping> has been upgraded from 2.36 to 2.37. |
339 | ||
340 | =item * | |
341 | ||
2638c0ff FC |
342 | C<overload> has been upgraded from 1.11 to 1.12. |
343 | ||
344 | =item * | |
345 | ||
121e1895 FC |
346 | C<PerlIO::encoding> has been upgraded from 0.13 to 0.14. |
347 | ||
348 | =item * | |
349 | ||
2638c0ff FC |
350 | C<PerlIO::scalar> has been upgraded from 0.10 to 0.11. |
351 | ||
352 | A C<read> after a C<seek> beyond the end of the string no longer thinks it | |
353 | has data to read | |
354 | L<[perl #78716]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78716>. | |
355 | ||
356 | =item * | |
357 | ||
f295f417 FC |
358 | C<re> has been upgraded from 0.14 to 0.15. |
359 | ||
360 | =item * | |
361 | ||
5ebfb99c | 362 | C<Socket> has been upgraded from 1.91 to 1.92. |
b373eab8 FC |
363 | |
364 | It has several new functions for handling IPv6 addresses. | |
365 | ||
366 | =item * | |
367 | ||
b6ae81ab DL |
368 | C<Storable> has been upgraded from 2.24 to 2.25. |
369 | ||
370 | This adds support for serialising code references that contain UTF-8 strings | |
371 | correctly. The Storable minor version number changed as a result -- this means | |
372 | Storable users that set C<$Storable::accept_future_minor> to a C<FALSE> value | |
373 | will see errors (see L<Storable/FORWARD COMPATIBILITY> for more details). | |
374 | ||
ca88a729 Z |
375 | Freezing no longer gets confused if the Perl stack gets reallocated |
376 | during freezing | |
377 | L<[perl #80074]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=80074>. | |
378 | ||
b6ae81ab DL |
379 | =item * |
380 | ||
d4238815 FC |
381 | C<Time::HiRes> has been upgraded from 1.9721 to 1.9721_01. |
382 | ||
383 | =item * | |
384 | ||
68adb2b0 CBW |
385 | C<Unicode::Collate> has been upgraded from 0.67 to 0.68 |
386 | ||
387 | =item * | |
388 | ||
59773fc7 | 389 | C<Unicode::UCD> has been upgraded from 0.29 to 0.30. |
3a5c9134 | 390 | |
c2e0289e FC |
391 | =item * |
392 | ||
393 | C<version> has been upgraded from 0.82 to 0.86. | |
394 | ||
e6f1cc4d FC |
395 | =item * |
396 | ||
397 | C<Win32> has been upgraded from 0.039 to 0.040. | |
398 | ||
3a5c9134 CBW |
399 | =back |
400 | ||
401 | =head2 Removed Modules and Pragmata | |
402 | ||
403 | =over 4 | |
404 | ||
405 | =item * | |
406 | ||
407 | XXX | |
408 | ||
409 | =back | |
410 | ||
411 | =head1 Documentation | |
412 | ||
413 | XXX Changes to files in F<pod/> go here. Consider grouping entries by | |
414 | file and be sure to link to the appropriate page, e.g. L<perlfunc>. | |
415 | ||
416 | =head2 New Documentation | |
417 | ||
418 | XXX Changes which create B<new> files in F<pod/> go here. | |
419 | ||
420 | =head3 L<XXX> | |
421 | ||
422 | XXX Description of the purpose of the new file here | |
423 | ||
424 | =head2 Changes to Existing Documentation | |
425 | ||
426 | XXX Changes which significantly change existing files in F<pod/> go here. | |
427 | However, any changes to F<pod/perldiag.pod> should go in the L</Diagnostics> | |
428 | section. | |
429 | ||
430 | =head3 L<XXX> | |
431 | ||
432 | =over 4 | |
433 | ||
434 | =item * | |
435 | ||
436 | XXX Description of the change here | |
437 | ||
438 | =back | |
439 | ||
440 | =head1 Diagnostics | |
441 | ||
442 | The following additions or changes have been made to diagnostic output, | |
443 | including warnings and fatal error messages. For the complete list of | |
444 | diagnostic messages, see L<perldiag>. | |
445 | ||
446 | XXX New or changed warnings emitted by the core's C<C> code go here. Also | |
447 | include any changes in L<perldiag> that reconcile it to the C<C> code. | |
448 | ||
449 | [ Within each section, list entries as a =item entry ] | |
450 | ||
451 | =head2 New Diagnostics | |
452 | ||
453 | XXX Newly added diagnostic messages go here | |
454 | ||
455 | =over 4 | |
456 | ||
457 | =item * | |
458 | ||
4d4ca6a5 | 459 | There is a new "Closure prototype called" error. |
3a5c9134 CBW |
460 | |
461 | =back | |
462 | ||
463 | =head2 Changes to Existing Diagnostics | |
464 | ||
465 | XXX Changes (i.e. rewording) of diagnostic messages go here | |
466 | ||
467 | =over 4 | |
468 | ||
469 | =item * | |
470 | ||
c6008483 FC |
471 | The "Found = in conditional" warning that is emitted when a constant is |
472 | assigned to a variable in a condition is now withheld if the constant is | |
473 | actually a subroutine or one generated by C<use constant>, since the value | |
474 | of the constant may not be known at the time the program is written | |
475 | L<[perl #77762]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77762>. | |
3a5c9134 CBW |
476 | |
477 | =back | |
478 | ||
479 | =head1 Utility Changes | |
480 | ||
481 | XXX Changes to installed programs such as F<perlbug> and F<xsubpp> go | |
482 | here. Most of these are built within the directories F<utils> and F<x2p>. | |
483 | ||
484 | [ List utility changes as a =head3 entry for each utility and =item | |
485 | entries for each change | |
486 | Use L<XXX> with program names to get proper documentation linking. ] | |
487 | ||
488 | =head3 L<XXX> | |
489 | ||
490 | =over 4 | |
491 | ||
492 | =item * | |
493 | ||
494 | XXX | |
495 | ||
496 | =back | |
497 | ||
498 | =head1 Configuration and Compilation | |
499 | ||
500 | XXX Changes to F<Configure>, F<installperl>, F<installman>, and analogous tools | |
501 | go here. Any other changes to the Perl build process should be listed here. | |
502 | However, any platform-specific changes should be listed in the | |
503 | L</Platform Support> section, instead. | |
504 | ||
505 | [ List changes as a =item entry ]. | |
506 | ||
507 | =over 4 | |
508 | ||
509 | =item * | |
510 | ||
51bed910 Z |
511 | The C<Encode> module can now (once again) be included in a static Perl |
512 | build. The special-case handling for this situation got broken in Perl | |
513 | 5.11.0, and has now been repaired. | |
514 | ||
515 | =item * | |
516 | ||
3a5c9134 CBW |
517 | XXX |
518 | ||
519 | =back | |
520 | ||
521 | =head1 Testing | |
522 | ||
523 | XXX Any significant changes to the testing of a freshly built perl should be | |
524 | listed here. Changes which create B<new> files in F<t/> go here as do any | |
525 | large changes to the testing harness (e.g. when parallel testing was added). | |
526 | Changes to existing files in F<t/> aren't worth summarising, although the bugs | |
527 | that they represent may be covered elsewhere. | |
528 | ||
529 | [ List each test improvement as a =item entry ] | |
530 | ||
531 | =over 4 | |
532 | ||
533 | =item * | |
534 | ||
c35766a7 Z |
535 | Tests for C<IPC-Open3>, C<Opcode>, and C<PerlIO-encoding> now use the |
536 | L<Test::More> framework. | |
537 | ||
538 | =item * | |
539 | ||
3a5c9134 CBW |
540 | XXX |
541 | ||
542 | =back | |
543 | ||
544 | =head1 Platform Support | |
545 | ||
546 | XXX Any changes to platform support should be listed in the sections below. | |
547 | ||
548 | [ Within the sections, list each platform as a =item entry with specific | |
549 | changes as paragraphs below it. ] | |
550 | ||
551 | =head2 New Platforms | |
552 | ||
553 | XXX List any platforms that this version of perl compiles on, that previous | |
554 | versions did not. These will either be enabled by new files in the F<hints/> | |
555 | directories, or new subdirectories and F<README> files at the top level of the | |
556 | source tree. | |
557 | ||
558 | =over 4 | |
559 | ||
560 | =item XXX-some-platform | |
561 | ||
562 | XXX | |
563 | ||
564 | =back | |
565 | ||
566 | =head2 Discontinued Platforms | |
567 | ||
568 | XXX List any platforms that this version of perl no longer compiles on. | |
569 | ||
570 | =over 4 | |
571 | ||
572 | =item XXX-some-platform | |
573 | ||
574 | XXX | |
575 | ||
576 | =back | |
577 | ||
578 | =head2 Platform-Specific Notes | |
579 | ||
580 | XXX List any changes for specific platforms. This could include configuration | |
581 | and compilation changes or changes in portability/compatibility. However, | |
582 | changes within modules for platforms should generally be listed in the | |
583 | L</Modules and Pragmata> section. | |
584 | ||
585 | =over 4 | |
586 | ||
085d0904 | 587 | =item NetBSD |
3a5c9134 | 588 | |
085d0904 FC |
589 | The NetBSD hints file has been changed to make the system's malloc the |
590 | default. | |
3a5c9134 | 591 | |
fb3a2d89 Z |
592 | =item Windows |
593 | ||
594 | The option to use an externally-supplied C<crypt()>, or to build with no | |
595 | C<crypt()> at all, has been removed. Perl supplies its own C<crypt()> | |
596 | implementation for Windows, and the political situation that required | |
597 | this part of the distribution to sometimes be omitted is long gone. | |
598 | ||
3a5c9134 CBW |
599 | =back |
600 | ||
601 | =head1 Internal Changes | |
602 | ||
603 | XXX Changes which affect the interface available to C<XS> code go here. | |
604 | Other significant internal changes for future core maintainers should | |
605 | be noted as well. | |
606 | ||
607 | [ List each test improvement as a =item entry ] | |
608 | ||
609 | =over 4 | |
610 | ||
611 | =item * | |
612 | ||
833f1b93 FR |
613 | C<mg_findext> and C<sv_unmagicext> have been added. |
614 | ||
615 | These new functions allow extension authors to find and remove magic attached to | |
616 | scalars based on both the magic type and the magic virtual table, similar to how | |
617 | C<sv_magicext> attaches magic of a certain type and with a given virtual table | |
618 | to a scalar. This eliminates the need for extensions to walk the list of | |
619 | C<MAGIC> pointers of an C<SV> to find the magic that belongs to them. | |
3a5c9134 | 620 | |
c61b6d0f FC |
621 | =item * |
622 | ||
623 | The C<parse_fullexpr()>, C<parse_listexpr(), C<parse_termexpr()> and | |
624 | C<parse_arithexpr()> functions have been added. | |
625 | ||
626 | These are for parsing expressions at various precedence levels. | |
627 | ||
3a5c9134 CBW |
628 | =back |
629 | ||
630 | =head1 Selected Bug Fixes | |
631 | ||
632 | XXX Important bug fixes in the core language are summarised here. | |
633 | Bug fixes in files in F<ext/> and F<lib/> are best summarised in | |
634 | L</Modules and Pragmata>. | |
635 | ||
636 | [ List each fix as a =item entry ] | |
637 | ||
638 | =over 4 | |
639 | ||
640 | =item * | |
641 | ||
88e9444c NC |
642 | C<BEGIN {require 5.12.0}> now behaves as documented, rather than behaving |
643 | identically to C<use 5.12.0;>. Previously, C<require> in a C<BEGIN> block | |
644 | was erroneously executing the C<use feature ':5.12.0'> and | |
645 | C<use strict; use warnings;> behaviour, which only C<use> was documented to | |
b373eab8 FC |
646 | provide |
647 | L<[perl #69050]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=69050>. | |
648 | ||
649 | =item * | |
650 | ||
651 | C<use 5.42> | |
652 | L<[perl #69050]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=69050>, | |
653 | C<use 6> and C<no 5> no longer leak memory. | |
654 | ||
655 | =item * | |
656 | ||
657 | C<eval "BEGIN{die}"> no longer leaks memory on non-threaded builds. | |
3a5c9134 | 658 | |
1428a560 FC |
659 | =item * |
660 | ||
661 | PerlIO no longer crashes when called recursively, e.g., from a signal | |
662 | handler. Now it just leaks memory | |
663 | L<[perl #75556]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=75556>. | |
664 | ||
11cd2234 FC |
665 | =item * |
666 | ||
667 | Defining a constant with the same name as one of perl's special blocks | |
668 | (e.g., INIT) stopped working in 5.12.0, but has now been fixed | |
669 | L<[perl #78634]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=78634>. | |
670 | ||
e3ef43a5 FC |
671 | =item * |
672 | ||
673 | A reference to a literal value used as a hash key (C<$hash{\"foo"}>) used | |
674 | to be stringified, even if the hash was tied | |
675 | L<[perl #79178]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=79178>. | |
676 | ||
3ad6135d FC |
677 | =item * |
678 | ||
3ad6135d FC |
679 | A closure containing an C<if> statement followed by a constant or variable |
680 | is no longer treated as a constant | |
681 | L<[perl #63540]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=63540>. | |
682 | ||
4d4ca6a5 FC |
683 | =item * |
684 | ||
685 | Calling a closure prototype (what is passed to an attribute handler for a | |
7cdf3308 FC |
686 | closure) now results in a "Closure prototype called" error message instead |
687 | of a crash | |
4d4ca6a5 FC |
688 | L<[perl #68560]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=68560>. |
689 | ||
085d0904 FC |
690 | =item * |
691 | ||
692 | A regular expression optimisation would sometimes cause a match with a | |
693 | C<{n,m}> quantifier to fail when it should match | |
694 | L<[perl #79152]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=79152>. | |
695 | ||
20db7501 KW |
696 | =item * |
697 | ||
698 | What has become known as the "Unicode Bug" is resolved in this release. | |
699 | Under C<use feature 'unicode_strings'>, the internal storage format of a | |
700 | string no longer affects the external semantics. There are two known | |
701 | exceptions. User-defined case changing functions, which are planned to | |
702 | be deprecated in 5.14, require utf8-encoded strings to function; and the | |
703 | character C<LATIN SMALL LETTER SHARP S> in regular expression | |
704 | case-insensitive matching has a somewhat different set of bugs depending | |
705 | on the internal storage format. Case-insensitive matching of all | |
706 | characters that have multi-character matches, as this one does, is | |
707 | problematical in Perl. | |
708 | L<[perl #58182]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=58182>. | |
709 | ||
70bfa48a FC |
710 | =item * |
711 | ||
712 | Mentioning a read-only lexical variable from the enclosing scope in a | |
713 | string C<eval> would cause the variable to become writable | |
714 | L<[perl #19135]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=19135>. | |
715 | ||
f853e70a FC |
716 | =item * |
717 | ||
718 | C<state> can now be used with attributes. It used to mean the same thing as | |
719 | C<my> if attributes were present | |
720 | L<[perl #68658]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=68658>. | |
721 | ||
37079308 FC |
722 | =item * |
723 | ||
724 | Expressions like C<< @$a > 3 >> no longer cause C<$a> to be mentioned in | |
725 | the "Use of uninitialized value in numeric gt" warning when C<$a> is | |
726 | undefined (since it is not part of the C<E<gt>> expression, but the operand | |
727 | of the C<@>) | |
728 | L<[perl #72090]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=72090>. | |
729 | ||
4c9d53d5 FC |
730 | =item * |
731 | ||
732 | C<require> no longer causes C<caller> to return the wrong file name for | |
733 | the scope that called C<require> and other scopes higher up that had the | |
734 | same file name | |
735 | L<[perl #68712]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=68712>. | |
736 | ||
0c7420e7 FC |
737 | =item * |
738 | ||
7cdf3308 | 739 | The ref types in the typemap for XS bindings now support magical variables |
0c7420e7 FC |
740 | L<[perl #72684]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=72684>. |
741 | ||
460c4bfb FC |
742 | =item * |
743 | ||
744 | Match variables (e.g., C<$1>) no longer persist between calls to a sort | |
745 | subroutine | |
746 | L<[perl #76026]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=76026>. | |
747 | ||
26de4ac8 FC |
748 | =item * |
749 | ||
750 | The C<B> module was returning B::OPs instead of B::LOGOPs for C<entertry> | |
751 | L<[perl #80622]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=80622>. | |
752 | ||
753 | This was due to a bug in the perl core, not in C<B> itself. | |
754 | ||
ab7fb400 FC |
755 | =item * |
756 | ||
757 | Some numeric operators were converting integers to floating point, | |
758 | resulting in loss of precision on 64-bit platforms | |
759 | L<[perl #77456]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=77456>. | |
760 | ||
836d5805 Z |
761 | =item * |
762 | ||
763 | The fallback behaviour of overloading on binary operators was asymmetric | |
764 | L<[perl #71286]|http://rt.perl.org/rt3/Public/Bug/Display.html?id=71286>. | |
765 | ||
3a5c9134 CBW |
766 | =back |
767 | ||
768 | =head1 Known Problems | |
769 | ||
770 | XXX Descriptions of platform agnostic bugs we know we can't fix go here. Any | |
771 | tests that had to be C<TODO>ed for the release would be noted here, unless | |
772 | they were specific to a particular platform (see below). | |
773 | ||
774 | This is a list of some significant unfixed bugs, which are regressions | |
775 | from either 5.XXX.XXX or 5.XXX.XXX. | |
776 | ||
777 | [ List each fix as a =item entry ] | |
778 | ||
779 | =over 4 | |
780 | ||
781 | =item * | |
782 | ||
3ad6135d | 783 | XXX |
3a5c9134 CBW |
784 | |
785 | =back | |
786 | ||
787 | =head1 Obituary | |
788 | ||
789 | XXX If any significant core contributor has died, we've added a short obituary | |
790 | here. | |
791 | ||
792 | =head1 Acknowledgements | |
793 | ||
794 | XXX The list of people to thank goes here. | |
795 | ||
796 | =head1 Reporting Bugs | |
797 | ||
798 | If you find what you think is a bug, you might check the articles | |
799 | recently posted to the comp.lang.perl.misc newsgroup and the perl | |
800 | bug database at http://rt.perl.org/perlbug/ . There may also be | |
801 | information at http://www.perl.org/ , the Perl Home Page. | |
802 | ||
803 | If you believe you have an unreported bug, please run the L<perlbug> | |
804 | program included with your release. Be sure to trim your bug down | |
805 | to a tiny but sufficient test case. Your bug report, along with the | |
806 | output of C<perl -V>, will be sent off to perlbug@perl.org to be | |
807 | analysed by the Perl porting team. | |
808 | ||
809 | If the bug you are reporting has security implications, which make it | |
810 | inappropriate to send to a publicly archived mailing list, then please send | |
811 | it to perl5-security-report@perl.org. This points to a closed subscription | |
812 | unarchived mailing list, which includes all the core committers, who be able | |
813 | to help assess the impact of issues, figure out a resolution, and help | |
814 | co-ordinate the release of patches to mitigate or fix the problem across all | |
815 | platforms on which Perl is supported. Please only use this address for | |
816 | security issues in the Perl core, not for modules independently | |
817 | distributed on CPAN. | |
818 | ||
819 | =head1 SEE ALSO | |
820 | ||
821 | The F<Changes> file for an explanation of how to view exhaustive details | |
822 | on what changed. | |
823 | ||
824 | The F<INSTALL> file for how to build Perl. | |
825 | ||
826 | The F<README> file for general stuff. | |
827 | ||
828 | The F<Artistic> and F<Copying> files for copyright information. | |
829 | ||
830 | =cut |