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