3db6f2ebcd3535db5df36c4ae6c3bdc7e5b2785a
[p5sagit/p5-mst-13.2.git] / pod / perl5110delta.pod
1 =head1 NAME
2
3 perl5110delta - what is new for perl v5.11.0
4
5 =head1 DESCRIPTION
6
7 This document describes differences between the 5.10.0 release and
8 the 5.11.0 development release.
9
10 =head1 Incompatible Changes
11
12 =head2 In @INC, move ARCHLIB and PRIVLIB after the current version's site_perl and vendor_perl.
13
14 =head2 Switch statement changes
15
16 The handling of complex expressions by the C<given>/C<when> switch
17 statement has been enhanced. These enhancements are also available in
18 5.10.1 and subsequent 5.10 releases. There are two new cases where C<when> now
19 interprets its argument as a boolean, instead of an expression to be used
20 in a smart match:
21
22 =over 4
23
24 =item flip-flop operators
25
26 The C<..> and C<...> flip-flop operators are now evaluated in boolean
27 context, following their usual semantics; see L<perlop/"Range Operators">.
28
29 Note that, as in perl 5.10.0, C<when (1..10)> will not work to test
30 whether a given value is an integer between 1 and 10; you should use
31 C<when ([1..10])> instead (note the array reference).
32
33 However, contrary to 5.10.0, evaluating the flip-flop operators in boolean
34 context ensures it can now be useful in a C<when()>, notably for
35 implementing bistable conditions, like in:
36
37     when (/^=begin/ .. /^=end/) {
38       # do something
39     }
40
41 =item defined-or operator
42
43 A compound expression involving the defined-or operator, as in
44 C<when (expr1 // expr2)>, will be treated as boolean if the first
45 expression is boolean. (This just extends the existing rule that applies
46 to the regular or operator, as in C<when (expr1 || expr2)>.)
47
48 =back
49
50 The next section details more changes brought to the semantics to
51 the smart match operator, that naturally also modify the behaviour
52 of the switch statements where smart matching is implicitly used.
53 These changers were also made for the 5.10.1 release, and will remain in
54 subsequent 5.10 releases.
55
56 =head2 Smart match changes
57
58 =head3 Changes to type-based dispatch
59
60 The smart match operator C<~~> is no longer commutative. The behaviour of
61 a smart match now depends primarily on the type of its right hand
62 argument. Moreover, its semantics have been adjusted for greater
63 consistency or usefulness in several cases. While the general backwards
64 compatibility is maintained, several changes must be noted:
65
66 =over 4
67
68 =item *
69
70 Code references with an empty prototype are no longer treated specially.
71 They are passed an argument like the other code references (even if they
72 choose to ignore it).
73
74 =item *
75
76 C<%hash ~~ sub {}> and C<@array ~~ sub {}> now test that the subroutine
77 returns a true value for each key of the hash (or element of the
78 array), instead of passing the whole hash or array as a reference to
79 the subroutine.
80
81 =item *
82
83 Due to the commutativity breakage, code references are no longer
84 treated specially when appearing on the left of the C<~~> operator,
85 but like any vulgar scalar.
86
87 =item *
88
89 C<undef ~~ %hash> is always false (since C<undef> can't be a key in a
90 hash). No implicit conversion to C<""> is done (as was the case in perl
91 5.10.0).
92
93 =item *
94
95 C<$scalar ~~ @array> now always distributes the smart match across the
96 elements of the array. It's true if one element in @array verifies
97 C<$scalar ~~ $element>. This is a generalization of the old behaviour
98 that tested whether the array contained the scalar.
99
100 =back
101
102 The full dispatch table for the smart match operator is given in
103 L<perlsyn/"Smart matching in detail">.
104
105 =head3 Smart match and overloading
106
107 According to the rule of dispatch based on the rightmost argument type,
108 when an object overloading C<~~> appears on the right side of the
109 operator, the overload routine will always be called (with a 3rd argument
110 set to a true value, see L<overload>.) However, when the object will
111 appear on the left, the overload routine will be called only when the
112 rightmost argument is a simple scalar. This way distributivity of smart match
113 across arrays is not broken, as well as the other behaviours with complex
114 types (coderefs, hashes, regexes). Thus, writers of overloading routines
115 for smart match mostly need to worry only with comparing against a scalar,
116 and possibly with stringification overloading; the other common cases
117 will be automatically handled consistently.
118
119 C<~~> will now refuse to work on objects that do not overload it (in order
120 to avoid relying on the object's underlying structure). (However, if the
121 object overloads the stringification or the numification operators, and
122 if overload fallback is active, it will be used instead, as usual.)
123
124 =head2 Labels can't be keywords
125
126 Labels used as targets for the C<goto>, C<last>, C<next> or C<redo>
127 statements cannot be keywords anymore. This restriction will prevent
128 potential confusion between the C<goto LABEL> and C<goto EXPR> syntaxes:
129 for example, a statement like C<goto print> would jump to a label whose
130 name would be the return value of print(), (usually 1), instead of a
131 label named C<print>. Moreover, the other control flow statements
132 would just ignore any keyword passed to them as a label name. Since
133 such labels cannot be defined anymore, this kind of error will be
134 avoided.
135
136 =head2 Other incompatible changes
137
138 =over 4
139
140 =item *
141
142 The semantics of C<use feature :5.10*> have changed slightly.
143 See L<"Modules and Pragmata"> for more information.
144
145 =item *
146
147 It is now a run-time error to use the smart match operator C<~~>
148 with an object that has no overload defined for it. (This way
149 C<~~> will not break encapsulation by matching against the
150 object's internal representation as a reference.)
151
152 =item *
153
154 The version control system used for the development of the perl
155 interpreter has been switched from Perforce to git.  This is mainly an
156 internal issue that only affects people actively working on the perl core;
157 but it may have minor external visibility, for example in some of details
158 of the output of C<perl -V>. See L<perlrepository> for more information.
159
160 =item *
161
162 The internal structure of the C<ext/> directory in the perl source has
163 been reorganised. In general, a module C<Foo::Bar> whose source was
164 stored under F<ext/Foo/Bar/> is now located under F<ext/Foo-Bar/>. Also,
165 some modules have been moved from F<lib/> to F<ext/>. This is purely a
166 source tarball change, and should make no difference to the compilation or
167 installation of perl, unless you have a very customised build process that
168 explicitly relies on this structure, or which hard-codes the C<nonxs_ext>
169 F<Configure> parameter. Specifically, this change does not by default
170 alter the location of any files in the final installation.
171
172 =item *
173
174 As part of the C<Test::Harness> 2.x to 3.x upgrade, the experimental
175 C<Test::Harness::Straps> module has been removed.
176 See L</"Updated Modules"> for more details.
177
178 =item *
179
180 As part of the C<ExtUtils::MakeMaker> upgrade, the
181 C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish> modules
182 have been removed from this distribution.
183
184 =item *
185
186 C<Module::CoreList> no longer contains the C<%:patchlevel> hash.
187
188 =item *
189
190 This one is actually a change introduced in 5.10.0, but it was missed
191 from that release's perldelta, so it is mentioned here instead.
192
193 A bugfix related to the handling of the C</m> modifier and C<qr> resulted
194 in a change of behaviour between 5.8.x and 5.10.0:
195
196     # matches in 5.8.x, doesn't match in 5.10.0
197     $re = qr/^bar/; "foo\nbar" =~ /$re/m;
198
199 =item *
200
201 C<length undef> now returns undef.
202
203 =back
204
205 =head1 Core Enhancements
206
207 =head2 Unicode Character Database 5.1.0
208
209 The copy of the Unicode Character Database included in Perl 5.11.0 has
210 been updated to 5.1.0 from 5.0.0. See
211 L<http://www.unicode.org/versions/Unicode5.1.0/#Notable_Changes> for the
212 notable changes.
213
214 =head2 A proper interface for pluggable Method Resolution Orders
215
216 As of Perl 5.11.0 there is a new interface for plugging and using method
217 resolution orders other than the default (linear depth first search).
218 The C3 method resolution order added in 5.10.0 has been re-implemented as
219 a plugin, without changing its Perl-space interface. See L<perlmroapi> for
220 more information.
221
222 =head2 The C<overloading> pragma
223
224 This pragma allows you to lexically disable or enable overloading
225 for some or all operations. (Yuval Kogman)
226
227 =head2 C<\N> regex escape
228
229 A new regex escape has been added, C<\N>. It will match any character that
230 is not a newline, independently from the presence or absence of the single
231 line match modifier C</s>. (If C<\N> is followed by an opening brace and
232 by a letter, perl will still assume that a Unicode character name is
233 coming, so compatibility is preserved.) (Rafael Garcia-Suarez)
234
235 =head2 Implicit strictures
236
237 Using the C<use VERSION> syntax with a version number greater or equal
238 to 5.11.0 will also lexically enable strictures just like C<use strict>
239 would do (in addition to enabling features.) So, the following:
240
241     use 5.11.0;
242
243 will now imply:
244
245     use strict;
246     use feature ':5.11';
247
248 =head2 Parallel tests
249
250 The core distribution can now run its regression tests in parallel on
251 Unix-like platforms. Instead of running C<make test>, set C<TEST_JOBS> in
252 your environment to the number of tests to run in parallel, and run
253 C<make test_harness>. On a Bourne-like shell, this can be done as
254
255     TEST_JOBS=3 make test_harness  # Run 3 tests in parallel
256
257 An environment variable is used, rather than parallel make itself, because
258 L<TAP::Harness> needs to be able to schedule individual non-conflicting test
259 scripts itself, and there is no standard interface to C<make> utilities to
260 interact with their job schedulers.
261
262 Note that currently some test scripts may fail when run in parallel (most
263 notably C<ext/IO/t/io_dir.t>). If necessary run just the failing scripts
264 again sequentially and see if the failures go away.
265
266 =head2 The C<...> operator
267
268 A new operator, C<...>, nicknamed the Yada Yada operator, has been added.
269 It is intended to mark placeholder code, that is not yet implemented.
270 See L<perlop/"Yada Yada Operator">. (chromatic)
271
272 =head2 DTrace support
273
274 Some support for DTrace has been added. See "DTrace support" in F<INSTALL>.
275
276 =head2 Support for C<configure_requires> in CPAN module metadata
277
278 Both C<CPAN> and C<CPANPLUS> now support the C<configure_requires> keyword
279 in the C<META.yml> metadata file included in most recent CPAN distributions.
280 This allows distribution authors to specify configuration prerequisites that
281 must be installed before running F<Makefile.PL> or F<Build.PL>.
282
283 See the documentation for C<ExtUtils::MakeMaker> or C<Module::Build> for more
284 on how to specify C<configure_requires> when creating a distribution for CPAN.
285
286 =head2 The C<each> function can now operate on arrays
287
288 =head2 Perl's core time-related functions are now Y2038 compliand
289
290 =head2 The variable C<$,> may now be tied
291
292 =head2 // now behaves like || in when clauses
293
294 =head2 You can now set C<-W> from the C<PERL5OPT> environment varialbe
295
296 =head1 Modules and Pragmata
297
298 =head2 New Modules and Pragmata
299
300 =over 4
301
302 =item C<autodie>
303
304 This is a new lexically-scoped alternative for the C<Fatal> module.
305 The bundled version is 2.06_01. Note that in this release, using a string
306 eval when C<autodie> is in effect can cause the autodie behaviour to leak
307 into the surrounding scope. See L<autodie/"BUGS"> for more details.
308
309 =item C<Compress::Raw::Bzip2>
310
311 This has been added to the core (version 2.020).
312
313 =item C<parent>
314
315 This pragma establishes an ISA relationship with base classes at compile
316 time. It provides the key feature of C<base> without the feature creep.
317
318 =item C<Parse::CPAN::Meta>
319
320 This has been added to the core (version 1.39).
321
322 =back
323
324 =head2 Pragmata Changes
325
326 =over 4
327
328 =item C<overloading>
329
330 See L</"The C<overloading> pragma"> above.
331
332 =item C<attributes>
333
334 Upgraded from version 0.08 to 0.09.
335
336 =item C<attrs>
337
338 The C<attrs> pragma has been removed. It had been marked as deprecated since
339 5.6.0.
340
341 =item C<base>
342
343 Upgraded from version 2.13 to 2.14. See L<parent> for a replacement.
344
345 =item C<bigint>
346
347 Upgraded from version 0.22 to 0.23.
348
349 =item C<bignum>
350
351 Upgraded from version 0.22 to 0.23.
352
353 =item C<bigrat>
354
355 Upgraded from version 0.22 to 0.23.
356
357 =item C<charnames>
358
359 Upgraded from version 1.06 to 1.07.
360
361 The Unicode F<NameAliases.txt> database file has been added. This has the
362 effect of adding some extra C<\N> character names that formerly wouldn't
363 have been recognised; for example, C<"\N{LATIN CAPITAL LETTER GHA}">.
364
365 =item C<constant>
366
367 Upgraded from version 1.13 to 1.19. Some code has been shifted from run time to
368 compile time, and the amount of MRO cache flushing has been minimised.
369
370 =item C<feature>
371
372 The meaning of the C<:5.10> and C<:5.10.X> feature bundles has
373 changed slightly. The last component, if any (i.e. C<X>) is simply ignored.
374 This is predicated on the assumption that new features will not, in
375 general, be added to maintenance releases. So C<:5.10> and C<:5.10.X>
376 have identical effect. This is a change to the behaviour documented for
377 5.10.0.
378
379 =item C<fields>
380
381 Upgraded from version 2.13 to 2.14 (this was just a version bump; there
382 were no functional changes).
383
384 =item C<lib>
385
386 Upgraded from version 0.5565 to 0.62.
387
388 =item C<open>
389
390 Upgraded from version 1.06 to 1.07.
391
392 =item C<overload>
393
394 Upgraded from version 1.06 to 1.07.
395
396 =item C<overloading>
397
398 See L</"The C<overloading> pragma"> above.
399
400 =item C<version>
401
402 Upgraded from version 0.74 to 0.77.
403
404 =back
405
406 =head2 Updated Modules
407
408 =over 4
409
410 =item C<Archive::Extract>
411
412 Upgraded from version 0.24 to 0.34.
413
414 =item C<Archive::Tar>
415
416 Upgraded from version 1.38 to 1.52.
417
418 =item C<Attribute::Handlers>
419
420 Upgraded from version 0.79 to 0.85.
421
422 =item C<AutoLoader>
423
424 Upgraded from version 5.63 to 5.68.
425
426 =item C<AutoSplit>
427
428 Upgraded from version 1.05 to 1.06.
429
430 =item C<B>
431
432 Upgraded from version 1.17 to 1.22.
433
434 =item C<B::Debug>
435
436 Upgraded from version 1.05 to 1.11.
437
438 =item C<B::Deparse>
439
440 Upgraded from version 0.83 to 0.89.
441
442 =item C<B::Lint>
443
444 Upgraded from version 1.09 to 1.11.
445
446 =item C<B::Xref>
447
448 Upgraded from version 1.01 to 1.02.
449
450 =item C<Benchmark>
451
452 Upgraded from version 1.10 to 1.11.
453
454 =item C<Carp>
455
456 Upgraded from version 1.08 to 1.11.
457
458 L<Carp> now includes all the necessary code to function. Previously, it
459 used to be a lightweight placeholder that loaded the actual code from
460 C<Carp::Heavy> on demand. C<Carp::Heavy> is now a simple, empty module
461 kept for backwards compatibility for programs that used to pre-load it.
462
463 =item C<CGI>
464
465 Upgraded from version 3.29 to 3.43.
466 (also includes the "default_value for popup_menu()" fix from 3.45).
467
468 =item C<Compress::Zlib>
469
470 Upgraded from version 2.008 to 2.020.
471
472 =item C<CPAN>
473
474 Upgraded from version 1.9205 to 1.9402. C<CPAN::FTP> has a local fix to
475 stop it being too verbose on download failure.
476
477 =item C<CPANPLUS>
478
479 Upgraded from version 0.84 to 0.88.
480
481 =item C<CPANPLUS::Dist::Build>
482
483 Upgraded from version 0.06_02 to 0.36.
484
485 =item C<Cwd>
486
487 Upgraded from version 3.25_01 to 3.30.
488
489 =item C<Data::Dumper>
490
491 Upgraded from version 2.121_14 to 2.124.
492
493 =item C<DB>
494
495 Upgraded from version 1.01 to 1.02.
496
497 =item C<DB_File>
498
499 Upgraded from version 1.816_1 to 1.820.
500
501 =item C<Devel::PPPort>
502
503 Upgraded from version 3.13 to 3.19.
504
505 =item C<Digest::MD5>
506
507 Upgraded from version 2.36_01 to 2.39.
508
509 =item C<Digest::SHA>
510
511 Upgraded from version 5.45 to 5.47.
512
513 =item C<DirHandle>
514
515 Upgraded from version 1.01 to 1.03.
516
517 =item C<Dumpvalue>
518
519 Upgraded from version 1.12 to 1.13.
520
521 =item C<DynaLoader>
522
523 Upgraded from version 1.08 to 1.10.
524
525 =item C<Encode>
526
527 Upgraded from version 2.23 to 2.35.
528
529 =item C<Errno>
530
531 Upgraded from version 1.10 to 1.11.
532
533 =item C<Exporter>
534
535 Upgraded from version 5.62 to 5.63.
536
537 =item C<ExtUtils::CBuilder>
538
539 Upgraded from version 0.21 to 0.2602.
540
541 =item C<ExtUtils::Command>
542
543 Upgraded from version 1.13 to 1.16.
544
545 =item C<ExtUtils::Constant>
546
547 Upgraded from 0.20 to 0.22. (Note that neither of these versions are
548 available on CPAN.)
549
550 =item C<ExtUtils::Embed>
551
552 Upgraded from version 1.27 to 1.28.
553
554 =item C<ExtUtils::Install>
555
556 Upgraded from version 1.44 to 1.54.
557
558 =item C<ExtUtils::MakeMaker>
559
560 Upgraded from version 6.42 to 6.55_02.
561
562 Note that C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish>
563 have been removed from this distribution.
564
565 =item C<ExtUtils::Manifest>
566
567 Upgraded from version 1.51_01 to 1.56.
568
569 =item C<ExtUtils::ParseXS>
570
571 Upgraded from version 2.18_02 to 2.2002.
572
573 =item C<Fatal>
574
575 Upgraded from version 1.05 to 2.06_01. See also the new pragma C<autodie>.
576
577 =item C<File::Basename>
578
579 Upgraded from version 2.76 to 2.77.
580
581 =item C<File::Compare>
582
583 Upgraded from version 1.1005 to 1.1006.
584
585 =item C<File::Copy>
586
587 Upgraded from version 2.11 to 2.16.
588
589 File::Copy now always return 0 (not "") on failure.
590
591 FIXME - describe C<cp>
592
593 =item C<File::Fetch>
594
595 Upgraded from version 0.14 to 0.20.
596
597 =item C<File::Find>
598
599 Upgraded from version 1.12 to 1.14.
600
601 =item C<File::Path>
602
603 Upgraded from version 2.04 to 2.07_03.
604
605 =item C<File::Spec>
606
607 Upgraded from version 3.2501 to 3.30.
608
609 =item C<File::stat>
610
611 Upgraded from version 1.00 to 1.01.
612
613 Added -X overloading, -M, -C and -A.
614
615 =item C<File::Temp>
616
617 Upgraded from version 0.18 to 0.22.
618
619 =item C<FileCache>
620
621 Upgraded from version 1.07 to 1.08.
622
623 =item C<FileHandle>
624
625 Upgraded from version 2.01 to 2.02.
626
627 =item C<Filter::Simple>
628
629 Upgraded from version 0.82 to 0.84.
630
631 =item C<Filter::Util::Call>
632
633 Upgraded from version 1.07 to 1.08.
634
635 =item C<FindBin>
636
637 Upgraded from version 1.49 to 1.50.
638
639 =item C<GDBM_File>
640
641 Upgraded from version 1.08 to 1.09.
642
643 =item C<Getopt::Long>
644
645 Upgraded from version 2.37 to 2.38.
646
647 =item C<Hash::Util::FieldHash>
648
649 Upgraded from version 1.03 to 1.04. This fixes a memory leak.
650
651 =item C<I18N::Collate>
652
653 Upgraded from version 1.00 to 1.01.
654
655 =item C<IO>
656
657 Upgraded from version 1.23_01 to 1.25.
658
659 This makes non-blocking mode work on Windows in C<IO::Socket::INET>
660 [CPAN #43573].
661
662 =item C<IO::Compress::*>
663
664 Upgraded from version 2.008 to 2.020.
665
666 =item C<IO::Dir>
667
668 Upgraded from version 1.06 to 1.07.
669
670 =item C<IO::Handle>
671
672 Upgraded from version 1.27 to 1.28.
673
674 =item C<IO::Socket>
675
676 Upgraded from version 1.30_01 to 1.31.
677
678 =item C<IO::Zlib>
679
680 Upgraded from version 1.07 to 1.09.
681
682 =item C<IPC::Cmd>
683
684 Upgraded from version 0.40_1 to 0.46.
685
686 =item C<IPC::Open3>
687
688 Upgraded from version 1.02 to 1.04.
689
690 =item C<IPC::SysV>
691
692 Upgraded from version 1.05 to 2.01.
693
694 =item C<lib>
695
696 Upgraded from version 0.5565 to 0.62.
697
698 =item C<List::Util>
699
700 Upgraded from version 1.19 to 1.21.
701
702 =item C<Locale::MakeText>
703
704 Upgraded from version 1.12 to 1.13.
705
706 =item C<Log::Message>
707
708 Upgraded from version 0.01 to 0.02.
709
710 =item C<Math::BigFloat>
711
712 Upgraded from version 1.59 to 1.60.
713
714 =item C<Math::BigInt>
715
716 Upgraded from version 1.88 to 1.89.
717
718 =item C<Math::BigInt::FastCalc>
719
720 Upgraded from version 0.16 to 0.19.
721
722 =item C<Math::BigRat>
723
724 Upgraded from version 0.21 to 0.22.
725
726 =item C<Math::Complex>
727
728 Upgraded from version 1.37 to 1.56.
729
730 =item C<Math::Trig>
731
732 Upgraded from version 1.04 to 1.20.
733
734 =item C<Memoize>
735
736 Upgraded from version 1.01_02 to 1.01_03 (just a minor documentation
737 change).
738
739 =item C<Module::Build>
740
741 Upgraded from version 0.2808_01 to 0.34_02.
742
743 =item C<Module::CoreList>
744
745 Upgraded from version 2.13 to 2.18. This release no longer contains the
746 C<%Module::CoreList::patchlevel> hash.
747
748 =item C<Module::Load>
749
750 Upgraded from version 0.12 to 0.16.
751
752 =item C<Module::Load::Conditional>
753
754 Upgraded from version 0.22 to 0.30.
755
756 =item C<Module::Loaded>
757
758 Upgraded from version 0.01 to 0.02.
759
760 =item C<Module::Pluggable>
761
762 Upgraded from version 3.6 to 3.9.
763
764 =item C<NDBM_File>
765
766 Upgraded from version 1.07 to 1.08.
767
768 =item C<Net::Ping>
769
770 Upgraded from version 2.33 to 2.36.
771
772 =item C<NEXT>
773
774 Upgraded from version 0.60_01 to 0.64.
775
776 =item C<Object::Accessor>
777
778 Upgraded from version 0.32 to 0.34.
779
780 =item C<OS2::REXX>
781
782 Upgraded from version 1.03 to 1.04.
783
784 =item C<Package::Constants>
785
786 Upgraded from version 0.01 to 0.02.
787
788 =item C<PerlIO>
789
790 Upgraded from version 1.04 to 1.06.
791
792 =item C<PerlIO::via>
793
794 Upgraded from version 0.04 to 0.07.
795
796 =item C<Pod::Man>
797
798 Upgraded from version 2.16 to 2.22.
799
800 =item C<Pod::Parser>
801
802 Upgraded from version 1.35 to 1.37.
803
804 =item Pod::Perldoc
805
806 Upgrade from version 3.14_02 to 3.15.
807
808 =item C<Pod::Simple>
809
810 Upgraded from version 3.05 to 3.07.
811
812 =item C<Pod::Text>
813
814 Upgraded from version 3.08 to 3.13.
815
816 =item C<POSIX>
817
818 Upgraded from version 1.13 to 1.17.
819
820 =item C<Safe>
821
822 Upgraded from 2.12 to 2.18.
823
824 =item C<Scalar::Util>
825
826 Upgraded from version 1.19 to 1.21.
827
828 =item C<SelectSaver>
829
830 Upgraded from 1.01 to 1.02.
831
832 =item C<SelfLoader>
833
834 Upgraded from 1.11 to 1.17.
835
836 =item C<Socket>
837
838 Upgraded from 1.80 to 1.82.
839
840 =item C<Storable>
841
842 Upgraded from 2.18 to 2.20.
843
844 =item C<Switch>
845
846 Upgraded from version 2.13 to 2.14. Please see L</Deprecations>.
847
848 =item C<Symbol>
849
850 Upgraded from version 1.06 to 1.07.
851
852 =item C<Sys::Syslog>
853
854 Upgraded from version 0.22 to 0.27.
855
856 =item C<Term::ANSIColor>
857
858 Upgraded from version 1.12 to 2.01.
859
860 =item C<Term::ReadLine>
861
862 Upgraded from version 1.03 to 1.04.
863
864 =item C<Term::UI>
865
866 Upgraded from version 0.18 to 0.20.
867
868 =item C<Test::Harness>
869
870 Upgraded from version 2.64 to 3.17.
871
872 Note that one side-effect of the 2.x to 3.x upgrade is that the
873 experimental C<Test::Harness::Straps> module (and its supporting
874 C<Assert>, C<Iterator>, C<Point> and C<Results> modules) have been
875 removed. If you still need this, then they are available in the
876 (unmaintained) C<Test-Harness-Straps> distribution on CPAN.
877
878 =item C<Test::Simple>
879
880 Upgraded from version 0.72 to 0.92.
881
882 =item C<Text::ParseWords>
883
884 Upgraded from version 3.26 to 3.27.
885
886 =item C<Text::Tabs>
887
888 Upgraded from version 2007.1117 to 2009.0305.
889
890 =item C<Text::Wrap>
891
892 Upgraded from version 2006.1117 to 2009.0305.
893
894 =item C<Thread::Queue>
895
896 Upgraded from version 2.00 to 2.11.
897
898 =item C<Thread::Semaphore>
899
900 Upgraded from version 2.01 to 2.09.
901
902 =item C<threads>
903
904 Upgraded from version 1.67 to 1.73.
905
906 =item C<threads::shared>
907
908 Upgraded from version 1.14 to 1.29.
909
910 =item C<Tie::RefHash>
911
912 Upgraded from version 1.37 to 1.38.
913
914 =item C<Tie::StdHandle>
915
916 This has documentation changes, and has been assigned a version for the
917 first time: version 4.2.
918
919 =item C<Time::HiRes>
920
921 Upgraded from version 1.9711 to 1.9719.
922
923 =item C<Time::Local>
924
925 Upgraded from version 1.18 to 1.1901.
926
927 =item C<Time::Piece>
928
929 Upgraded from version 1.12 to 1.15.
930
931 =item C<Unicode::Normalize>
932
933 Upgraded from version 1.02 to 1.03.
934
935 =item C<Unicode::UCD>
936
937 Upgraded from version 0.25 to 0.27.
938
939 C<charinfo()> now works on Unified CJK code points added to later versions
940 of Unicode.
941
942 C<casefold()> has new fields returned to provide both a simpler interface
943 and previously missing information. The old fields are retained for
944 backwards compatibility. Information about Turkic-specific code points is
945 now returned.
946
947 The documentation has been corrected and expanded.
948
949 =item C<UNIVERSAL>
950
951 Upgraded from version 1.04 to 1.05.
952
953 UNIVERSAL->import() is now deprecated.
954
955 =item C<Win32>
956
957 Upgraded from version 0.34 to 0.39.
958
959 =item C<Win32API::File>
960
961 Upgraded from version 0.1001_01 to 0.1101.
962
963 =item C<XSLoader>
964
965 Upgraded from version 0.08 to 0.10.
966
967 =back
968
969 =head1 Utility Changes
970
971 =over 4
972
973 =item F<h2ph>
974
975 Now looks in C<include-fixed> too, which is a recent addition to gcc's
976 search path.
977
978 =item F<h2xs>
979
980 No longer incorrectly treats enum values like macros (Daniel Burr).
981
982 Now handles C++ style constants (C<//>) properly in enums. (A patch from
983 Rainer Weikusat was used; Daniel Burr also proposed a similar fix).
984
985 =item F<perl5db.pl>
986
987 C<LVALUE> subroutines now work under the debugger.
988
989 The debugger now correctly handles proxy constant subroutines, and
990 subroutine stubs.
991
992 =item F<perlbug>
993
994 F<perlbug> now uses %Module::CoreList::bug_tracker to print out upstream bug
995 tracker URLs.
996
997 Where the user names a module that their bug report is about, and we know the
998 URL for its upstream bug tracker, provide a message to the user explaining
999 that the core copies the CPAN version directly, and provide the URL for
1000 reporting the bug directly to upstream.
1001
1002 =item F<perlthanks>
1003
1004 Perl 5.11.0 added a new utility F<perlthanks>, which is a variant of
1005 F<perlbug>, but for sending non-bug-reports to the authors and maintainers
1006 of Perl. Getting nothing but bug reports can become a bit demoralising:
1007 we'll see if this changes things.
1008
1009 =back
1010
1011 =head1 New Documentation
1012
1013 =over 4
1014
1015 =item L<perlhaiku>
1016
1017 This contains instructions on how to build perl for the Haiku platform.
1018
1019 =item L<perlmroapi>
1020
1021 This describes the new interface for pluggable Method Resolution Orders.
1022
1023 =item L<perlperf>
1024
1025 This document, by Richard Foley, provides an introduction to the use of
1026 performance and optimization techniques which can be used with particular
1027 reference to perl programs.
1028
1029 =item L<perlrepository>
1030
1031 This describes how to access the perl source using the I<git> version
1032 control system.
1033
1034 =item L<perlthanks>
1035
1036 This describes the new F<perlthanks> utility.
1037
1038 =back
1039
1040 =head1 Changes to Existing Documentation
1041
1042 The various large F<Changes*> files (which listed every change made to perl
1043 over the last 18 years) have been removed, and replaced by a small file,
1044 also called F<Changes>, which just explains how that same information may
1045 be extracted from the git version control system.
1046
1047 The file F<Porting/patching.pod> has been deleted, as it mainly described
1048 interacting with the old Perforce-based repository, which is now obsolete.
1049 Information still relevant has been moved to L<perlrepository>.
1050
1051 L<perlapi>, L<perlintern>, L<perlmodlib> and L<perltoc> are now all
1052 generated at build time, rather than being shipped as part of the release.
1053
1054 =head2 Documented -X overloading.
1055
1056 =head2 Documented that when() treats specially most of the filetest operators
1057
1058 =head2 Documented that DESTROY is subject to AUTOLOAD, and the related optimisations.
1059
1060 =head2 Documented when as a syntax modifier
1061
1062 =head2 Eliminated "Old Perl threads tutorial", which describes 5005 threads.
1063
1064 pod/perlthrtut.pod is the same material reworked for ithreads.
1065
1066 =head2 Removed a link to the attrs pragma, which has now been removed.
1067
1068 =head2 update PERL_MEM_LOG in perlhack.pod
1069
1070 =head2 Correct previous documentation: v-strings are not deprecated
1071
1072 With version objects, we need them to use MODULE VERSION syntax.  This
1073 patch removes the deprecation note.
1074
1075 =head1 Performance Enhancements
1076
1077 =over 4
1078
1079 =item *
1080
1081 A new internal cache means that C<isa()> will often be faster.
1082
1083 =item *
1084
1085 The implementation of C<C3> Method Resolution Order has been optimised -
1086 linearisation for classes with single inheritance is 40% faster. Performance 
1087 for multiple inheritance is unchanged.
1088
1089 =item *
1090
1091 Under C<use locale>, the locale-relevant information is now cached on
1092 read-only values, such as the list returned by C<keys %hash>. This makes
1093 operations such as C<sort keys %hash> in the scope of C<use locale> much
1094 faster.
1095
1096 =item *
1097
1098 Empty C<DESTROY> methods are no longer called.
1099
1100 =item *
1101
1102 Faster sv_utf8_upgrade()
1103
1104 =item *
1105
1106 Speed up keys() on empty hash
1107
1108 =back
1109
1110 =head1 Installation and Configuration Improvements
1111
1112 =head2 F<ext/> reorganisation
1113
1114 The layout of directories in F<ext> has been revised. Specifically, all
1115 extensions are now flat, and at the top level, with C</> in pathnames
1116 replaced by C<->, so that F<ext/Data/Dumper/> is now F<ext/Data-Dumper/>,
1117 etc.  The names of the extensions as specified to F<Configure>, and as
1118 reported by C<%Config::Config> under the keys C<dynamic_ext>,
1119 C<known_extensions>, C<nonxs_ext> and C<static_ext> have not changed, and
1120 still use C</>. Hence this change will not have any affect once perl is
1121 installed. However, C<Attribute::Handlers>, C<Safe> and C<mro> have now
1122 become extensions in their own right, so if you run F<Configure> with
1123 options to specify an exact list of extensions to build, you will need to
1124 change it to account for this.
1125
1126 For 5.11.1, it is planned that many dual-life modules will have been moved
1127 from F<lib> to F<ext>; again this will have no effect on an installed
1128 perl, but will matter if you invoke F<Configure> with a pre-canned list of
1129 extensions to build.
1130
1131 =head2 Configuration improvements
1132
1133 If C<vendorlib> and C<vendorarch> are the same, then they are only added to
1134 C<@INC> once.
1135
1136 C<$Config{usedevel}> and the C-level C<PERL_USE_DEVEL> are now defined if
1137 perl is built with  C<-Dusedevel>.
1138
1139 F<Configure> will enable use of C<-fstack-protector>, to provide protection
1140 against stack-smashing attacks, if the compiler supports it.
1141
1142 F<Configure> will now determine the correct prototypes for re-entrant
1143 functions, and for C<gconvert>, if you are using a C++ compiler rather
1144 than a C compiler.
1145
1146 On Unix, if you build from a tree containing a git repository, the
1147 configuration process will note the commit hash you have checked out, for
1148 display in the output of C<perl -v> and C<perl -V>. Unpushed local commits
1149 are automatically added to the list of local patches displayed by
1150 C<perl -V>.
1151
1152 =head2 Compilation improvements
1153
1154 As part of the flattening of F<ext>, all extensions on all platforms are
1155 built by F<make_ext.pl>. This replaces the Unix-specific
1156 F<ext/util/make_ext>, VMS-specific F<make_ext.com> and Win32-specific
1157 F<win32/buildext.pl>.
1158
1159 =head2 Platform Specific Changes
1160
1161 =over 4
1162
1163 =item AIX
1164
1165 Removed F<libbsd> for AIX 5L and 6.1. Only flock() was used from F<libbsd>.
1166
1167 Removed F<libgdbm> for AIX 5L and 6.1. The F<libgdbm> is delivered as an
1168 optional package with the AIX Toolbox. Unfortunately the 64 bit version 
1169 is broken.
1170
1171 Hints changes mean that AIX 4.2 should work again.
1172
1173 =item Cygwin
1174
1175 On Cygwin we now strip the last number from the DLL. This has been the
1176 behaviour in the cygwin.com build for years. The hints files have been
1177 updated.
1178
1179 =item FreeBSD
1180
1181 The hints files now identify the correct threading libraries on FreeBSD 7
1182 and later.
1183
1184 =item Irix
1185
1186 We now work around a bizarre preprocessor bug in the Irix 6.5 compiler:
1187 C<cc -E -> unfortunately goes into K&R mode, but C<cc -E file.c> doesn't.
1188
1189 =item Haiku
1190
1191 Patches from the Haiku maintainers have been merged in. Perl should now
1192 build on Haiku.
1193
1194 =item MirOS BSD
1195
1196 Perl should now build on MirOS BSD.
1197
1198 =item NetBSD
1199
1200 Hints now supports versions 5.*.
1201
1202 =item Stratus VOS
1203
1204 Various changes from Stratus have been merged in.
1205
1206 =item Symbian
1207
1208 There is now support for Symbian S60 3.2 SDK and S60 5.0 SDK.
1209
1210 =item Win32
1211
1212 Improved message window handling means that C<alarm> and C<kill> messages
1213 will no longer be dropped under race conditions.
1214
1215 =item VMS
1216
1217 Reads from the in-memory temporary files of C<PerlIO::scalar> used to fail
1218 if C<$/> was set to a numeric reference (to indicate record-style reads).
1219 This is now fixed.
1220
1221 VMS now supports C<getgrgid>.
1222
1223 Many improvements and cleanups have been made to the VMS file name handling
1224 and conversion code.
1225
1226 Enabling the C<PERL_VMS_POSIX_EXIT> logical name now encodes a POSIX exit
1227 status in a VMS condition value for better interaction with GNV's bash
1228 shell and other utilities that depend on POSIX exit values.  See
1229 L<perlvms/"$?"> for details.
1230
1231 C<File::Copy> now detects Unix compatibility mode on VMS.
1232
1233 =back
1234
1235 =head1 Selected Bug Fixes
1236
1237 =over 4
1238
1239 =item 
1240
1241 =item C<-I> on shebang line now adds directories in front of @INC.
1242 as documented, and as does C<-I> when specified on the command-line.
1243 (Renée Bäcker)
1244
1245 =item *
1246
1247 C<kill> is now fatal when called on non-numeric process identifiers.
1248 Previously, an 'undef' process identifier would be interpreted as a request to
1249 kill process "0", which would terminate the current process group on POSIX
1250 systems.  Since process identifiers are always integers, killing a non-numeric
1251 process is now fatal.
1252
1253 =item *
1254
1255 5.10.0 inadvertently disabled an optimisation, which caused a measurable
1256 performance drop in list assignment, such as is often used to assign
1257 function parameters from C<@_>. The optimisation has been re-instated, and
1258 the performance regression fixed.
1259
1260 =item *
1261
1262 Fixed memory leak on C<while (1) { map 1, 1 }> [RT #53038].
1263
1264 =item *
1265
1266 Some potential coredumps in PerlIO fixed [RT #57322,54828].
1267
1268 =item *
1269
1270 The debugger now works with lvalue subroutines.
1271
1272 =item *
1273
1274 The debugger's C<m> command was broken on modules that defined constants
1275 [RT #61222].
1276
1277 =item *
1278
1279 C<crypt()> and string complement could return tainted values for untainted
1280 arguments [RT #59998].
1281
1282 =item *
1283
1284 The C<-i.suffix> command-line switch now recreates the file using
1285 restricted permissions, before changing its mode to match the original
1286 file. This eliminates a potential race condition [RT #60904].
1287
1288 =item *
1289
1290 On some UNIX systems, the value in C<$?> would not have the top bit set
1291 (C<$? & 128>) even if the child core dumped.
1292
1293 =item *
1294
1295 Under some circumstances, $^R could incorrectly become undefined
1296 [RT #57042].
1297
1298 =item *
1299
1300 (XS) In various hash functions, passing a pre-computed hash to when the
1301 key is UTF-8 might result in an incorrect lookup.
1302
1303 =item *
1304
1305 (XS) Including F<XSUB.h> before F<perl.h> gave a compile-time error
1306 [RT #57176].
1307
1308 =item *
1309
1310 C<< $object->isa('Foo') >> would report false if the package C<Foo> didn't
1311 exist, even if the object's C<@ISA> contained C<Foo>.
1312
1313 =item *
1314
1315 Various bugs in the new-to 5.10.0 mro code, triggered by manipulating
1316 C<@ISA>, have been found and fixed.
1317
1318 =item *
1319
1320 Bitwise operations on references could crash the interpreter, e.g.
1321 C<$x=\$y; $x |= "foo"> [RT #54956].
1322
1323 =item *
1324
1325 Patterns including alternation might be sensitive to the internal UTF-8
1326 representation, e.g.
1327
1328     my $byte = chr(192);
1329     my $utf8 = chr(192); utf8::upgrade($utf8);
1330     $utf8 =~ /$byte|X}/i;       # failed in 5.10.0
1331
1332 =item *
1333
1334 Within UTF8-encoded Perl source files (i.e. where C<use utf8> is in
1335 effect), double-quoted literal strings could be corrupted where a C<\xNN>,
1336 C<\0NNN> or C<\N{}> is followed by a literal character with ordinal value
1337 greater than 255 [RT #59908].
1338
1339 =item *
1340
1341 C<B::Deparse> failed to correctly deparse various constructs:
1342 C<readpipe STRING> [RT #62428], C<CORE::require(STRING)> [RT #62488],
1343 C<sub foo(_)> [RT #62484].
1344
1345 =item *
1346
1347 Using C<setpgrp()> with no arguments could corrupt the perl stack.
1348
1349 =item *
1350
1351 The block form of C<eval> is now specifically trappable by C<Safe> and
1352 C<ops>.  Previously it was erroneously treated like string C<eval>.
1353
1354 =item *
1355
1356 In 5.10.0, the two characters C<[~> were sometimes parsed as the smart
1357 match operator (C<~~>) [RT #63854].
1358
1359 =item *
1360
1361 In 5.10.0, the C<*> quantifier in patterns was sometimes treated as
1362 C<{0,32767}> [RT #60034, #60464]. For example, this match would fail:
1363
1364     ("ab" x 32768) =~ /^(ab)*$/
1365
1366 =item *
1367
1368 C<shmget> was limited to a 32 bit segment size on a 64 bit OS [RT #63924].
1369
1370 =item *
1371
1372 Using C<next> or C<last> to exit a C<given> block no longer produces a
1373 spurious warning like the following:
1374
1375     Exiting given via last at foo.pl line 123
1376
1377 =item *
1378
1379 On Windows, C<'.\foo'> and C<'..\foo'>  were treated differently than
1380 C<'./foo'> and C<'../foo'> by C<do> and C<require> [RT #63492].
1381
1382 =item *
1383
1384 Assigning a format to a glob could corrupt the format; e.g.:
1385
1386      *bar=*foo{FORMAT}; # foo format now bad
1387
1388 =item *
1389
1390 Attempting to coerce a typeglob to a string or number could cause an
1391 assertion failure. The correct error message is now generated,
1392 C<Can't coerce GLOB to I<$type>>.
1393
1394 =item *
1395
1396 Under C<use filetest 'access'>, C<-x> was using the wrong access mode. This
1397 has been fixed [RT #49003].
1398
1399 =item *
1400
1401 C<length> on a tied scalar that returned a Unicode value would not be
1402 correct the first time. This has been fixed.
1403
1404 =item *
1405
1406 Using an array C<tie> inside in array C<tie> could SEGV. This has been
1407 fixed. [RT #51636]
1408
1409 =item *
1410
1411 A race condition inside C<PerlIOStdio_close()> has been identified and
1412 fixed. This used to cause various threading issues, including SEGVs.
1413
1414 =item *
1415
1416 In C<unpack>, the use of C<()> groups in scalar context was internally
1417 placing a list on the interpreter's stack, which manifested in various
1418 ways, including SEGVs.  This is now fixed [RT #50256].
1419
1420 =item *
1421
1422 Magic was called twice in C<substr>, C<\&$x>, C<tie $x, $m> and C<chop>.
1423 These have all been fixed.
1424
1425 =item *
1426
1427 A 5.10.0 optimisation to clear the temporary stack within the implicit
1428 loop of C<s///ge> has been reverted, as it turned out to be the cause of
1429 obscure bugs in seemingly unrelated parts of the interpreter [commit 
1430 ef0d4e17921ee3de].
1431
1432 =item *
1433
1434 The line numbers for warnings inside C<elsif> are now correct.
1435
1436 =item *
1437
1438 The C<..> operator now works correctly with ranges whose ends are at or
1439 close to the values of the smallest and largest integers.
1440
1441 =item *
1442
1443 C<binmode STDIN, ':raw'> could lead to segmentation faults on some platforms.
1444 This has been fixed [RT #54828].
1445
1446 =item *
1447
1448 An off-by-one error meant that C<index $str, ...> was effectively being
1449 executed as C<index "$str\0", ...>. This has been fixed [RT #53746].
1450
1451 =item *
1452
1453 Various leaks associated with named captures in regexes have been fixed
1454 [RT #57024].
1455
1456 =item *
1457
1458 A weak reference to a hash would leak. This was affecting C<DBI>
1459 [RT #56908].
1460
1461 =item *
1462
1463 Using (?|) in a regex could cause a segfault [RT #59734].
1464
1465 =item *
1466
1467 Use of a UTF-8 C<tr//> within a closure could cause a segfault [RT #61520].
1468
1469 =item *
1470
1471 Calling C<sv_chop()> or otherwise upgrading an SV could result in an
1472 unaligned 64-bit access on the SPARC architecture [RT #60574].
1473
1474 =item *
1475
1476 In the 5.10.0 release, C<inc_version_list> would incorrectly list
1477 C<5.10.*> after C<5.8.*>; this affected the C<@INC> search order
1478 [RT #67628].
1479
1480 =item *
1481
1482 In 5.10.0, C<pack "a*", $tainted_value> returned a non-tainted value
1483 [RT #52552].
1484
1485 =item *
1486
1487 In 5.10.0, C<printf> and C<sprintf> could produce the fatal error
1488 C<panic: utf8_mg_pos_cache_update> when printing UTF-8 strings
1489 [RT #62666].
1490
1491 =item *
1492
1493 In the 5.10.0 release, a dynamically created C<AUTOLOAD> method might be
1494 missed (method cache issue) [RT #60220,60232].
1495
1496 =item *
1497
1498 In the 5.10.0 release, a combination of C<use feature> and C<//ee> could
1499 cause a memory leak [RT #63110].
1500
1501 =item *
1502
1503 C<-C> on the shebang (C<#!>) line is once more permitted if it is also
1504 specified on the command line. C<-C> on the shebang line used to be a
1505 silent no-op I<if> it was not also on the command line, so perl 5.10.0
1506 disallowed it, which broke some scripts. Now perl checks whether it is
1507 also on the command line and only dies if it is not [RT #67880].
1508
1509 =item *
1510
1511 In 5.10.0, certain types of re-entrant regular expression could crash,
1512 or cause the following assertion failure [RT #60508]:
1513
1514     Assertion rx->sublen >= (s - rx->subbeg) + i failed
1515
1516 =back
1517
1518 =head1 New or Changed Diagnostics
1519
1520 =over 4
1521
1522 =item C<panic: sv_chop %s>
1523
1524 This new fatal error occurs when the C routine C<Perl_sv_chop()> was
1525 passed a position that is not within the scalar's string buffer. This
1526 could be caused by buggy XS code, and at this point recovery is not
1527 possible.
1528
1529 =item C<Can't locate package %s for the parents of %s>
1530
1531 This warning has been removed. In general, it only got produced in
1532 conjunction with other warnings, and removing it allowed an ISA lookup
1533 optimisation to be added.
1534
1535 =item C<v-string in use/require is non-portable>
1536
1537 This warning has been removed.
1538
1539 =item C<Deep recursion on subroutine "%s">
1540
1541 It is now possible to change the depth threshold for this warning from the
1542 default of 100, by recompiling the F<perl> binary, setting the C
1543 pre-processor macro C<PERL_SUB_DEPTH_WARN> to the desired value.
1544
1545 =back
1546
1547 =head1 Changed Internals
1548
1549 =over 4
1550
1551 =item *
1552
1553 The J.R.R. Tolkien quotes at the head of C source file have been checked and
1554 proper citations added, thanks to a patch from Tom Christiansen.
1555
1556 =item *
1557
1558 C<vcroak()> now accepts a null first argument. In addition, a full audit
1559 was made of the "not NULL" compiler annotations, and those for several
1560 other internal functions were corrected.
1561
1562 =item *
1563
1564 New macros C<dSAVEDERRNO>, C<dSAVE_ERRNO>, C<SAVE_ERRNO>, C<RESTORE_ERRNO>
1565 have been added to formalise the temporary saving of the C<errno>
1566 variable.
1567
1568 =item *
1569
1570 The function C<Perl_sv_insert_flags> has been added to augment
1571 C<Perl_sv_insert>.
1572
1573 =item *
1574
1575 The function C<Perl_newSV_type(type)> has been added, equivalent to
1576 C<Perl_newSV()> followed by C<Perl_sv_upgrade(type)>.
1577
1578 =item *
1579
1580 The function C<Perl_newSVpvn_flags()> has been added, equivalent to
1581 C<Perl_newSVpvn()> and then performing the action relevant to the flag.
1582
1583 Two flag bits are currently supported.
1584
1585 =over 4
1586
1587 =item C<SVf_UTF8>
1588
1589 This will call C<SvUTF8_on()> for you. (Note that this does not convert an
1590 sequence of ISO 8859-1 characters to UTF-8). A wrapper, C<newSVpvn_utf8()>
1591 is available for this.
1592
1593 =item C<SVs_TEMP>
1594
1595 Call C<sv_2mortal()> on the new SV.
1596
1597 =back
1598
1599 There is also a wrapper that takes constant strings, C<newSVpvs_flags()>.
1600
1601 =item *
1602
1603 The function C<Perl_croak_xs_usage> has been added as a wrapper to
1604 C<Perl_croak>.
1605
1606 =item *
1607
1608 The functions C<PerlIO_find_layer> and C<PerlIO_list_alloc> are now
1609 exported.
1610
1611 =item *
1612
1613 C<PL_na> has been exterminated from the core code, replaced by local STRLEN
1614 temporaries, or C<*_nolen()> calls. Either approach is faster than C<PL_na>,
1615 which is a pointer deference into the interpreter structure under ithreads,
1616 and a global variable otherwise.
1617
1618 =item *
1619
1620 C<Perl_mg_free()> used to leave freed memory accessible via SvMAGIC() on
1621 the scalar. It now updates the linked list to remove each piece of magic
1622 as it is freed.
1623
1624 =item *
1625
1626 Under ithreads, the regex in C<PL_reg_curpm> is now reference counted. This
1627 eliminates a lot of hackish workarounds to cope with it not being reference
1628 counted.
1629
1630 =item *
1631
1632 C<Perl_mg_magical()> would sometimes incorrectly turn on C<SvRMAGICAL()>.
1633 This has been fixed.
1634
1635 =item *
1636
1637 The I<public> IV and NV flags are now not set if the string value has
1638 trailing "garbage". This behaviour is consistent with not setting the
1639 public IV or NV flags if the value is out of range for the type.
1640
1641 =item *
1642
1643 SV allocation tracing has been added to the diagnostics enabled by C<-Dm>.
1644 The tracing can alternatively output via the C<PERL_MEM_LOG> mechanism, if
1645 that was enabled when the F<perl> binary was compiled.
1646
1647 =item *
1648
1649 Uses of C<Nullav>, C<Nullcv>, C<Nullhv>, C<Nullop>, C<Nullsv> etc have been
1650 replaced by C<NULL> in the core code, and non-dual-life modules, as C<NULL>
1651 is clearer to those unfamiliar with the core code.
1652
1653 =item *
1654
1655 A macro C<MUTABLE_PTR(p)> has been added, which on (non-pedantic) gcc will
1656 not cast away C<const>, returning a C<void *>. Macros C<MUTABLE_SV(av)>,
1657 C<MUTABLE_SV(cv)> etc build on this, casting to C<AV *> etc without
1658 casting away C<const>. This allows proper compile-time auditing of
1659 C<const> correctness in the core, and helped picked up some errors (now
1660 fixed).
1661
1662 =item *
1663
1664 Macros C<mPUSHs()> and C<mXPUSHs()> have been added, for pushing SVs on the
1665 stack and mortalizing them.
1666
1667 =item *
1668
1669 Use of the private structure C<mro_meta> has changed slightly. Nothing
1670 outside the core should be accessing this directly anyway.
1671
1672 =item *
1673
1674 A new tool, F<Porting/expand-macro.pl> has been added, that allows you
1675 to view how a C preprocessor macro would be expanded when compiled.
1676 This is handy when trying to decode the macro hell that is the perl
1677 guts.
1678
1679 =back
1680
1681 =head1 New Tests
1682
1683 Many modules updated from CPAN incorporate new tests.
1684
1685 Several tests that have the potential to hang forever if they fail now
1686 incorporate a "watchdog" functionality that will kill them after a timeout,
1687 which helps ensure that C<make test> and C<make test_harness> run to
1688 completion automatically. (Jerry Hedden).
1689
1690 Some core-specific tests have been added:
1691
1692 =over 4
1693
1694 =item t/comp/retainedlines.t
1695
1696 Check that the debugger can retain source lines from C<eval>.
1697
1698 =item t/io/perlio_fail.t
1699
1700 Check that bad layers fail.
1701
1702 =item t/io/perlio_leaks.t
1703
1704 Check that PerlIO layers are not leaking.
1705
1706 =item t/io/perlio_open.t
1707
1708 Check that certain special forms of open work.
1709
1710 =item t/io/perlio.t
1711
1712 General PerlIO tests.
1713
1714 =item t/io/pvbm.t
1715
1716 Check that there is no unexpected interaction between the internal types
1717 C<PVBM> and C<PVGV>.
1718
1719 =item t/mro/package_aliases.t
1720
1721 Check that mro works properly in the presence of aliased packages.
1722
1723 =item t/op/dbm.t
1724
1725 Tests for C<dbmopen> and C<dbmclose>.
1726
1727 =item t/op/index_thr.t
1728
1729 Tests for the interaction of C<index> and threads.
1730
1731 =item t/op/pat_thr.t
1732
1733 Tests for the interaction of esoteric patterns and threads.
1734
1735 =item t/op/qr_gc.t
1736
1737 Test that C<qr> doesn't leak.
1738
1739 =item t/op/reg_email_thr.t
1740
1741 Tests for the interaction of regex recursion and threads.
1742
1743 =item t/op/regexp_qr_embed_thr.t
1744
1745 Tests for the interaction of patterns with embedded C<qr//> and threads.
1746
1747 =item t/op/regexp_unicode_prop.t
1748
1749 Tests for Unicode properties in regular expressions.
1750
1751 =item t/op/regexp_unicode_prop_thr.t
1752
1753 Tests for the interaction of Unicode properties and threads.
1754
1755 =item t/op/reg_nc_tie.t
1756
1757 Test the tied methods of C<Tie::Hash::NamedCapture>.
1758
1759 =item t/op/reg_posixcc.t 
1760
1761 Check that POSIX character classes behave consistently.
1762
1763 =item t/op/re.t
1764
1765 Check that exportable C<re> functions in F<universal.c> work.
1766
1767 =item t/op/setpgrpstack.t
1768
1769 Check that C<setpgrp> works.
1770
1771 =item t/op/substr_thr.t
1772
1773 Tests for the interaction of C<substr> and threads.
1774
1775 =item t/op/upgrade.t
1776
1777 Check that upgrading and assigning scalars works.
1778
1779 =item t/uni/lex_utf8.t
1780
1781 Check that Unicode in the lexer works.
1782
1783 =item t/uni/tie.t
1784
1785 Check that Unicode and C<tie> work.
1786
1787 =back
1788
1789 =head1 Known Problems
1790
1791 This is a list of some significant unfixed bugs, which are regressions
1792 from either 5.10.0 or 5.8.x.
1793
1794 =over 4
1795
1796 =item *
1797
1798 C<List::Util::first> misbehaves in the presence of a lexical C<$_>
1799 (typically introduced by C<my $_> or implicitly by C<given>). The variable
1800 which gets set for each iteration is the package variable C<$_>, not the
1801 lexical C<$_> [RT #67694].
1802
1803 A similar issue may occur in other modules that provide functions which
1804 take a block as their first argument, like
1805
1806     foo { ... $_ ...} list
1807
1808 =item *
1809
1810 The C<charnames> pragma may generate a run-time error when a regex is
1811 interpolated [RT #56444]:
1812
1813     use charnames ':full';
1814     my $r1 = qr/\N{THAI CHARACTER SARA I}/;
1815     "foo" =~ $r1;    # okay
1816     "foo" =~ /$r1+/; # runtime error
1817
1818 A workaround is to generate the character outside of the regex:
1819
1820     my $a = "\N{THAI CHARACTER SARA I}";
1821     my $r1 = qr/$a/;
1822
1823 =item *
1824
1825 Some regexes may run much more slowly when run in a child thread compared
1826 with the thread the pattern was compiled into [RT #55600].
1827
1828 =back
1829
1830 =head1 Deprecations
1831
1832 The following items are now deprecated.
1833
1834 =over 4
1835
1836 =item *
1837
1838 C<Switch> is buggy and should be avoided. From perl 5.11.0 onwards, it is
1839 intended that any use of the core version of this module will emit a
1840 warning, and that the module will eventually be removed from the core
1841 (probably in perl 5.14.0). See L<perlsyn/"Switch statements"> for its
1842 replacement.
1843
1844 =item *
1845
1846 C<suidperl> has been removed. It used to provide a mechanism to
1847 emulate setuid permission bits on systems that don't support it properly.
1848
1849 =item *
1850
1851 Deprecate assignment to $[
1852
1853 =item *
1854
1855 Remove attrs, which has been deprecated since 1999/10/02.
1856
1857 =item *
1858
1859 Deprecate use of the attribute :locked on subroutines.
1860
1861 =item *
1862
1863 Deprecate using "locked" with the attributes pragma.
1864
1865 =item *
1866
1867 Deprecate using "unique" with the attributes pragma.
1868
1869 =item *
1870
1871 warn if ++ or -- are unable to change the value because it's beyond the limit of representation 
1872
1873 This uses a new warnings category: "imprecision".
1874
1875 =item *
1876
1877 Make lc/uc/lcfirst/ucfirst warn when passed undef.
1878
1879 =item *
1880
1881 Show constant in "Useless use of a constant in void context"
1882
1883 =item *
1884
1885 Make the new warning report undef constants as undef
1886
1887 =item *
1888
1889 Add a new warning, "Prototype after '%s'"
1890
1891 =item *
1892
1893 Tweak the "Illegal character in prototype" warning so it's more precise when reporting illegal characters after _
1894
1895 =item *
1896
1897 Unintented interpolation of $\ in regex
1898
1899 =item *
1900
1901 Make overflow warnings in gmtime/localtime only occur when warnings are on
1902
1903 =item *
1904
1905 Improve mro merging error messages.
1906
1907 They are now very similar to those produced by Algorithm::C3.
1908
1909 =item *
1910
1911 Amelioration of the error message "Unrecognized character %s in column %d"
1912
1913 Changes the error message to "Unrecognized character %s; marked by <--
1914 HERE after %s<-- HERE near column %d". This should make it a little
1915 simpler to spot and correct the suspicious character.
1916
1917 =item *
1918
1919 Explicitely point to $. when it causes an uninitialized warning for ranges in scalar context
1920
1921 =back
1922
1923 =head1 Acknowledgements
1924
1925 Some of the work in this release was funded by a TPF grant.
1926
1927 Nicholas Clark officially retired from maintenance pumpking duty at the
1928 end of 2008; however in reality he has put much effort in since then to
1929 help get 5.10.1 into a fit state to be released, including writing a
1930 considerable chunk of this perldelta.
1931
1932 Steffen Mueller and David Golden in particular helped getting CPAN modules
1933 polished and synchronised with their in-core equivalents.
1934
1935 Craig Berry was tireless in getting maint to run under VMS, no matter how
1936 many times we broke it for him.
1937
1938 The other core committers contributed most of the changes, and applied most
1939 of the patches sent in by the hundreds of contributors listed in F<AUTHORS>.
1940
1941 Much of the work of categorizing changes in this perldelta file was contributed
1942 by the following porters using changelogger.bestpractical.com:
1943
1944 Nicholas Clark, leon, shawn, alexm, rjbs, rafl, Pedro Melo, brunorc,
1945 anonymous, ☄, Tom Hukins, anonymous, Jesse, dagolden, Moritz Onken,
1946 Mark Fowler, chorny, anonymous, tmtm
1947
1948 Finally, thanks to Larry Wall, without whom none of this would be
1949 necessary.
1950
1951 =head1 Reporting Bugs
1952
1953 If you find what you think is a bug, you might check the articles
1954 recently posted to the comp.lang.perl.misc newsgroup and the perl
1955 bug database at http://rt.perl.org/perlbug/ .  There may also be
1956 information at http://www.perl.org/ , the Perl Home Page.
1957
1958 If you believe you have an unreported bug, please run the B<perlbug>
1959 program included with your release.  Be sure to trim your bug down
1960 to a tiny but sufficient test case.  Your bug report, along with the
1961 output of C<perl -V>, will be sent off to perlbug@perl.org to be
1962 analysed by the Perl porting team.
1963
1964 If the bug you are reporting has security implications, which make it
1965 inappropriate to send to a publicly archived mailing list, then please send
1966 it to perl5-security-report@perl.org. This points to a closed subscription
1967 unarchived mailing list, which includes all the core committers, who be able
1968 to help assess the impact of issues, figure out a resolution, and help
1969 co-ordinate the release of patches to mitigate or fix the problem across all
1970 platforms on which Perl is supported. Please only use this address for
1971 security issues in the Perl core, not for modules independently
1972 distributed on CPAN.
1973
1974 =head1 SEE ALSO
1975
1976 The F<Changes> file for an explanation of how to view exhaustive details
1977 on what changed.
1978
1979 The F<INSTALL> file for how to build Perl.
1980
1981 The F<README> file for general stuff.
1982
1983 The F<Artistic> and F<Copying> files for copyright information.
1984
1985 =cut
1986
1987
1988 =head1 TODO
1989
1990 The following changes are a filtered list of changes which weren't backported
1991 to 5.10.1. They were run through changelogger.bestpractical.com and triaged
1992 by a set of Perl 5 Porters. Changes to blead after 5945e41e have not yet
1993 been triaged or integrated.
1994
1995 The following changes need to be 
1996
1997 1) deleted if they don't merit inclusion
1998
1999         OR
2000
2001 2) lightly copyedited and integrated into the perldelta above. Unfortunately, many of our
2002 commit messages are somewhat terse and require a bit more help to turn into something readable
2003
2004
2005
2006
2007 =head1 API
2008
2009 =head2 Move the reg_stringify logic to Perl_sv_2pv_flags
2010
2011 =head2 mg_copy ought to take an I32
2012
2013 =head2 Perl_store_cop_label() isn't meant to be part of the public API.
2014
2015 =head2 Perl_gv_fetchmethod{,_autoload,_flags} are actually never* called with a non-NULL stash. 
2016 So change the parameter to NN.
2017
2018
2019 =head2 Promote Perl_setdefout() to the public API.
2020
2021 =head2 Add get_cvs() as a shortcut for STR_WITH_LEN() and Perl_get_cvn_flags()
2022
2023 =head2 In Perl_newCONSTSUB(), sv should not be NULL.
2024
2025 =head2 GvUNIQUE* have been defined as 0 since 2005/06/30 - high time to remove them.
2026
2027 =head2 invert and rename PERL_MEM_LOG_STDERR to PERL_MEM_LOG_NOIMPL
2028
2029 Most users who want PERL_MEM_LOG want the default implementation,
2030 give it to them.  Users providing their own implementation can
2031 obtain current behavior by adding -DPERL_MEM_LOG_NOIMPL.
2032 Frankly, the average user probably wants _ENV by default too.
2033
2034 =head2 simplify PERL_MEM_LOG
2035
2036 This combines multiple environment variable reads into 1,
2037 where it looks for values like "2mst"
2038 -2 leading digits are atoi()d to get FD
2039 -m memory logging please
2040 -s sv logging also
2041 -t timestamp those please.
2042
2043 Combining these reduces overhead such that it seemed
2044 worthwhile to drop all the ifdefs.  TBD whether this works
2045 in the environment that drove the original tradeoffs.
2046
2047 If it isnt enough, Id be tempted by a global static ptr,
2048 and on 1st use, is read, seen 0, a lock is taken, and getenvar
2049 run to populate it, unlocked, proceed.  This would remove
2050 iterative overheads.
2051
2052 =head2 Add a parameter "destructing" to Gv_AMupdate()
2053
2054 This boolean parameter indicates if the function has been called
2055 to update the overload magic table while looking up the DESTROY
2056 method. In this case, it's probably best to avoid croaking if
2057 those tables could not be updated (for example due to a method
2058 that could not be loaded.)
2059
2060 =head2 Modify the return value of Gv_AMupdate to indicate a compilation error
2061
2062 This way we'll restore most of the performance on object desctruction
2063 lost by the previous commit
2064
2065
2066 =head2 local $SIG{FOO} = sub {...}; sets signal handler to SIG_DFL
2067
2068 Re: [perl #60360] [PATCH] UPDATED: local $SIG{FOO} = sub {...}; sets signal handler to SIG_DFL
2069 Message-ID: <20081112234504.GI2062@tytlal.topaz.cx>
2070
2071 Updated patch to retain source compatibility.
2072
2073 Plus using the correct PERL_ARGS_ASSERT_SAVE_HELEM_FLAGS
2074 macro and running make regen.
2075
2076 =head2 Respecting inc_version_list while processing PERL_VENDORLIB_STEM
2077
2078 Respecting inc_version_list while processing PERL_VENDORLIB_STEM
2079 From: "Mandalemula, Rajesh" <Rajesh.Mandalemula@deshaw.com>
2080
2081 =head2 Change PL_debug behaviour 
2082
2083
2084 String eval lines are now saved whenever
2085 a subroutine is defined, even if the eval'd string has subsequent
2086 syntax errors. This allows the debugger to single step into these
2087 subroutines.
2088
2089
2090 =head2 Tied filehandles now have an additional method EOF which provides the EOF type
2091
2092 =head2 Perl is now smarter about adding a -I dir to the beginning or end of @INC
2093
2094 =head2 On scope end, delete localized array elements that should not exist anymore, so that the array recovers its previous length. Honour EXISTS and DELETE for tied arrays.
2095
2096 =head2 When a glob is deleted, mark its sub as ANON.
2097
2098 =head2 Require a space or a newline after a "#line XXX" directive
2099
2100 =head2 Forbid using "foreach" as an attribute
2101
2102 (like all other control flow statements)
2103
2104
2105 =head2 Unregister signal handlers before destroying my_perl
2106
2107 If the signal handler runs after perl_destruct() has been called, it
2108 will get an invalid (or NULL) my_perl when it asks for the
2109 thread-specific interpreter struct.  This patch resets the signal
2110 handler for any signal previously handled by PL_csighandlerp to SIG_DFL
2111 before calling perl_destruct().
2112
2113 =head2 Perl_magic_clearsig() needs to remove magic, else delete $SIG{INT} returns undef
2114
2115 Perl_magic_clearsig() needs to remove magic, else delete $SIG{INT} returns undef
2116 instead of the now-removed INT handler.
2117
2118 =head2 [perl #66452] TMPDIR not honored when opening an anonymous temporary file
2119
2120 [perl #66452] TMPDIR not honored when opening an anonymous temporary file
2121
2122 =head2 The attached patch to perlio.c fixes the problem of errno getting set.
2123
2124 While I am firmly in the school of "do not look at $! except immediately
2125 after a failure", I also agree that spuriously setting it is messy.  But
2126 there is just no way of knowing where your errno might have been.
2127
2128 The problem was that PerlIO_fast_gets() (and other nearby similar
2129 capability-checking PerlIO routines) set the errno (and it was being
2130 called a lot, from sv_gets()).  I think setting the errno here was
2131 a mistake: checking for "can has FOO" should not set external state,
2132 such as the errno.  The patch removes that errno trashing from all those
2133 routines.
2134
2135 =head2 Trim all trailing / from "." in @INC when filling %INC
2136
2137 This fixes bug #66942 : as a / was left in the directory name,
2138 $INC{"Foo.pm"} for a file loaded from the current directory
2139 was given the incorrect value "/Foo.pm".
2140
2141 =head2 Don't enqueue pending signals during global destruction
2142
2143 Global destruction is not signal-safe. PL_psig_pend may already
2144 be gone when the signal handler is called (with destruct_level > 0).
2145 NULL it before freeing it to prevent a race condition.
2146
2147 =head2 Eliminate struct regexp_allocated and xpvio_allocated.
2148
2149 Calculate memory allocation using regexp and XPVIO, and the offset of the first
2150 real structure member. This avoids tripping over alignment differences between
2151 X* and x*_allocated, because x*_allocated doesn't have a double in it.
2152
2153
2154 =head1 internals
2155
2156 =head2 [perl #47047] Use of inherited AUTOLOAD for non-method is deprecated
2157
2158 =head2 Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_na when code is within the perl source tree
2159
2160 =head2 Replace our assert-which-can-be-caught-by-eval with the real deal from the standard C library.
2161
2162 =head2 Tweak Perl_sv_upgrade() so that references can upgrade to SVt_PV
2163
2164 =head2 Eliminate prelen from struct regexp. 
2165
2166 =head2 Change Perl_av_iter_p() to return IV* rather than I32* (which means
2167
2168 =head2 Reorder the external regexp flags to get RXf_PMf_STD_PMMOD into the
2169
2170 lowest 4 bits (which saves a shift), and the "flags indicating special
2171 patterns" into contiguous bits. This makes everything a little tidier,
2172 and saves 88 bytes (woohoo!) of object file with -Os on x86 FreeBSD.
2173
2174
2175 =head2 Re-implement the SvOOK() hack to store the offset as a BER encoded number in the part of the PVX that is being released. 
2176 (It will always
2177 fit, as chopping off 1 byte gives just enough space for recording a
2178 delta of up to 127). This allows SvOOK() to co-exist with SvIOK_on(),
2179 which means all the calls to SvOOK_off() [with the possibility of a
2180 call to sv_backoff()] in SvIOK_on() can be removed. This ought to make
2181 a lot of straight line code a little bit simpler.
2182 OOK()d scalars can now be SVt_PV, as the IVX isn't needed.
2183
2184 =head2 Abolish wraplen from struct regexp. We're already storing it in SvCUR.
2185
2186 =head2 Make Perl_pregcomp() use SvUTF8() of the pattern, rather than the flag bit in pmflags, to decide whether the pattern is UTF-8.
2187
2188 =head2 Abolish RXf_UTF8. Store the UTF-8-ness of the pattern with SvUTF8().
2189
2190 =head2 In struct regexp move the member paren_names to the IV union.
2191
2192 =head2 Make REGEXP a type distinct from SV. (Much like AV, CV, GV, HV).
2193
2194 =head2 Allow sv_setsv_flags() to copy SVt_REGEXP much like it copies SVt_FORMAT - the just string buffer.
2195
2196
2197 =head2 Correct a long-standing ithreads reference counting anonamly
2198
2199 The reference count only needs "doubling" when the scalar is pushed onto
2200 PL_regex_padav for the second time.
2201
2202
2203 =head2 In PL_regexp_padav, store regexps via real references, rather than hiding them within IVs. 
2204
2205 We can do this now that they are real SV pointers.
2206
2207 =head2 With regexps stored as real RVs, we can eliminate SvREPADTMP().
2208
2209 =head2 REGEXPs are now stored directly in PL_regex_padav, rather than indirectly via RVs.
2210
2211 =head2 Remove code that protected pp_qr against REGEXPs going away during global destruction whilst they were stored via true references in PL_regex_padav. 
2212
2213 =head2 Remove PM_GETRE_SAFE and PM_SETRE_SAFE as nothing uses them.
2214
2215 =head2 Note the U8 sized space created by removing -P, and check that it is now an illegal command line flag.
2216
2217 =head2 Pack the recycled pad offsets into an SV at PL_regex_pad[0]. 
2218
2219 =head2 Re-order so that the !SvOK() case is last (which should be rare)
2220
2221 =head2 Extend PUSHFORMAT() to take a second parameter to set retop, to save NULLing it and then reassigning.
2222
2223 =head2 Split struct block_sub into struct block_sub and struct block_format.
2224
2225 Split struct block_sub into struct block_sub and struct block_format.
2226 (CXt_SUB and CXt_FORMAT were using some comon members, but some members
2227 were only for one or the other.)
2228
2229 =head2 Change the wantarray result from caller from IV to bool for the SCALAR/ARRAY case. 
2230
2231 This doesn't contradict the documentation, as there isn't any. Oops.
2232
2233
2234 =head2 Give G_VOID, G_SCALAR and G_ARRAY the same numeric values as OPf_WANT_VOID, OPf_WANT_SCALAR and OPf_WANT_LIST.
2235
2236
2237 =head2 Squeeze the context type down to 4 bits, and move the private flags to fit within the next 4 bits.
2238
2239
2240 =head2 In struct block change blku_type from U8 to U16, and the "spare" U8 to U16, with the lockstep changes in struct subst. 
2241 Eliminate lval from
2242 struct block_sub, and instead store it in the U16 in struct block.
2243
2244
2245 =head2 In struct block_eval, eliminate old_in_eval and old_op_type by storing the data in blk_u16.
2246
2247
2248 =head2 The layout for struct block_loop under ithreads can be simplified.
2249
2250 Instead of wedging the pad offset into a void* iterdata, and always
2251 storing PL_comppad even when it isn't used, instead do this:
2252
2253 PAD        *oldcomppad; /* Also used for the GV, if targoffset is 0 */
2254 /* This is also accesible via cx->blk_loop.my_op->op_targ */
2255 PADOFFSET  targoffset;
2256
2257 and store the GV pointer in oldcompad. Pointers to pointers seems
2258 cleaner. This also allows us to eliminate the flag bit CXp_PADVAR.
2259
2260
2261 =head2 In XS_PerlIO_get_layers() take advantage of the implementation of
2262
2263 In XS_PerlIO_get_layers() take advantage of the implementation of
2264 PerlIO_get_layers(), by co-opting the new SVs it creates, rather than
2265 copying them.
2266
2267
2268 =head2 Micro-optimise the order of the context types. [Because I can :-)]
2269
2270 =head2 [patch] optimize OP_IS_(FILETEST|SOCKET) macros
2271
2272 =head2 Eliminate ck_lengthconst.
2273
2274 =head2 Chainsaw DEBUG_S out, as suggested by Vincent Pit.
2275
2276 =head2 Unsupported private API functions are now declared "static" to prevent leakage to the public API
2277
2278 =head2 Perl_cv_ckproto() is not part of the public API, and not used anywhere. It has been removed
2279
2280 =head2 Remove all the 5005threads specific mutex macros, which are now vestigial.
2281
2282 =head2 Do not honor TMPDIR for anonymous temporary files when tainting
2283
2284 Use a default of /tmp on Unixes when TMPDIR is unset or empty, or
2285 when creation of a temporary file in it fails
2286
2287 =head2 Add a pluggable hook in op_free()
2288
2289