argra****@users*****
argra****@users*****
2009年 9月 25日 (金) 06:10:40 JST
Index: docs/perl/5.10.1/perl5101delta.pod diff -u docs/perl/5.10.1/perl5101delta.pod:1.1 docs/perl/5.10.1/perl5101delta.pod:1.2 --- docs/perl/5.10.1/perl5101delta.pod:1.1 Fri Sep 25 03:06:28 2009 +++ docs/perl/5.10.1/perl5101delta.pod Fri Sep 25 06:10:40 2009 @@ -51,6 +51,11 @@ =end original +The handling of complex expressions by the C<given>/C<when> switch +statement has been enhanced. There are two new cases where C<when> now +interprets its argument as a boolean, instead of an expression to be used +in a smart match: +(TBT) =over 4 @@ -63,6 +68,9 @@ =end original +The C<..> and C<...> flip-flop operators are now evaluated in boolean +context, following their usual semantics; see L<perlop/"Range Operators">. +(TBT) =begin original @@ -72,6 +80,10 @@ =end original +Note that, as in perl 5.10.0, C<when (1..10)> will not work to test +whether a given value is an integer between 1 and 10; you should use +C<when ([1..10])> instead (note the array reference). +(TBT) =begin original @@ -81,6 +93,10 @@ =end original +However, contrary to 5.10.0, evaluating the flip-flop operators in boolean +context ensures it can now be useful in a C<when()>, notably for +implementing bistable conditions, like in: +(TBT) when (/^=begin/ .. /^=end/) { # do something @@ -97,6 +113,11 @@ =end original +A compound expression involving the defined-or operator, as in +C<when (expr1 // expr2)>, will be treated as boolean if the first +expression is boolean. (This just extends the existing rule that applies +to the regular or operator, as in C<when (expr1 || expr2)>.) +(TBT) =back @@ -108,6 +129,10 @@ =end original +The next section details more changes brought to the semantics to +the smart match operator, that naturally also modify the behaviour +of the switch statements where smart matching is implicitly used. +(TBT) =head2 Smart match changes @@ -127,6 +152,12 @@ =end original +The smart match operator C<~~> is no longer commutative. The behaviour of +a smart match now depends primarily on the type of its right hand +argument. Moreover, its semantics have been adjusted for greater +consistency or usefulness in several cases. While the general backwards +compatibility is maintained, several changes must be noted: +(TBT) =over 4 @@ -140,6 +171,10 @@ =end original +Code references with an empty prototype are no longer treated specially. +They are passed an argument like the other code references (even if they +choose to ignore it). +(TBT) =item * @@ -152,6 +187,11 @@ =end original +C<%hash ~~ sub {}> and C<@array ~~ sub {}> now test that the subroutine +returns a true value for each key of the hash (or element of the +array), instead of passing the whole hash or array as a reference to +the subroutine. +(TBT) =item * @@ -163,6 +203,10 @@ =end original +Due to the commutativity breakage, code references are no longer +treated specially when appearing on the left of the C<~~> operator, +but like any vulgar scalar. +(TBT) =item * @@ -174,6 +218,10 @@ =end original +C<undef ~~ %hash> is always false (since C<undef> can't be a key in a +hash). No implicit conversion to C<""> is done (as was the case in perl +5.10.0). +(TBT) =item * @@ -186,6 +234,11 @@ =end original +C<$scalar ~~ @array> now always distributes the smart match across the +elements of the array. It's true if one element in @array verifies +C<$scalar ~~ $element>. This is a generalization of the old behaviour +that tested whether the array contained the scalar. +(TBT) =back @@ -196,6 +249,9 @@ =end original +The full dispatch table for the smart match operator is given in +L<perlsyn/"Smart matching in detail">. +(TBT) =head3 Smart match and overloading @@ -217,6 +273,18 @@ =end original +According to the rule of dispatch based on the rightmost argument type, +when an object overloading C<~~> appears on the right side of the +operator, the overload routine will always be called (with a 3rd argument +set to a true value, see L<overload>.) However, when the object will +appear on the left, the overload routine will be called only when the +rightmost argument is a simple scalar. This way distributivity of smart match +across arrays is not broken, as well as the other behaviours with complex +types (coderefs, hashes, regexes). Thus, writers of overloading routines +for smart match mostly need to worry only with comparing against a scalar, +and possibly with stringification overloading; the other common cases +will be automatically handled consistently. +(TBT) =begin original @@ -227,6 +295,11 @@ =end original +C<~~> will now refuse to work on objects that do not overload it (in order +to avoid relying on the object's underlying structure). (However, if the +object overloads the stringification or the numification operators, and +if overload fallback is active, it will be used instead, as usual.) +(TBT) =head2 Other incompatible changes @@ -243,6 +316,9 @@ =end original +The semantics of C<use feature :5.10*> have changed slightly. +See L<"Modules and Pragmata"> for more information. +(TBT) =item * @@ -255,6 +331,11 @@ =end original +It is now a run-time error to use the smart match operator C<~~> +with an object that has no overload defined for it. (This way +C<~~> will not break encapsulation by matching against the +object's internal representation as a reference.) +(TBT) =item * @@ -268,6 +349,12 @@ =end original +The version control system used for the development of the perl +interpreter has been switched from Perforce to git. This is mainly an +internal issue that only affects people actively working on the perl core; +but it may have minor external visibility, for example in some of details +of the output of C<perl -V>. See L<perlrepository> for more information. +(TBT) =item * @@ -285,6 +372,16 @@ =end original +The internal structure of the C<ext/> directory in the perl source has +been reorganised. In general, a module C<Foo::Bar> whose source was +stored under F<ext/Foo/Bar/> is now located under F<ext/Foo-Bar/>. Also, +some modules have been moved from F<lib/> to F<ext/>. This is purely a +source tarball change, and should make no difference to the compilation or +installation of perl, unless you have a very customised build process that +explicitly relies on this structure, or which hard-codes the C<nonxs_ext> +F<Configure> parameter. Specifically, this change does not by default +alter the location of any files in the final installation. +(TBT) =item * @@ -296,6 +393,10 @@ =end original +As part of the C<Test::Harness> 2.x to 3.x upgrade, the experimental +C<Test::Harness::Straps> module has been removed. +See L</"Updated Modules"> for more details. +(TBT) =item * @@ -307,6 +408,10 @@ =end original +As part of the C<ExtUtils::MakeMaker> upgrade, the +C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish> modules +have been removed from this distribution. +(TBT) =item * @@ -316,6 +421,8 @@ =end original +C<Module::CoreList> no longer contains the C<%:patchlevel> hash. +(TBT) =item * @@ -326,6 +433,9 @@ =end original +This one is actually a change introduced in 5.10.0, but it was missed +from that release's perldelta, so it is mentioned here instead. +(TBT) =begin original @@ -334,6 +444,9 @@ =end original +A bugfix related to the handling of the C</m> modifier and C<qr> resulted +in a change of behaviour between 5.8.x and 5.10.0: +(TBT) # matches in 5.8.x, doesn't match in 5.10.0 $re = qr/^bar/; "foo\nbar" =~ /$re/m; @@ -375,6 +488,12 @@ =end original +As of Perl 5.10.1 there is a new interface for plugging and using method +resolution orders other than the default (linear depth first search). +The C3 method resolution order added in 5.10.0 has been re-implemented as +a plugin, without changing its Perl-space interface. See L<perlmroapi> for +more information. +(TBT) =head2 The C<overloading> pragma @@ -387,6 +506,9 @@ =end original +This pragma allows you to lexically disable or enable overloading +for some or all operations. (Yuval Kogman) +(TBT) =head2 Parallel tests @@ -401,6 +523,11 @@ =end original +The core distribution can now run its regression tests in parallel on +Unix-like platforms. Instead of running C<make test>, set C<TEST_JOBS> in +your environment to the number of tests to run in parallel, and run +C<make test_harness>. On a Bourne-like shell, this can be done as +(TBT) TEST_JOBS=3 make test_harness # Run 3 tests in parallel @@ -413,6 +540,11 @@ =end original +An environment variable is used, rather than parallel make itself, because +L<TAP::Harness> needs to be able to schedule individual non-conflicting test +scripts itself, and there is no standard interface to C<make> utilities to +interact with their job schedulers. +(TBT) =begin original @@ -422,6 +554,10 @@ =end original +Note that currently some test scripts may fail when run in parallel (most +notably C<ext/IO/t/io_dir.t>). If necessary run just the failing scripts +again sequentially and see if the failures go away. +(TBT) =head2 DTrace support @@ -433,6 +569,8 @@ =end original +Some support for DTrace has been added. See "DTrace support" in F<INSTALL>. +(TBT) =head2 Support for C<configure_requires> in CPAN module metadata @@ -447,6 +585,11 @@ =end original +Both C<CPAN> and C<CPANPLUS> now support the C<configure_requires> keyword +in the C<META.yml> metadata file included in most recent CPAN distributions. +This allows distribution authors to specify configuration prerequisites that +must be installed before running F<Makefile.PL> or F<Build.PL>. +(TBT) =begin original @@ -455,6 +598,9 @@ =end original +See the documentation for C<ExtUtils::MakeMaker> or C<Module::Build> for more +on how to specify C<configure_requires> when creating a distribution for CPAN. +(TBT) =head1 Modules and Pragmata @@ -477,6 +623,11 @@ =end original +This is a new lexically-scoped alternative for the C<Fatal> module. +The bundled version is 2.06_01. Note that in this release, using a string +eval when C<autodie> is in effect can cause the autodie behaviour to leak +into the surrounding scope. See L<autodie/"BUGS"> for more details. +(TBT) =item C<Compress::Raw::Bzip2> @@ -486,6 +637,8 @@ =end original +This has been added to the core (version 2.020). +(TBT) =item C<parent> @@ -496,6 +649,9 @@ =end original +This pragma establishes an ISA relationship with base classes at compile +time. It provides the key feature of C<base> without the feature creep. +(TBT) =item C<Parse::CPAN::Meta> @@ -505,6 +661,8 @@ =end original +This has been added to the core (version 1.39). +(TBT) =back @@ -522,6 +680,7 @@ =end original +0.08 から 0.09 に更新されました。 =item C<attrs> @@ -531,6 +690,7 @@ =end original +1.02 から 1.03 に更新されました。 =item C<base> @@ -540,6 +700,9 @@ =end original +2.13 から 2.14 に更新されました。 +See L<parent> for a replacement. +(TBT) =item C<bigint> @@ -549,6 +712,7 @@ =end original +0.22 から 0.23 に更新されました。 =item C<bignum> @@ -558,6 +722,7 @@ =end original +0.22 から 0.23 に更新されました。 =item C<bigrat> @@ -567,6 +732,7 @@ =end original +0.22 から 0.23 に更新されました。 =item C<charnames> @@ -576,6 +742,7 @@ =end original +1.06 から 1.07 に更新されました。 =begin original @@ -585,6 +752,10 @@ =end original +The Unicode F<NameAliases.txt> database file has been added. This has the +effect of adding some extra C<\N> character names that formerly wouldn't +have been recognised; for example, C<"\N{LATIN CAPITAL LETTER GHA}">. +(TBT) =item C<constant> @@ -594,6 +765,7 @@ =end original +1.13 から 1.17 に更新されました。 =item C<feature> @@ -608,6 +780,13 @@ =end original +The meaning of the C<:5.10> and C<:5.10.X> feature bundles has +changed slightly. The last component, if any (i.e. C<X>) is simply ignored. +This is predicated on the assumption that new features will not, in +general, be added to maintenance releases. So C<:5.10> and C<:5.10.X> +have identical effect. This is a change to the behaviour documented for +5.10.0. +(TBT) =item C<fields> @@ -618,6 +797,9 @@ =end original +2.13 から 2.14 に更新されました (this was just a version bump; there +were no functional changes). +(TBT) =item C<lib> @@ -627,6 +809,7 @@ =end original +0.5565 から 0.62 に更新されました。 =item C<open> @@ -636,6 +819,7 @@ =end original +1.06 から 1.07 に更新されました。 =item C<overload> @@ -645,6 +829,7 @@ =end original +1.06 から 1.07 に更新されました。 =item C<overloading> @@ -654,6 +839,8 @@ =end original +See L</"The C<overloading> pragma"> above. +(TBT) =item C<version> @@ -663,6 +850,7 @@ =end original +0.74 から 0.77 に更新されました。 =back @@ -680,6 +868,7 @@ =end original +0.24 から 0.34 に更新されました。 =item C<Archive::Tar> @@ -689,6 +878,7 @@ =end original +1.38 から 1.52 に更新されました。 =item C<Attribute::Handlers> @@ -698,6 +888,7 @@ =end original +0.79 から 0.85 に更新されました。 =item C<AutoLoader> @@ -707,6 +898,7 @@ =end original +5.63 から 5.68 に更新されました。 =item C<AutoSplit> @@ -716,6 +908,7 @@ =end original +1.05 から 1.06 に更新されました。 =item C<B> @@ -725,6 +918,7 @@ =end original +1.17 から 1.22 に更新されました。 =item C<B::Debug> @@ -734,6 +928,7 @@ =end original +1.05 から 1.11 に更新されました。 =item C<B::Deparse> @@ -743,6 +938,7 @@ =end original +0.83 から 0.89 に更新されました。 =item C<B::Lint> @@ -752,6 +948,7 @@ =end original +1.09 から 1.11 に更新されました。 =item C<B::Xref> @@ -761,6 +958,7 @@ =end original +1.01 から 1.02 に更新されました。 =item C<Benchmark> @@ -770,6 +968,7 @@ =end original +1.10 から 1.11 に更新されました。 =item C<Carp> @@ -779,6 +978,7 @@ =end original +1.08 から 1.11 に更新されました。 =item C<CGI> @@ -789,6 +989,9 @@ =end original +3.29 から 3.43 に更新されました。 +(also includes the "default_value for popup_menu()" fix from 3.45). +(TBT) =item C<Compress::Zlib> @@ -798,6 +1001,7 @@ =end original +2.008 から 2.020 に更新されました。 =item C<CPAN> @@ -808,6 +1012,10 @@ =end original +1.9205 から 1.9402 に更新されました。 +C<CPAN::FTP> has a local fix to +stop it being too verbose on download failure. +(TBT) =item C<CPANPLUS> @@ -817,6 +1025,7 @@ =end original +0.84 から 0.88 に更新されました。 =item C<CPANPLUS::Dist::Build> @@ -826,6 +1035,7 @@ =end original +0.06_02 から 0.36 に更新されました。 =item C<Cwd> @@ -835,6 +1045,7 @@ =end original +3.25_01 から 3.30 に更新されました。 =item C<Data::Dumper> @@ -844,6 +1055,7 @@ =end original +2.121_14 から 2.124 に更新されました。 =item C<DB> @@ -853,6 +1065,7 @@ =end original +1.01 から 1.02 に更新されました。 =item C<DB_File> @@ -862,6 +1075,7 @@ =end original +1.816_1 から 1.820 に更新されました。 =item C<Devel::PPPort> @@ -871,6 +1085,7 @@ =end original +3.13 から 3.19 に更新されました。 =item C<Digest::MD5> @@ -880,6 +1095,7 @@ =end original +2.36_01 から 2.39 に更新されました。 =item C<Digest::SHA> @@ -889,6 +1105,7 @@ =end original +5.45 から 5.47 に更新されました。 =item C<DirHandle> @@ -898,6 +1115,7 @@ =end original +1.01 から 1.03 に更新されました。 =item C<Dumpvalue> @@ -907,6 +1125,7 @@ =end original +1.12 から 1.13 に更新されました。 =item C<DynaLoader> @@ -916,6 +1135,7 @@ =end original +1.08 から 1.10 に更新されました。 =item C<Encode> @@ -925,6 +1145,7 @@ =end original +2.23 から 2.35 に更新されました。 =item C<Errno> @@ -934,6 +1155,7 @@ =end original +1.10 から 1.11 に更新されました。 =item C<Exporter> @@ -943,6 +1165,7 @@ =end original +5.62 から 5.63 に更新されました。 =item C<ExtUtils::CBuilder> @@ -952,6 +1175,7 @@ =end original +0.21 から 0.2602 に更新されました。 =item C<ExtUtils::Command> @@ -961,6 +1185,7 @@ =end original +1.13 から 1.16 に更新されました。 =item C<ExtUtils::Constant> @@ -971,6 +1196,10 @@ =end original +0.20 から 0.22 に更新されました。 +(Note that neither of these versions are +available on CPAN.) +(TBT) =item C<ExtUtils::Embed> @@ -980,6 +1209,7 @@ =end original +1.27 から 1.28 に更新されました。 =item C<ExtUtils::Install> @@ -989,6 +1219,7 @@ =end original +1.44 から 1.54 に更新されました。 =item C<ExtUtils::MakeMaker> @@ -998,6 +1229,7 @@ =end original +6.42 から 6.55_02 に更新されました。 =begin original @@ -1006,6 +1238,9 @@ =end original +Note that C<ExtUtils::MakeMaker::bytes> and C<ExtUtils::MakeMaker::vmsish> +have been removed from this distribution. +(TBT) =item C<ExtUtils::Manifest> @@ -1015,6 +1250,7 @@ =end original +1.51_01 から 1.56 に更新されました。 =item C<ExtUtils::ParseXS> @@ -1024,6 +1260,7 @@ =end original +2.18_02 から 2.2002 に更新されました。 =item C<Fatal> @@ -1033,6 +1270,9 @@ =end original +1.05 から 2.06_01 に更新されました。 +See also the new pragma C<autodie>. +(TBT) =item C<File::Basename> @@ -1042,6 +1282,7 @@ =end original +2.76 から 2.77 に更新されました。 =item C<File::Compare> @@ -1051,6 +1292,7 @@ =end original +1.1005 から 1.1006 に更新されました。 =item C<File::Copy> @@ -1060,6 +1302,7 @@ =end original +2.11 から 2.14 に更新されました。 =item C<File::Fetch> @@ -1069,6 +1312,7 @@ =end original +0.14 から 0.20 に更新されました。 =item C<File::Find> @@ -1078,6 +1322,7 @@ =end original +1.12 から 1.14 に更新されました。 =item C<File::Path> @@ -1087,6 +1332,7 @@ =end original +2.04 から 2.07_03 に更新されました。 =item C<File::Spec> @@ -1096,6 +1342,7 @@ =end original +3.2501 から 3.30 に更新されました。 =item C<File::stat> @@ -1105,6 +1352,7 @@ =end original +1.00 から 1.01 に更新されました。 =item C<File::Temp> @@ -1114,6 +1362,7 @@ =end original +0.18 から 0.22 に更新されました。 =item C<FileCache> @@ -1123,6 +1372,7 @@ =end original +1.07 から 1.08 に更新されました。 =item C<FileHandle> @@ -1132,6 +1382,7 @@ =end original +2.01 から 2.02 に更新されました。 =item C<Filter::Simple> @@ -1141,6 +1392,7 @@ =end original +0.82 から 0.84 に更新されました。 =item C<Filter::Util::Call> @@ -1150,6 +1402,7 @@ =end original +1.07 から 1.08 に更新されました。 =item C<FindBin> @@ -1159,6 +1412,7 @@ =end original +1.49 から 1.50 に更新されました。 =item C<GDBM_File> @@ -1168,6 +1422,7 @@ =end original +1.08 から 1.09 に更新されました。 =item C<Getopt::Long> @@ -1177,6 +1432,7 @@ =end original +2.37 から 2.38 に更新されました。 =item C<Hash::Util::FieldHash> @@ -1186,6 +1442,8 @@ =end original +1.03 から 1.04 に更新されました。 +これはメモリリークを修正しています。 =item C<I18N::Collate> @@ -1195,6 +1453,7 @@ =end original +1.00 から 1.01 に更新されました。 =item C<IO> @@ -1204,6 +1463,7 @@ =end original +1.23_01 から 1.25 に更新されました。 =begin original @@ -1212,6 +1472,9 @@ =end original +This makes non-blocking mode work on Windows in C<IO::Socket::INET> +[CPAN #43573]. +(TBT) =item C<IO::Compress::*> @@ -1221,6 +1484,7 @@ =end original +2.008 から 2.020 に更新されました。 =item C<IO::Dir> @@ -1230,6 +1494,7 @@ =end original +1.06 から 1.07 に更新されました。 =item C<IO::Handle> @@ -1239,6 +1504,7 @@ =end original +1.27 から 1.28 に更新されました。 =item C<IO::Socket> @@ -1248,6 +1514,7 @@ =end original +1.30_01 から 1.31 に更新されました。 =item C<IO::Zlib> @@ -1257,6 +1524,7 @@ =end original +1.07 から 1.09 に更新されました。 =item C<IPC::Cmd> @@ -1266,6 +1534,7 @@ =end original +0.40_1 から 0.46 に更新されました。 =item C<IPC::Open3> @@ -1275,6 +1544,7 @@ =end original +1.02 から 1.04 に更新されました。 =item C<IPC::SysV> @@ -1284,6 +1554,7 @@ =end original +1.05 から 2.01 に更新されました。 =item C<lib> @@ -1293,6 +1564,7 @@ =end original +0.5565 から 0.62 に更新されました。 =item C<List::Util> @@ -1302,6 +1574,7 @@ =end original +1.19 から 1.21 に更新されました。 =item C<Locale::MakeText> @@ -1311,6 +1584,7 @@ =end original +1.12 から 1.13 に更新されました。 =item C<Log::Message> @@ -1320,6 +1594,7 @@ =end original +0.01 から 0.02 に更新されました。 =item C<Math::BigFloat> @@ -1329,6 +1604,7 @@ =end original +1.59 から 1.60 に更新されました。 =item C<Math::BigInt> @@ -1338,6 +1614,7 @@ =end original +1.88 から 1.89 に更新されました。 =item C<Math::BigInt::FastCalc> @@ -1347,6 +1624,7 @@ =end original +0.16 から 0.19 に更新されました。 =item C<Math::BigRat> @@ -1356,6 +1634,7 @@ =end original +0.21 から 0.22 に更新されました。 =item C<Math::Complex> @@ -1365,6 +1644,7 @@ =end original +1.37 から 1.56 に更新されました。 =item C<Math::Trig> @@ -1374,6 +1654,7 @@ =end original +1.04 から 1.20 に更新されました。 =item C<Memoize> @@ -1384,6 +1665,9 @@ =end original +1.01_02 から 1.01_03 に更新されました +(just a minor documentation change). +(TBT) =item C<Module::Build> @@ -1393,6 +1677,7 @@ =end original +0.2808_01 から 0.34_02 に更新されました。 =item C<Module::CoreList> @@ -1403,6 +1688,10 @@ =end original +2.13 から 2.18 に更新されました。 +This release no longer contains the +C<%Module::CoreList::patchlevel> hash. +(TBT) =item C<Module::Load> @@ -1412,6 +1701,7 @@ =end original +0.12 から 0.16 に更新されました。 =item C<Module::Load::Conditional> @@ -1421,6 +1711,7 @@ =end original +0.22 から 0.30 に更新されました。 =item C<Module::Loaded> @@ -1430,6 +1721,7 @@ =end original +0.01 から 0.02 に更新されました。 =item C<Module::Pluggable> @@ -1439,6 +1731,7 @@ =end original +3.6 から 3.9 に更新されました。 =item C<NDBM_File> @@ -1448,6 +1741,7 @@ =end original +1.07 から 1.08 に更新されました。 =item C<Net::Ping> @@ -1457,6 +1751,7 @@ =end original +2.33 から 2.36 に更新されました。 =item C<NEXT> @@ -1466,6 +1761,7 @@ =end original +0.60_01 から 0.64 に更新されました。 =item C<Object::Accessor> @@ -1475,6 +1771,7 @@ =end original +0.32 から 0.34 に更新されました。 =item C<OS2::REXX> @@ -1484,6 +1781,7 @@ =end original +1.03 から 1.04 に更新されました。 =item C<Package::Constants> @@ -1493,6 +1791,7 @@ =end original +0.01 から 0.02 に更新されました。 =item C<PerlIO> @@ -1502,6 +1801,7 @@ =end original +1.04 から 1.06 に更新されました。 =item C<PerlIO::via> @@ -1511,6 +1811,7 @@ =end original +0.04 から 0.07 に更新されました。 =item C<Pod::Man> @@ -1520,6 +1821,7 @@ =end original +2.16 から 2.22 に更新されました。 =item C<Pod::Parser> @@ -1529,6 +1831,7 @@ =end original +1.35 から 1.37 に更新されました。 =item C<Pod::Simple> @@ -1538,6 +1841,7 @@ =end original +3.05 から 3.07 に更新されました。 =item C<Pod::Text> @@ -1547,6 +1851,7 @@ =end original +3.08 から 3.13 に更新されました。 =item C<POSIX> @@ -1556,6 +1861,7 @@ =end original +1.13 から 1.17 に更新されました。 =item C<Safe> @@ -1565,6 +1871,7 @@ =end original +2.12 から 2.18 に更新されました。 =item C<Scalar::Util> @@ -1574,6 +1881,7 @@ =end original +1.19 から 1.21 に更新されました。 =item C<SelectSaver> @@ -1583,6 +1891,7 @@ =end original +1.01 から 1.02 に更新されました。 =item C<SelfLoader> @@ -1592,6 +1901,7 @@ =end original +1.11 から 1.17 に更新されました。 =item C<Socket> @@ -1601,6 +1911,7 @@ =end original +1.80 から 1.82 に更新されました。 =item C<Storable> @@ -1610,6 +1921,7 @@ =end original +2.18 から 2.20 に更新されました。 =item C<Switch> @@ -1619,6 +1931,8 @@ =end original +2.13 から 2.14 に更新されました。 +L</Deprecations> を参照してください。 =item C<Symbol> @@ -1628,6 +1942,7 @@ =end original +1.06 から 1.07 に更新されました。 =item C<Sys::Syslog> @@ -1637,6 +1952,7 @@ =end original +0.22 から 0.27 に更新されました。 =item C<Term::ANSIColor> @@ -1646,6 +1962,7 @@ =end original +1.12 から 2.00 に更新されました。 =item C<Term::ReadLine> @@ -1655,6 +1972,7 @@ =end original +1.03 から 1.04 に更新されました。 =item C<Term::UI> @@ -1664,6 +1982,7 @@ =end original +0.18 から 0.20 に更新されました。 =item C<Test::Harness> @@ -1673,6 +1992,7 @@ =end original +2.64 から 3.17 に更新されました。 =begin original @@ -1684,6 +2004,12 @@ =end original +Note that one side-effect of the 2.x to 3.x upgrade is that the +experimental C<Test::Harness::Straps> module (and its supporting +C<Assert>, C<Iterator>, C<Point> and C<Results> modules) have been +removed. If you still need this, then they are available in the +(unmaintained) C<Test-Harness-Straps> distribution on CPAN. +(TBT) =item C<Test::Simple> @@ -1693,6 +2019,7 @@ =end original +0.72 から 0.92 に更新されました。 =item C<Text::ParseWords> @@ -1702,6 +2029,7 @@ =end original +3.26 から 3.27 に更新されました。 =item C<Text::Tabs> @@ -1711,6 +2039,7 @@ =end original +2007.1117 から 2009.0305 に更新されました。 =item C<Text::Wrap> @@ -1720,6 +2049,7 @@ =end original +2006.1117 から 2009.0305 に更新されました。 =item C<Thread::Queue> @@ -1729,6 +2059,7 @@ =end original +2.00 から 2.11 に更新されました。 =item C<Thread::Semaphore> @@ -1738,6 +2069,7 @@ =end original +2.01 から 2.09 に更新されました。 =item C<threads> @@ -1747,6 +2079,7 @@ =end original +1.67 から 1.72 に更新されました。 =item C<threads::shared> @@ -1756,6 +2089,7 @@ =end original +1.14 から 1.29 に更新されました。 =item C<Tie::RefHash> @@ -1765,6 +2099,7 @@ =end original +1.37 から 1.38 に更新されました。 =item C<Tie::StdHandle> @@ -1775,6 +2110,9 @@ =end original +This has documentation changes, and has been assigned a version for the +first time: version 4.2. +(TBT) =item C<Time::HiRes> @@ -1784,6 +2122,7 @@ =end original +1.9711 から 1.9719 に更新されました。 =item C<Time::Local> @@ -1793,6 +2132,7 @@ =end original +1.18 から 1.1901 に更新されました。 =item C<Time::Piece> @@ -1802,6 +2142,7 @@ =end original +1.12 から 1.15 に更新されました。 =item C<Unicode::Normalize> @@ -1811,6 +2152,7 @@ =end original +1.02 から 1.03 に更新されました。 =item C<Unicode::UCD> @@ -1820,6 +2162,7 @@ =end original +0.25 から 0.27 に更新されました。 =begin original @@ -1828,6 +2171,9 @@ =end original +C<charinfo()> now works on Unified CJK code points added to later versions +of Unicode. +(TBT) =begin original @@ -1838,6 +2184,11 @@ =end original +C<casefold()> has new fields returned to provide both a simpler interface +and previously missing information. The old fields are retained for +backwards compatibility. Information about Turkic-specific code points is +now returned. +(TBT) =begin original @@ -1845,6 +2196,8 @@ =end original +The documentation has been corrected and expanded. +(TBT) =item C<UNIVERSAL> @@ -1854,6 +2207,7 @@ =end original +1.04 から 1.05 に更新されました。 =item C<Win32> @@ -1863,6 +2217,7 @@ =end original +0.34 から 0.39 に更新されました。 =item C<Win32API::File> @@ -1872,6 +2227,7 @@ =end original +0.1001_01 から 0.1101 に更新されました。 =item C<XSLoader> @@ -1881,6 +2237,7 @@ =end original +0.08 から 0.10 に更新されました。 =back @@ -1899,6 +2256,9 @@ =end original +Now looks in C<include-fixed> too, which is a recent addition to gcc's +search path. +(TBT) =item F<h2xs> @@ -1908,6 +2268,8 @@ =end original +No longer incorrectly treats enum values like macros (Daniel Burr). +(TBT) =begin original @@ -1916,6 +2278,9 @@ =end original +Now handles C++ style constants (C<//>) properly in enums. (A patch from +Rainer Weikusat was used; Daniel Burr also proposed a similar fix). +(TBT) =item F<perl5db.pl> @@ -1925,6 +2290,8 @@ =end original +C<LVALUE> subroutines now work under the debugger. +(TBT) =begin original @@ -1933,6 +2300,9 @@ =end original +The debugger now correctly handles proxy constant subroutines, and +subroutine stubs. +(TBT) =item F<perlthanks> @@ -1945,6 +2315,11 @@ =end original +Perl 5.10.1 adds a new utility F<perlthanks>, which is a variant of +F<perlbug>, but for sending non-bug-reports to the authors and maintainers +of Perl. Getting nothing but bug reports can become a bit demoralising: +we'll see if this changes things. +(TBT) =back @@ -1962,6 +2337,8 @@ =end original +This contains instructions on how to build perl for the Haiku platform. +(TBT) =item L<perlmroapi> @@ -1971,6 +2348,8 @@ =end original +This describes the new interface for pluggable Method Resolution Orders. +(TBT) =item L<perlperf> @@ -1982,6 +2361,10 @@ =end original +This document, by Richard Foley, provides an introduction to the use of +performance and optimization techniques which can be used with particular +reference to perl programs. +(TBT) =item L<perlrepository> @@ -1992,6 +2375,9 @@ =end original +This describes how to access the perl source using the I<git> version +control system. +(TBT) =item L<perlthanks> @@ -2001,6 +2387,8 @@ =end original +This describes the new F<perlthanks> utility. +(TBT) =back @@ -2017,6 +2405,11 @@ =end original +The various large C<Changes*> files (which listed every change made to perl +over the last 18 years) have been removed, and replaced by a small file, +also called C<Changes>, which just explains how that same information may +be extracted from the git version control system. +(TBT) =begin original @@ -2026,6 +2419,10 @@ =end original +The file F<Porting/patching.pod> has been deleted, as it mainly described +interacting with the old Perforce-based repository, which is now obsolete. +Information still relevant has been moved to L<perlrepository>. +(TBT) =begin original @@ -2034,6 +2431,9 @@ =end original +L<perlapi>, L<perlintern>, L<perlmodlib> and L<perltoc> are now all +generated at build time, rather than being shipped as part of the release. +(TBT) =head1 Performance Enhancements @@ -2049,6 +2449,8 @@ =end original +A new internal cache means that C<isa()> will often be faster. +(TBT) =item * @@ -2061,6 +2463,11 @@ =end original +Under C<use locale>, the locale-relevant information is now cached on +read-only values, such as the list returned by C<keys %hash>. This makes +operations such as C<sort keys %hash> in the scope of C<use locale> much +faster. +(TBT) =item * @@ -2070,6 +2477,8 @@ =end original +Empty C<DESTROY> methods are no longer called. +(TBT) =back @@ -2097,6 +2506,18 @@ =end original +The layout of directories in F<ext> has been revised. Specifically, all +extensions are now flat, and at the top level, with C</> in pathnames +replaced by C<->, so that F<ext/Data/Dumper/> is now F<ext/Data-Dumper/>, +etc. The names of the extensions as specified to F<Configure>, and as +reported by C<%Config::Config> under the keys C<dynamic_ext>, +C<known_extensions>, C<nonxs_ext> and C<static_ext> have not changed, and +still use C</>. Hence this change will not have any affect once perl is +installed. However, C<Attribute::Handlers>, C<Safe> and C<mro> have now +become extensions in their own right, so if you run F<Configure> with +options to specify an exact list of extensions to build, you will need to +change it to account for this. +(TBT) =begin original @@ -2107,6 +2528,11 @@ =end original +For 5.10.2, it is planned that many dual-life modules will have been moved +from F<lib> to F<ext>; again this will have no effect on an installed +perl, but will matter if you invoke F<Configure> with a pre-canned list of +extensions to build. +(TBT) =head2 Configuration improvements @@ -2119,6 +2545,9 @@ =end original +If C<vendorlib> and C<vendorarch> are the same, then they are only added to +C<@INC> once. +(TBT) =begin original @@ -2127,6 +2556,9 @@ =end original +C<$Config{usedevel}> and the C-level C<PERL_USE_DEVEL> are now defined if +perl is built with C<-Dusedevel>. +(TBT) =begin original @@ -2135,6 +2567,9 @@ =end original +F<Configure> will enable use of C<-fstack-protector>, to provide protection +against stack-smashing attacks, if the compiler supports it. +(TBT) =begin original @@ -2144,6 +2579,10 @@ =end original +F<Configure> will now determine the correct prototypes for re-entrant +functions, and for C<gconvert>, if you are using a C++ compiler rather +than a C compiler. +(TBT) =begin original @@ -2155,6 +2594,12 @@ =end original +On Unix, if you build from a tree containing a git repository, the +configuration process will note the commit hash you have checked out, for +display in the output of C<perl -v> and C<perl -V>. Unpushed local commits +are automatically added to the list of local patches displayed by +C<perl -V>. +(TBT) =head2 Compilation improvements @@ -2169,6 +2614,11 @@ =end original +As part of the flattening of F<ext>, all extensions on all platforms are +built by F<make_ext.pl>. This replaces the Unix-specific +F<ext/util/make_ext>, VMS-specific F<make_ext.com> and Win32-specific +F<win32/buildext.pl>. +(TBT) =head2 Platform Specific Changes @@ -2184,6 +2634,8 @@ =end original +Removed F<libbsd> for AIX 5L and 6.1. Only flock() was used from F<libbsd>. +(TBT) =begin original @@ -2193,6 +2645,10 @@ =end original +Removed F<libgdbm> for AIX 5L and 6.1. The F<libgdbm> is delivered as an +optional package with the AIX Toolbox. Unfortunately the 64 bit version +is broken. +(TBT) =begin original @@ -2200,6 +2656,8 @@ =end original +Hints changes mean that AIX 4.2 should work again. +(TBT) =item Cygwin @@ -2211,6 +2669,10 @@ =end original +On Cygwin we now strip the last number from the DLL. This has been the +behaviour in the cygwin.com build for years. The hints files have been +updated. +(TBT) =item FreeBSD @@ -2221,6 +2683,9 @@ =end original +The hints files now identify the correct threading libraries on FreeBSD 7 +and later. +(TBT) =item Irix @@ -2231,6 +2696,9 @@ =end original +We now work around a bizarre preprocessor bug in the Irix 6.5 compiler: +C<cc -E -> unfortunately goes into K&R mode, but C<cc -E file.c> doesn't. +(TBT) =item Haiku @@ -2241,6 +2709,9 @@ =end original +Patches from the Haiku maintainers have been merged in. Perl should now +build on Haiku. +(TBT) =item MirOS BSD @@ -2250,6 +2721,8 @@ =end original +Perl should now build on MirOS BSD. +(TBT) =item NetBSD @@ -2259,6 +2732,8 @@ =end original +Hints now supports versions 5.*. +(TBT) =item Stratus VOS @@ -2268,6 +2743,8 @@ =end original +Various changes from Stratus have been merged in. +(TBT) =item Symbian @@ -2277,6 +2754,8 @@ =end original +There is now support for Symbian S60 3.2 SDK and S60 5.0 SDK. +(TBT) =item Win32 @@ -2287,6 +2766,9 @@ =end original +Improved message window handling means that C<alarm> and C<kill> messages +will no longer be dropped under race conditions. +(TBT) =item VMS @@ -2298,6 +2780,10 @@ =end original +Reads from the in-memory temporary files of C<PerlIO::scalar> used to fail +if C<$/> was set to a numeric reference (to indicate record-style reads). +This is now fixed. +(TBT) =begin original @@ -2305,6 +2791,8 @@ =end original +VMS now supports C<getgrgid>. +(TBT) =begin original @@ -2313,6 +2801,9 @@ =end original +Many improvements and cleanups have been made to the VMS file name handling +and conversion code. +(TBT) =begin original @@ -2323,6 +2814,11 @@ =end original +Enabling the C<PERL_VMS_POSIX_EXIT> logical name now encodes a POSIX exit +status in a VMS condition value for better interaction with GNV's bash +shell and other utilities that depend on POSIX exit values. See +L<perlvms/"$?"> for details. +(TBT) =back @@ -2343,6 +2839,11 @@ =end original +5.10.0 inadvertently disabled an optimisation, which caused a measurable +performance drop in list assignment, such as is often used to assign +function parameters from C<@_>. The optimisation has been re-instated, and +the performance regression fixed. +(TBT) =item * @@ -2352,6 +2853,8 @@ =end original +Fixed memory leak on C<while (1) { map 1, 1 }> [RT #53038]. +(TBT) =item * @@ -2361,6 +2864,8 @@ =end original +Some potential coredumps in PerlIO fixed [RT #57322,54828]. +(TBT) =item * @@ -2370,6 +2875,8 @@ =end original +The debugger now works with lvalue subroutines. +(TBT) =item * @@ -2380,6 +2887,9 @@ =end original +The debugger's C<m> command was broken on modules that defined constants +[RT #61222]. +(TBT) =item * @@ -2390,6 +2900,9 @@ =end original +C<crypt()> and string complement could return tainted values for untainted +arguments [RT #59998]. +(TBT) =item * @@ -2401,6 +2914,10 @@ =end original +The C<-i.suffix> command-line switch now recreates the file using +restricted permissions, before changing its mode to match the original +file. This eliminates a potential race condition [RT #60904]. +(TBT) =item * @@ -2411,6 +2928,9 @@ =end original +On some UNIX systems, the value in C<$?> would not have the top bit set +(C<$? & 128>) even if the child core dumped. +(TBT) =item * @@ -2421,6 +2941,9 @@ =end original +Under some circumstances, $^R could incorrectly become undefined +[RT #57042]. +(TBT) =item * @@ -2431,6 +2954,9 @@ =end original +(XS) In various hash functions, passing a pre-computed hash to when the +key is UTF-8 might result in an incorrect lookup. +(TBT) =item * @@ -2441,6 +2967,9 @@ =end original +(XS) Including F<XSUB.h> before F<perl.h> gave a compile-time error +[RT #57176]. +(TBT) =item * @@ -2451,6 +2980,9 @@ =end original +C<< $object->isa('Foo') >> would report false if the package C<Foo> didn't +exist, even if the object's C<@ISA> contained C<Foo>. +(TBT) =item * @@ -2461,6 +2993,9 @@ =end original +Various bugs in the new-to 5.10.0 mro code, triggered by manipulating +C<@ISA>, have been found and fixed. +(TBT) =item * @@ -2471,6 +3006,9 @@ =end original +Bitwise operations on references could crash the interpreter, e.g. +C<$x=\$y; $x |= "foo"> [RT #54956]. +(TBT) =item * @@ -2481,6 +3019,9 @@ =end original +Patterns including alternation might be sensitive to the internal UTF-8 +representation, e.g. +(TBT) my $byte = chr(192); my $utf8 = chr(192); utf8::upgrade($utf8); @@ -2497,6 +3038,11 @@ =end original +Within UTF8-encoded Perl source files (i.e. where C<use utf8> is in +effect), double-quoted literal strings could be corrupted where a C<\xNN>, +C<\0NNN> or C<\N{}> is followed by a literal character with ordinal value +greater than 255 [RT #59908]. +(TBT) =item * @@ -2508,6 +3054,10 @@ =end original +C<B::Deparse> failed to correctly deparse various constructs: +C<readpipe STRING> [RT #62428], C<CORE::require(STRING)> [RT #62488], +C<sub foo(_)> [RT #62484]. +(TBT) =item * @@ -2517,6 +3067,8 @@ =end original +Using C<setpgrp()> with no arguments could corrupt the perl stack. +(TBT) =item * @@ -2527,6 +3079,9 @@ =end original +The block form of C<eval> is now specifically trappable by C<Safe> and +C<ops>. Previously it was erroneously treated like string C<eval>. +(TBT) =item * @@ -2537,6 +3092,9 @@ =end original +In 5.10.0, the two characters C<[~> were sometimes parsed as the smart +match operator (C<~~>) [RT #63854]. +(TBT) =item * @@ -2547,6 +3105,9 @@ =end original +In 5.10.0, the C<*> quantifier in patterns was sometimes treated as +C<{0,32767}> [RT #60034, #60464]. For example, this match would fail: +(TBT) ("ab" x 32768) =~ /^(ab)*$/ @@ -2558,6 +3119,8 @@ =end original +C<shmget> was limited to a 32 bit segment size on a 64 bit OS [RT #63924]. +(TBT) =item * @@ -2568,6 +3131,9 @@ =end original +Using C<next> or C<last> to exit a C<given> block no longer produces a +spurious warning like the following: +(TBT) Exiting given via last****@foo***** line 123 @@ -2580,6 +3146,9 @@ =end original +On Windows, C<'.\foo'> and C<'..\foo'> were treated differently than +C<'./foo'> and C<'../foo'> by C<do> and C<require> [RT #63492]. +(TBT) =item * @@ -2589,6 +3158,8 @@ =end original +Assigning a format to a glob could corrupt the format; e.g.: +(TBT) *bar=*foo{FORMAT}; # foo format now bad @@ -2602,6 +3173,10 @@ =end original +Attempting to coerce a typeglob to a string or number could cause an +assertion failure. The correct error message is now generated, +C<Can't coerce GLOB to I<$type>>. +(TBT) =item * @@ -2612,6 +3187,9 @@ =end original +Under C<use filetest 'access'>, C<-x> was using the wrong access mode. This +has been fixed [RT #49003]. +(TBT) =item * @@ -2622,6 +3200,9 @@ =end original +C<length> on a tied scalar that returned a Unicode value would not be +correct the first time. This has been fixed. +(TBT) =item * @@ -2632,6 +3213,9 @@ =end original +Using an array C<tie> inside in array C<tie> could SEGV. This has been +fixed. [RT #51636] +(TBT) =item * @@ -2642,6 +3226,9 @@ =end original +A race condition inside C<PerlIOStdio_close()> has been identified and +fixed. This used to cause various threading issues, including SEGVs. +(TBT) =item * @@ -2653,6 +3240,10 @@ =end original +In C<unpack>, the use of C<()> groups in scalar context was internally +placing a list on the interpreter's stack, which manifested in various +ways, including SEGVs. This is now fixed [RT #50256]. +(TBT) =item * @@ -2663,6 +3254,9 @@ =end original +Magic was called twice in C<substr>, C<\&$x>, C<tie $x, $m> and C<chop>. +These have all been fixed. +(TBT) =item * @@ -2675,6 +3269,11 @@ =end original +A 5.10.0 optimisation to clear the temporary stack within the implicit +loop of C<s///ge> has been reverted, as it turned out to be the cause of +obscure bugs in seemingly unrelated parts of the interpreter [commit +ef0d4e17921ee3de]. +(TBT) =item * @@ -2684,6 +3283,8 @@ =end original +The line numbers for warnings inside C<elsif> are now correct. +(TBT) =item * @@ -2694,6 +3295,9 @@ =end original +The C<..> operator now works correctly with ranges whose ends are at or +close to the values of the smallest and largest integers. +(TBT) =item * @@ -2704,6 +3308,9 @@ =end original +C<binmode STDIN, ':raw'> could lead to segmentation faults on some platforms. +This has been fixed [RT #54828]. +(TBT) =item * @@ -2714,6 +3321,9 @@ =end original +An off-by-one error meant that C<index $str, ...> was effectively being +executed as C<index "$str\0", ...>. This has been fixed [RT #53746]. +(TBT) =item * @@ -2724,6 +3334,9 @@ =end original +Various leaks associated with named captures in regexes have been fixed +[RT #57024]. +(TBT) =item * @@ -2734,6 +3347,9 @@ =end original +A weak reference to a hash would leak. This was affecting C<DBI> +[RT #56908]. +(TBT) =item * @@ -2743,6 +3359,8 @@ =end original +Using (?|) in a regex could cause a segfault [RT #59734]. +(TBT) =item * @@ -2752,6 +3370,8 @@ =end original +Use of a UTF-8 C<tr//> within a closure could cause a segfault [RT #61520]. +(TBT) =item * @@ -2762,6 +3382,9 @@ =end original +Calling C<sv_chop()> or otherwise upgrading an SV could result in an +unaligned 64-bit access on the SPARC architecture [RT #60574]. +(TBT) =item * @@ -2773,6 +3396,10 @@ =end original +In the 5.10.0 release, C<inc_version_list> would incorrectly list +C<5.10.*> after C<5.8.*>; this affected the C<@INC> search order +[RT #67628]. +(TBT) =item * @@ -2783,6 +3410,9 @@ =end original +In 5.10.0, C<pack "a*", $tainted_value> returned a non-tainted value +[RT #52552]. +(TBT) =item * @@ -2794,6 +3424,10 @@ =end original +In 5.10.0, C<printf> and C<sprintf> could produce the fatal error +C<panic: utf8_mg_pos_cache_update> when printing UTF-8 strings +[RT #62666]. +(TBT) =item * @@ -2804,6 +3438,9 @@ =end original +In the 5.10.0 release, a dynamically created C<AUTOLOAD> method might be +missed (method cache issue) [RT #60220,60232]. +(TBT) =item * @@ -2814,6 +3451,9 @@ =end original +In the 5.10.0 release, a combination of C<use feature> and C<//ee> could +cause a memory leak [RT #63110]. +(TBT) =item * @@ -2827,6 +3467,12 @@ =end original +C<-C> on the shebang (C<#!>) line is once more permitted if it is also +specified on the command line. C<-C> on the shebang line used to be a +silent no-op I<if> it was not also on the command line, so perl 5.10.0 +disallowed it, which broke some scripts. Now perl checks whether it is +also on the command line and only dies if it is not [RT #67880]. +(TBT) =item * @@ -2837,6 +3483,9 @@ =end original +In 5.10.0, certain types of re-entrant regular expression could crash, +or cause the following assertion failure [RT #60508]: +(TBT) Assertion rx->sublen >= (s - rx->subbeg) + i failed @@ -2860,6 +3509,11 @@ =end original +This new fatal error occurs when the C routine C<Perl_sv_chop()> was +passed a position that is not within the scalar's string buffer. This +could be caused by buggy XS code, and at this point recovery is not +possible. +(TBT) =item C<Can't locate package %s for the parents of %s> @@ -2871,6 +3525,10 @@ =end original +This warning has been removed. In general, it only got produced in +conjunction with other warnings, and removing it allowed an ISA lookup +optimisation to be added. +(TBT) =item C<v-string in use/require is non-portable> @@ -2880,6 +3538,8 @@ =end original +This warning has been removed. +(TBT) =item C<Deep recursion on subroutine "%s"> @@ -2891,6 +3551,10 @@ =end original +It is now possible to change the depth threshold for this warning from the +default of 100, by recompiling the F<perl> binary, setting the C +pre-processor macro C<PERL_SUB_DEPTH_WARN> to the desired value. +(TBT) =back @@ -2909,6 +3573,9 @@ =end original +The J.R.R. Tolkien quotes at the head of C source file have been checked and +proper citations added, thanks to a patch from Tom Christiansen. +(TBT) =item * @@ -2920,6 +3587,10 @@ =end original +C<vcroak()> now accepts a null first argument. In addition, a full audit +was made of the "not NULL" compiler annotations, and those for several +other internal functions were corrected. +(TBT) =item * @@ -2931,6 +3602,10 @@ =end original +New macros C<dSAVEDERRNO>, C<dSAVE_ERRNO>, C<SAVE_ERRNO>, C<RESTORE_ERRNO> +have been added to formalise the temporary saving of the C<errno> +variable. +(TBT) =item * @@ -2941,6 +3616,9 @@ =end original +The function C<Perl_sv_insert_flags> has been added to augment +C<Perl_sv_insert>. +(TBT) =item * @@ -2951,6 +3629,9 @@ =end original +The function C<Perl_newSV_type(type)> has been added, equivalent to +C<Perl_newSV()> followed by C<Perl_sv_upgrade(type)>. +(TBT) =item * @@ -2961,6 +3642,9 @@ =end original +The function C<Perl_newSVpvn_flags()> has been added, equivalent to +C<Perl_newSVpvn()> and then performing the action relevant to the flag. +(TBT) =begin original @@ -2968,6 +3652,8 @@ =end original +Two flag bits are currently supported. +(TBT) =over 4 @@ -2981,6 +3667,10 @@ =end original +This will call C<SvUTF8_on()> for you. (Note that this does not convert an +sequence of ISO 8859-1 characters to UTF-8). A wrapper, C<newSVpvn_utf8()> +is available for this. +(TBT) =item C<SVs_TEMP> @@ -2990,6 +3680,8 @@ =end original +Call C<sv_2mortal()> on the new SV. +(TBT) =back @@ -2999,6 +3691,8 @@ =end original +There is also a wrapper that takes constant strings, C<newSVpvs_flags()>. +(TBT) =item * @@ -3009,6 +3703,9 @@ =end original +The function C<Perl_croak_xs_usage> has been added as a wrapper to +C<Perl_croak>. +(TBT) =item * @@ -3019,6 +3716,9 @@ =end original +The functions C<PerlIO_find_layer> and C<PerlIO_list_alloc> are now +exported. +(TBT) =item * @@ -3031,6 +3731,11 @@ =end original +C<PL_na> has been exterminated from the core code, replaced by local STRLEN +temporaries, or C<*_nolen()> calls. Either approach is faster than C<PL_na>, +which is a pointer deference into the interpreter structure under ithreads, +and a global variable otherwise. +(TBT) =item * @@ -3042,6 +3747,10 @@ =end original +C<Perl_mg_free()> used to leave freed memory accessible via SvMAGIC() on +the scalar. It now updates the linked list to remove each piece of magic +as it is freed. +(TBT) =item * @@ -3053,6 +3762,10 @@ =end original +Under ithreads, the regex in C<PL_reg_curpm> is now reference counted. This +eliminates a lot of hackish workarounds to cope with it not being reference +counted. +(TBT) =item * @@ -3063,6 +3776,9 @@ =end original +C<Perl_mg_magical()> would sometimes incorrectly turn on C<SvRMAGICAL()>. +This has been fixed. +(TBT) =item * @@ -3074,6 +3790,10 @@ =end original +The I<public> IV and NV flags are now not set if the string value has +trailing "garbage". This behaviour is consistent with not setting the +public IV or NV flags if the value is out of range for the type. +(TBT) =item * @@ -3085,6 +3805,10 @@ =end original +SV allocation tracing has been added to the diagnostics enabled by C<-Dm>. +The tracing can alternatively output via the C<PERL_MEM_LOG> mechanism, if +that was enabled when the F<perl> binary was compiled. +(TBT) =item * @@ -3096,6 +3820,10 @@ =end original +Uses of C<Nullav>, C<Nullcv>, C<Nullhv>, C<Nullop>, C<Nullsv> etc have been +replaced by C<NULL> in the core code, and non-dual-life modules, as C<NULL> +is clearer to those unfamiliar with the core code. +(TBT) =item * @@ -3110,6 +3838,13 @@ =end original +A macro C<MUTABLE_PTR(p)> has been added, which on (non-pedantic) gcc will +not cast away C<const>, returning a C<void *>. Macros C<MUTABLE_SV(av)>, +C<MUTABLE_SV(cv)> etc build on this, casting to C<AV *> etc without +casting away C<const>. This allows proper compile-time auditing of +C<const> correctness in the core, and helped picked up some errors (now +fixed). +(TBT) =item * @@ -3120,6 +3855,9 @@ =end original +Macros C<mPUSHs()> and C<mXPUSHs()> have been added, for pushing SVs on the +stack and mortalizing them. +(TBT) =item * @@ -3130,6 +3868,9 @@ =end original +Use of the private structure C<mro_meta> has changed slightly. Nothing +outside the core should be accessing this directly anyway. +(TBT) =item * @@ -3142,6 +3883,11 @@ =end original +A new tool, C<Porting/expand-macro.pl> has been added, that allows you +to view how a C preprocessor macro would be expanded when compiled. +This is handy when trying to decode the macro hell that is the perl +guts. +(TBT) =back @@ -3155,6 +3901,8 @@ =end original +Many modules updated from CPAN incorporate new tests. +(TBT) =begin original @@ -3165,6 +3913,11 @@ =end original +Several tests that have the potential to hang forever if they fail now +incorporate a "watchdog" functionality that will kill them after a timeout, +which helps ensure that C<make test> and C<make test_harness> run to +completion automatically. (Jerry Hedden). +(TBT) =begin original @@ -3172,6 +3925,8 @@ =end original +Some core-specific tests have been added: +(TBT) =over 4 @@ -3183,6 +3938,8 @@ =end original +Check that the debugger can retain source lines from C<eval>. +(TBT) =item t/io/perlio_fail.t @@ -3192,6 +3949,8 @@ =end original +Check that bad layers fail. +(TBT) =item t/io/perlio_leaks.t @@ -3201,6 +3960,8 @@ =end original +Check that PerlIO layers are not leaking. +(TBT) =item t/io/perlio_open.t @@ -3210,6 +3971,8 @@ =end original +Check that certain special forms of open work. +(TBT) =item t/io/perlio.t @@ -3219,6 +3982,8 @@ =end original +General PerlIO tests. +(TBT) =item t/io/pvbm.t @@ -3229,6 +3994,9 @@ =end original +Check that there is no unexpected interaction between the internal types +C<PVBM> and C<PVGV>. +(TBT) =item t/mro/package_aliases.t @@ -3238,6 +4006,8 @@ =end original +Check that mro works properly in the presence of aliased packages. +(TBT) =item t/op/dbm.t @@ -3247,6 +4017,8 @@ =end original +Tests for C<dbmopen> and C<dbmclose>. +(TBT) =item t/op/index_thr.t @@ -3256,6 +4028,8 @@ =end original +Tests for the interaction of C<index> and threads. +(TBT) =item t/op/pat_thr.t @@ -3265,6 +4039,8 @@ =end original +Tests for the interaction of esoteric patterns and threads. +(TBT) =item t/op/qr_gc.t @@ -3274,6 +4050,8 @@ =end original +Test that C<qr> doesn't leak. +(TBT) =item t/op/reg_email_thr.t @@ -3283,6 +4061,8 @@ =end original +Tests for the interaction of regex recursion and threads. +(TBT) =item t/op/regexp_qr_embed_thr.t @@ -3292,6 +4072,8 @@ =end original +Tests for the interaction of patterns with embedded C<qr//> and threads. +(TBT) =item t/op/regexp_unicode_prop.t @@ -3301,6 +4083,8 @@ =end original +Tests for Unicode properties in regular expressions. +(TBT) =item t/op/regexp_unicode_prop_thr.t @@ -3310,6 +4094,8 @@ =end original +Tests for the interaction of Unicode properties and threads. +(TBT) =item t/op/reg_nc_tie.t @@ -3319,6 +4105,8 @@ =end original +Test the tied methods of C<Tie::Hash::NamedCapture>. +(TBT) =item t/op/reg_posixcc.t @@ -3328,6 +4116,8 @@ =end original +Check that POSIX character classes behave consistently. +(TBT) =item t/op/re.t @@ -3337,6 +4127,8 @@ =end original +Check that exportable C<re> functions in F<universal.c> work. +(TBT) =item t/op/setpgrpstack.t @@ -3346,6 +4138,8 @@ =end original +Check that C<setpgrp> works. +(TBT) =item t/op/substr_thr.t @@ -3355,6 +4149,8 @@ =end original +Tests for the interaction of C<substr> and threads. +(TBT) =item t/op/upgrade.t @@ -3364,6 +4160,8 @@ =end original +Check that upgrading and assigning scalars works. +(TBT) =item t/uni/lex_utf8.t @@ -3373,6 +4171,8 @@ =end original +Check that Unicode in the lexer works. +(TBT) =item t/uni/tie.t @@ -3382,6 +4182,8 @@ =end original +Check that Unicode and C<tie> work. +(TBT) =back @@ -3396,6 +4198,9 @@ =end original +This is a list of some significant unfixed bugs, which are regressions +from either 5.10.0 or 5.8.x. +(TBT) =over 4 @@ -3410,6 +4215,11 @@ =end original +C<List::Util::first> misbehaves in the presence of a lexical C<$_> +(typically introduced by C<my $_> or implicitly by C<given>). The variable +which gets set for each iteration is the package variable C<$_>, not the +lexical C<$_> [RT #67694]. +(TBT) =begin original @@ -3418,6 +4228,9 @@ =end original +A similar issue may occur in other modules that provide functions which +take a block as their first argument, like +(TBT) foo { ... $_ ...} list @@ -3430,6 +4243,9 @@ =end original +The C<charnames> pragma may generate a run-time error when a regex is +interpolated [RT #56444]: +(TBT) use charnames ':full'; my $r1 = qr/\N{THAI CHARACTER SARA I}/; @@ -3442,6 +4258,8 @@ =end original +A workaround is to generate the character outside of the regex: +(TBT) my $a = "\N{THAI CHARACTER SARA I}"; my $r1 = qr/$a/; @@ -3455,6 +4273,9 @@ =end original +Some regexes may run much more slowly when run in a child thread compared +with the thread the pattern was compiled into [RT #55600]. +(TBT) =back @@ -3469,6 +4290,8 @@ =end original +The following items are now deprecated. +(TBT) =over 4 @@ -3484,6 +4307,12 @@ =end original +C<Switch> is buggy and should be avoided. From perl 5.11.0 onwards, it is +intended that any use of the core version of this module will emit a +warning, and that the module will eventually be removed from the core +(probably in perl 5.14.0). See L<perlsyn/"Switch statements"> for its +replacement. +(TBT) =item * @@ -3494,6 +4323,9 @@ =end original +C<suidperl> will be removed in 5.12.0. This provides a mechanism to +emulate setuid permission bits on systems that don't support it properly. +(TBT) =back @@ -3507,6 +4339,8 @@ =end original +Some of the work in this release was funded by a TPF grant. +(TBT) =begin original @@ -3517,6 +4351,11 @@ =end original +Nicholas Clark officially retired from maintenance pumpking duty at the +end of 2008; however in reality he has put much effort in since then to +help get 5.10.1 into a fit state to be released, including writing a +considerable chunk of this perldelta. +(TBT) =begin original @@ -3525,6 +4364,9 @@ =end original +Steffen Mueller and David Golden in particular helped getting CPAN modules +polished and synchronised with their in-core equivalents. +(TBT) =begin original @@ -3533,6 +4375,9 @@ =end original +Craig Berry was tireless in getting maint to run under VMS, no matter how +many times we broke it for him. +(TBT) =begin original @@ -3541,6 +4386,9 @@ =end original +The other core committers contributed most of the changes, and applied most +of the patches sent in by the hundreds of contributors listed in F<AUTHORS>. +(TBT) =begin original @@ -3548,6 +4396,8 @@ =end original +(Sorry to all the people I haven't mentioned by name). +(TBT) =begin original @@ -3556,6 +4406,9 @@ =end original +Finally, thanks to Larry Wall, without whom none of this would be +necessary. +(TBT) =head1 Reporting Bugs @@ -3570,6 +4423,11 @@ =end original +If you find what you think is a bug, you might check the articles +recently posted to the comp.lang.perl.misc newsgroup and the perl +bug database at http://rt.perl.org/perlbug/ . There may also be +information at http://www.perl.org/ , the Perl Home Page. +(TBT) =begin original @@ -3581,6 +4439,12 @@ =end original +If you believe you have an unreported bug, please run the B<perlbug> +program included with your release. Be sure to trim your bug down +to a tiny but sufficient test case. Your bug report, along with the +output of C<perl -V>, will be sent off to perlb****@perl***** to be +analysed by the Perl porting team. +(TBT) =begin original @@ -3596,6 +4460,16 @@ =end original +If the bug you are reporting has security implications, which make it +inappropriate to send to a publicly archived mailing list, then please send +it to perl5****@perl*****. This points to a closed subscription +unarchived mailing list, which includes all the core committers, who be able +to help assess the impact of issues, figure out a resolution, and help +co-ordinate the release of patches to mitigate or fix the problem across all +platforms on which Perl is supported. Please only use this address for +security issues in the Perl core, not for modules independently +distributed on CPAN. +(TBT) =head1 SEE ALSO