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