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