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