argra****@users*****
argra****@users*****
2011年 4月 4日 (月) 04:20:36 JST
Index: docs/perl/5.14.0/perl5140delta.pod diff -u docs/perl/5.14.0/perl5140delta.pod:1.1 docs/perl/5.14.0/perl5140delta.pod:1.2 --- docs/perl/5.14.0/perl5140delta.pod:1.1 Sun Mar 27 15:18:19 2011 +++ docs/perl/5.14.0/perl5140delta.pod Mon Apr 4 04:20:35 2011 @@ -88,9 +88,9 @@ C<BELL> mean the ASCII C<BEL> character, U+0007. In Perl 5.14, C<\N{BELL}> will continue to mean U+0007, but its use will generate a deprecated warning message, unless such warnings are turned off. The -new name for U+0007 in Perl will be C<ALERT>, which corresponds nicely -with the existing shorthand sequence for it, C<"\a">. C<\N{BEL}> will -mean U+0007, with no warning given. The character at U+1F514 will not +new name for U+0007 in Perl is C<ALERT>, which corresponds nicely +with the existing shorthand sequence for it, C<"\a">. C<\N{BEL}> +means U+0007, with no warning given. The character at U+1F514 will not have a name in 5.14, but can be referred to by C<\N{U+1F514}>. The plan is that in Perl 5.16, C<\N{BELL}> will refer to U+1F514, and so all code that uses C<\N{BELL}> should convert by then to using C<\N{ALERT}>, @@ -902,11 +902,11 @@ =begin original -On Linux the legacy process name will be set with L<prctl(2)>, in +On Linux the legacy process name is now set with L<prctl(2)>, in addition to altering the POSIX name via C<argv[0]> as perl has done -since version 4.000. Now system utilities that read the legacy process +since version 4.000. Now system utilities that read the legacy process name such as ps, top and killall will recognize the name you set when -assigning to C<$0>. The string you supply will be cut off at 16 bytes, +assigning to C<$0>. The string you supply will be cut off at 16 bytes; this is a limitation imposed by Linux. =end original @@ -1178,8 +1178,8 @@ In L<perlunicode/"User-Defined Character Properties">, it says you can create custom properties by defining subroutines whose names begin with -"In" or "Is". However, Perl did not actually enforce that naming -restriction, so \p{foo::bar} could call foo::bar() if it existed. Now this +"In" or "Is". However, Perl did not actually enforce that naming +restriction, so \p{foo::bar} could call foo::bar() if it existed. Now this convention has been enforced. =end original @@ -1194,7 +1194,7 @@ =begin original Also, Perl no longer allows a tainted regular expression to invoke a -user-defined property. It simply dies instead [perl #82616]. +user-defined property. It simply dies instead [perl #82616]. =end original @@ -1233,7 +1233,7 @@ double-quote-like contexts. Since 5.10.1, a deprecated warning message has been raised when this happens. Now, all double-quote-like contexts have the same behavior, namely to be equivalent to C<\x{100}> - -C<\x{1FF}>, with no deprecation warning. Use of these values in the +C<\x{1FF}>, with no deprecation warning. Use of these values in the command line option C<"-0"> retains the current meaning to slurp input files whole; previously, this was documented only for C<"-0777">. It is recommended, however, because of various ambiguities, to use the new @@ -1415,6 +1415,9 @@ =end original +æ£è¦è¡¨ç¾ä¸ã®ã³ã¼ãããã㯠(C<(?{...})> 㨠C<(??{...})>) ã¯ãæ£è¦è¡¨ç¾ã +å®è¡ä¸ã«ä»¥ä¸ã®äºã¤ã®ãããªç¶æ ã«ãªã£ãå ´åã«å ¨ã¦ã®ãã©ã°ã +(strict, warnings ãªã©) ãç¶æ¿ããã¦ãã¾ããã§ãã: use re 'eval'; $foo =~ $bar; # when $bar contains (?{...}) @@ -1422,11 +1425,14 @@ =begin original -This was a bug, which has now been fixed. But it has the potential to break +This was a bug, which has now been fixed. But +it has the potential to break any code that was relying on it. =end original +ããã¯ãã°ã§ããããä¿®æ£ããã¾ããã +ããããããã«ä¾åãã¦ããã³ã¼ããåä½ããªããªãå¯è½æ§ãããã¾ãã =head2 Stashes and Package Variables @@ -1438,6 +1444,7 @@ =end original +以ä¸ã®ãããªå ´å: tie @a, ...; { @@ -1449,11 +1456,14 @@ =begin original The new local array used to be made tied too, which was fairly pointless, -and has now been fixed. This fix could however potentially cause a change +and has now been fixed. This fix could however potentially cause a change in behaviour of some code. =end original +æ°ãããã¼ã«ã«ãªé åã tie ããã¦ãã¾ããããããã¯ã»ã¨ãã©æå³ããªãã +ä¿®æ£ããã¾ããã +ãããããã®ä¿®æ£ã«ãã£ã¦ã³ã¼ãã®æ¯ãèãã®å¤åãå¼ãèµ·ããããç¥ãã¾ããã =head3 Stashes are now always defined @@ -1464,6 +1474,8 @@ =end original +C<defined %Foo::> ã¯ãä¾ããã®ããã±ã¼ã¸ã§ã¾ã ä½ã®ã·ã³ãã«ã +å®ç¾©ããã¦ããªãã¦ãã常ã«çãè¿ãã¾ãã =begin original @@ -1473,19 +1485,52 @@ =end original +This is a side effect of removing a special case kludge in the tokeniser, +added for 5.10.0, to hide side effects of changes to the internal storage of +hashes that drastically reduce their memory usage overhead. +(TBT) =begin original Calling defined on a stash has been deprecated since 5.6.0, warned on lexicals since 5.6.0, and warned for stashes (and other package -variables) since 5.12.0. C<defined %hash> has always exposed an +variables) since 5.12.0. C<defined %hash> has always exposed an +implementation detail - emptying a hash by deleting all entries from it does +not make C<defined %hash> false, hence C<defined %hash> is not valid code to +determine whether an arbitrary hash is empty. Instead, use the behaviour +that an empty C<%hash> always returns false in a scalar context. + +=end original + +Calling defined on a stash has been deprecated since 5.6.0, warned on +lexicals since 5.6.0, and warned for stashes (and other package +variables) since 5.12.0. C<defined %hash> has always exposed an implementation detail - emptying a hash by deleting all entries from it does not make C<defined %hash> false, hence C<defined %hash> is not valid code to -determine whether an arbitrary hash is empty. Instead, use the behaviour +determine whether an arbitrary hash is empty. Instead, use the behaviour that an empty C<%hash> always returns false in a scalar context. +(TBT) + +=head3 Clearing stashes + +=begin original + +Stash list assignment C<%foo:: = ()> used to make the stash anonymous +temporarily while it was being emptied. Consequently, any of its +subroutines referenced elsewhere would become anonymous (showing up as +"(unknown)" in C<caller>). Now they retain their package names, such that +C<caller> will return the original sub name if there is still a reference +to its typeglob, or "foo::__ANON__" otherwise [perl #79208]. =end original +Stash list assignment C<%foo:: = ()> used to make the stash anonymous +temporarily while it was being emptied. Consequently, any of its +subroutines referenced elsewhere would become anonymous (showing up as +"(unknown)" in C<caller>). Now they retain their package names, such that +C<caller> will return the original sub name if there is still a reference +to its typeglob, or "foo::__ANON__" otherwise [perl #79208]. +(TBT) =head3 Dereferencing typeglobs @@ -1495,30 +1540,43 @@ =end original +åã°ãããã¹ã«ã©å¤æ°ã«ä»£å ¥ããã¨: $glob = *foo; =begin original the glob that is copied to C<$glob> is marked with a special flag -indicating that the glob is just a copy. This allows subsequent assignments -to C<$glob> to overwrite the glob. The original glob, however, is +indicating that the glob is just a copy. This +allows subsequent assignments to C<$glob> to +overwrite the glob. The original glob, however, is immutable. =end original +C<$glob> ã«ã³ãã¼ãããã°ããã¯ããã®ã°ãããåãªãã³ãã¼ã§ãããã¨ã +示ãç¹å¥ãªãã©ã°ãä»ãããã¾ãã +ããã«ãããå¼ãç¶ã C<$glob> ã¸ã®ä»£å ¥ã«ãã£ã¦ã°ãããä¸æ¸ãã§ãã¾ãã +ããããå ã®ã°ããã¯å¤æ´ããã¾ããã =begin original -Many Perl operators did not distinguish between these two types of globs. +Some Perl operators did not distinguish between these two types of globs. This would result in strange behaviour in edge cases: C<untie $scalar> -would do nothing if the last thing assigned to the scalar was a glob +would not untie the scalar if the last thing assigned to it was a glob (because it treated it as C<untie *$scalar>, which unties a handle). Assignment to a glob slot (e.g., C<*$glob = \@some_array>) would simply assign C<\@some_array> to C<$glob>. =end original +ä¸é¨ã® Perl æ¼ç®åã¯ãã®2種é¡ã®ã°ãããåºå¥ãã¦ãã¾ããã§ããã +ããã«ãããã¨ãã¸ã±ã¼ã¹ã§ã¯ä¸æè°ãªæ¯ãèããè¦ãã¦ãã¾ãã: +C<untie $scalar> ã¯ãæå¾ã«ä»£å ¥ããããã®ãã°ããã®å ´åã¯ã¹ã«ã©ã +untie ãã¾ããã§ãã (ãªããªãããã¯ãã³ãã«ã untie ãã +C<untie *$scalar> ã¨ãã¦æ±ãããããã§ã)ã +ã°ããã¹ãããã¸ã®ä»£å ¥ (ã¤ã¾ã C<*$glob = \@some_array>) ã¯åã« +C<\@some_array> ã C<$glob> ã«ä»£å ¥ãã¾ãã =begin original @@ -1527,19 +1585,30 @@ copy. This allows operators that make a distinction between globs and scalars to be modified to treat only immutable globs as globs. (C<tie>, C<tied> and C<untie> have been left as they are for compatibility's sake, -but will warn. See L</Deprecations>.) +but will warn. See L</Deprecations>.) =end original +ãããä¿®æ£ããããã«ãC<*{}> æ¼ç®å (C<*foo> 㨠C<*$foo> ã® +å½¢å¼ãå«ã¿ã¾ã) ã¯ããããªãã©ã³ããã°ããã®ã³ãã¼ãªãæ°ããå¤æ´ä¸è½ã® +ã°ãããä½ãããã«ä¿®æ£ããã¾ããã +ããã«ãããæ¼ç®åãã°ããã¨ã¹ã«ã©ãä¿®æ£ããã¨ãã®åºå¥ã¯ãå¤æ´ä¸è½ã®ã°ããã +ã°ããã¨ãã¦æ±ãã ãã«ãªãã¾ããã +(C<tie>, C<tied>, C<untie> ã¯ãäºææ§ã®çç±ã«ãããã®ã¾ã¾æ®ããã¾ãããã +è¦åãåºã¾ãã +L</Deprecations> ãåç §ãã¦ãã ããã) =begin original This causes an incompatible change in code that assigns a glob to the -return value of C<*{}> when that operator was passed a glob copy. Take the +return value of C<*{}> when that operator was passed a glob copy. Take the following code, for instance: =end original +ããã¯ãæ¼ç®åãã°ããã®ã³ãã¼ã渡ãã¨ãã« C<*{}> ã®è¿ãå¤ãã°ããã« +ä»£å ¥ããã³ã¼ãã§ã¯éäºæã®å¤æ´ã«ãªãã¾ãã +ä¾ãã°ã以ä¸ã®ãããªã³ã¼ãã®å ´å: $glob = *foo; *$glob = *bar; @@ -1547,11 +1616,15 @@ =begin original The C<*$glob> on the second line returns a new immutable glob. That new -glob is made an alias to C<*bar>. Then it is discarded. So the second +glob is made an alias to C<*bar>. Then it is discarded. So the second assignment has no effect. =end original +2 è¡ç®ã® C<*$glob> ã¯æ°ããå¤æ´ä¸è½ã®ã°ãããè¿ãã¾ãã +æ°ããã°ãã㯠C<*bar> ã¸ã®å¥åã¨ãã¦ä½ããã¾ãã +ããããããã¯æ¨ã¦ããã¾ãã +å¾ã£ã¦ã2 è¡ç®ã®ä»£å ¥ã§ã¯ä½ãèµ·ããã¾ããã =begin original @@ -1560,20 +1633,9 @@ =end original - -=head3 Clearing stashes - -=begin original - -Stash list assignment C<%foo:: = ()> used to make the stash anonymous -temporarily while it was being emptied. Consequently, any of its -subroutines referenced elsewhere would become anonymous (showing up as -"(unknown)" in C<caller>). Now they retain their package names, such that -C<caller> will return the original sub name if there is still a reference -to its typeglob, or "foo::__ANON__" otherwise [perl #79208]. - -=end original - +See L<http://rt.perl.org/rt3/Public/Bug/Display.html?id=77810> for even +more detail. +(TBT) =head3 Magic variables outside the main package @@ -1585,6 +1647,11 @@ =end original +Perl ã®ä»¥åã®ãã¼ã¸ã§ã³ã§ã¯ã C<$!>, C<%SIG> ãªã©ã®ãããªãã¸ã«ã«å¤æ°ã¯ +ä»ã®ããã±ã¼ã¸ã¸ãæ¼æ´©ããã¦ãã¾ããã +ãã㧠C<%foo::SIG> ãã·ã°ãã«ã®ã¢ã¯ã»ã¹ã«ä½¿ãããã +(strict ã¢ã¼ãããªããªã) C<${"foo::!"}> (with strict mode off) ã + C ã® C<errno> ã¸ã®ã¢ã¯ã»ã¹ã«ä½¿ãããããªã©ã§ãã =begin original @@ -1593,6 +1660,9 @@ =end original +ããã¯ãã°ããããã¯ãæ³å®å¤ã®ãæ©è½ã§ãã; ããã«ãããã¢ã¸ã¥ã¼ã«ã +èªã¿è¾¼ã¾ããã¨ãã«ã·ã°ãã«ãã³ãã©ãã¯ãªã¢ãããã¨ãã£ããã¾ãã¾ãª +æªå½±é¿ãå¼ãèµ·ããã¦ãã¾ããã =begin original @@ -1601,6 +1671,40 @@ =end original +ããã¯ä¿®æ£ããã¾ãã (ãããã¯è¦æ¹ã«ãã£ã¦ã¯ããã®æ©è½ã¯åãé¤ããã¾ãã)ã + +=head3 local($_) will strip all magic from $_ + +=begin original + +local() on scalar variables will give them a new value, but keep all +their magic intact. This has proven to be problematic for the default +scalar variable $_, where L<perlsub> recommends that any subroutine +that assigns to $_ should localize it first. This would throw an +exception if $_ is aliased to a read-only variable, and could have +various unintentional side-effects in general. + +=end original + +ã¹ã«ã©å¤æ°ã« local() ãè¡ãã¨æ°ããå¤ãä¸ãããã¾ãããå ¨ã¦ã®ãã¸ã«ã«ãª +æ©è½ã¯ãã®ã¾ã¾ã§ããã +This has proven to be problematic for the default +scalar variable $_, where L<perlsub> recommends that any subroutine +that assigns to $_ should localize it first. This would throw an +exception if $_ is aliased to a read-only variable, and could have +various unintentional side-effects in general. +(TBT) + +=begin original + +Therefore, as an exception to the general rule, local($_) will not +only assign a new value to $_, but also remove all existing magic from +it as well. + +=end original + +å¾ã£ã¦ãä¸è¬çãªã«ã¼ã«ã¸ã®ä¾å¤ã¨ãã¦ãlocal($_)㯠$_ ã«æ°ããå¤ã +ä»£å ¥ããã ãã§ãªããå ¨ã¦ã®ãã¸ã«ã«ãªæ©è½ãåãé¤ãããããã«ãªãã¾ããã =head2 Changes to Syntax or to Perl Operators @@ -1614,6 +1718,9 @@ =end original +C<given> ãããã¯ã¯æå¾ã«è©ä¾¡ããå¼ãè¿ãããã«ãªãã¾ãã +(ãããã¯ã C<break> ã§çµäºããå ´åã¯ç©ºãªã¹ããè¿ãã¾ã)ã +å¾ã£ã¦ã以ä¸ã®ããã«æ¸ããããã«ãªãã¾ãã: my $type = do { given ($num) { @@ -1630,6 +1737,7 @@ =end original +詳ãã㯠L<perlsyn/Return value> ãåç §ãã¦ãã ããã =head3 Change in the parsing of certain prototypes @@ -1640,6 +1748,8 @@ =end original +以ä¸ã®ãããã¿ã¤ãã§å®£è¨ãããé¢æ°ã¯ãæ£ããåé é¢æ°ã¨ã㦠+æ¯ãèãããã«ãªãã¾ãã: * \$ \% \@ \* \& @@ -1652,10 +1762,14 @@ Due to this bug fix [perl #75904], functions using the C<(*)>, C<(;$)> and C<(;*)> prototypes -are parsed with higher precedence than before. So in the following example: +are parsed with higher precedence than before. So +in the following example: =end original +ãã®ãã°ä¿®æ£ [perl #75904] ã«ãããC<(*)>, C<(;$)>, C<(;*)> ãããã¿ã¤ãã +使ã£ãé¢æ°ã¯ä»¥åããé«ãåªå é ä½ã§ãã¼ã¹ããã¾ãã +å¾ã£ã¦ã以ä¸ã®ãããªã³ã¼ãã¯: sub foo($); foo $a < $b; @@ -1663,11 +1777,14 @@ =begin original the second line is now parsed correctly as C<< foo($a) < $b >>, rather than -C<< foo($a < $b) >>. This happens when one of these operators is used in +C<< foo($a < $b) >>. This happens when one of these operators is used in an unparenthesised argument: =end original +2 è¡ç®ã¯ C<< foo($a < $b) >> ã§ã¯ãªããæ£ãã C<< foo($a) < $b >> 㨠+ãã¼ã¹ããã¾ãã +ããã¯ãã£ããªãã®å¼æ°ã§ä»¥ä¸ã®æ¼ç®åã®ããããã使ãããã¨ãã«èµ·ããã¾ã: < > <= >= lt gt le ge == != <=> eq ne cmp ~~ @@ -1687,6 +1804,7 @@ =end original +以åã¯ã以ä¸ã®ã³ã¼ãã¯ãããã³ã°ã«æåãã¦ãã¾ãã: my @a = qw(a y0 z); my @b = qw(a x0 z); @@ -1698,6 +1816,7 @@ =end original +ãã®ããããªæ¯ãèãã¯ä¿®æ£ããã¾ãã [perl #77468]ã =head3 Negation treats strings differently from before @@ -1708,16 +1827,21 @@ =end original +åé å¦å®æ¼ç®å C<-> ã¯æ°å¤ã®ããã«è¦ããæååãæ°å¤ã¨ãã¦æ±ãããã« +ãªãã¾ãã [perl #57706]ã =head3 Negative zero =begin original Negative zero (-0.0), when converted to a string, now becomes "0" on all -platforms. It used to become "-0" on some, but "0" on others. +platforms. It used to become "-0" on some, but "0" on others. =end original +è² æ°ã®ã¼ã (-0.0) ã¯ãæååã«å¤æããã¨ããã©ã®ãã©ãããã©ã¼ã ã§ã +"0" ã«ãªãããã«ãªãã¾ããã +以åã¯ãã©ãããã©ã¼ã ã«ãã£ã¦ "-0" ã ã£ãã "0" ã ã£ãããã¦ãã¾ããã =begin original @@ -1726,6 +1850,9 @@ =end original +æªã ã«ã¼ããè² æ°ãã©ããã決å®ãããå ´åã¯ã +C<sprintf("%g", $zero) =~ /^-/> ã¨ããããCPAN ã«ãã +L<Data::Float> ã¢ã¸ã¥ã¼ã«ã使ã£ã¦ãã ããã =head3 C<:=> is now a syntax error @@ -1733,8 +1860,9 @@ Previously C<my $pi := 4;> was exactly equivalent to C<my $pi : = 4;>, with the C<:> being treated as the start of an attribute list, ending before -the C<=>. The use of C<:=> to mean C<: => was deprecated in 5.12.0, and is now -a syntax error. This will allow the future use of C<:=> as a new token. +the C<=>. The use of C<:=> to mean C<: => was deprecated in 5.12.0, and is +now a syntax error. This will allow the future use of C<:=> as a new +token. =end original @@ -1765,7 +1893,7 @@ On systems other than Windows that do not have a C<fchdir> function, newly-created threads no -longer inherit directory handles from their parent threads. Such programs +longer inherit directory handles from their parent threads. Such programs would usually have crashed anyway [perl #75154]. =end original @@ -1777,7 +1905,7 @@ The C<close> function no longer waits for the child process to exit if the underlying file descriptor is still in use by another thread, to avoid -deadlocks. It returns true in such cases. +deadlocks. It returns true in such cases. =end original @@ -1789,7 +1917,7 @@ On Windows parent processes would not terminate until all forked childred had terminated first. However, C<kill('KILL', ...)> is inherently unstable on pseudo-processes, and C<kill('TERM', ...)> -might not get delivered if the child if blocked in a system call. +might not get delivered if the child is blocked in a system call. =end original @@ -1800,7 +1928,7 @@ the hosting process, Perl will now no longer wait for children that have been sent a SIGTERM signal. It is up to the parent process to waitpid() for these children if child clean-up processing must be -allowed to finish. However, it is also the responsibility of the +allowed to finish. However, it is also the responsibility of the parent then to avoid the deadlock by making sure the child process can't be blocked on I/O either. @@ -1830,7 +1958,7 @@ =begin original This will change the behavior of Policy.sh if you happen to have been -accidentally relying on the Policy.sh incorrect behavior. +accidentally relying on its incorrect behavior. =end original @@ -2018,7 +2146,7 @@ The following modules will be removed from the core distribution in a future release, and should be installed from CPAN instead. Distributions -on CPAN which require these should add them to their prerequisites. The +on CPAN which require these should add them to their prerequisites. The core versions of these modules will issue a deprecation warning. =end original @@ -2078,10 +2206,10 @@ =begin original -Signal dispatch has been moved from the runloop into control ops. This +Signal dispatch has been moved from the runloop into control ops. This should give a few percent speed increase, and eliminates almost all of the speed penalty caused by the introduction of "safe signals" in -5.8.0. Signals should still be dispatched within the same statement as +5.8.0. Signals should still be dispatched within the same statement as they were previously - if this is not the case, or it is possible to create uninterruptible loops, this is a bug, and reports are encouraged of how to recreate such issues. @@ -2179,7 +2307,7 @@ When an object has many weak references to it, freeing that object can under some some circumstances take O(N^2) time to free (where N is the -number of references). The number of circumstances has been reduced +number of references). The number of circumstances has been reduced [perl #75254] =end original @@ -2218,7 +2346,7 @@ =begin original xhv_fill has been eliminated from struct xpvhv, saving 1 IV per hash and -on some systems will cause struct xpvhv to become cache-aligned. To avoid +on some systems will cause struct xpvhv to become cache-aligned. To avoid this memory saving causing a slowdown elsewhere, boolean use of HvFILL now calls HvTOTALKEYS instead (which is equivalent) - so while the fill data when actually required are now calculated on demand, the cases when @@ -2270,7 +2398,8 @@ =begin original For weak references, the common case of just a single weak reference per -referent has been optimised to reduce the storage required. In this case it +referent has been optimised to reduce the +storage required. In this case it saves the equivalent of one small Perl array per referent. =end original @@ -2348,7 +2477,7 @@ C<CPAN::Meta::YAML> 0.003 has been added as a dual-life module. It supports a subset of YAML sufficient for reading and writing META.yml and MYMETA.yml files included with CPAN distributions or generated by the module installation -toolchain. It should not be used for any other general YAML parsing or +toolchain. It should not be used for any other general YAML parsing or generation task. =end original @@ -2358,11 +2487,11 @@ =begin original -C<CPAN::Meta> version 2.110440 has been added as a dual-life module. It +C<CPAN::Meta> version 2.110440 has been added as a dual-life module. It provides a standard library to read, interpret and write CPAN distribution metadata files (e.g. META.json and META.yml) which describes a distribution, its contents, and the requirements for building it and -installing it. The latest CPAN distribution metadata specification is +installing it. The latest CPAN distribution metadata specification is included as C<CPAN::Meta::Spec> and notes on changes in the specification over time are given in C<CPAN::Meta::History>. @@ -2373,7 +2502,7 @@ =begin original -C<HTTP::Tiny> 0.011 has been added as a dual-life module. It is a very +C<HTTP::Tiny> 0.012 has been added as a dual-life module. It is a very small, simple HTTP/1.1 client designed for simple GET requests and file mirroring. It has has been added to enable CPAN.pm and CPANPLUS to "bootstrap" HTTP access to CPAN using pure Perl without relying on external @@ -2423,7 +2552,7 @@ =begin original The following modules were added by the C<Unicode::Collate> -upgrade. See below for details. +upgrade. See below for details. =end original @@ -2740,7 +2869,7 @@ =begin original -C<bignum> has been upgraded from version 0.23 to 0.26. +C<bignum> has been upgraded from version 0.23 to 0.27. =end original @@ -3259,7 +3388,7 @@ =begin original -C<ExtUtils::ParseXS> has been upgraded from version 2.21 to 2.2209. +C<ExtUtils::ParseXS> has been upgraded from version 2.21 to 2.2210. =end original @@ -3942,7 +4071,7 @@ =begin original -C<Pod::Html> has been upgraded from version 1.09 to 1.1. +C<Pod::Html> has been upgraded from version 1.09 to 1.11. =end original @@ -4735,7 +4864,7 @@ =begin original The perlmodlib page that came with Perl 5.12.0 was missing a lot of -modules, due to a bug in the script that generates the list. This has been +modules, due to a bug in the script that generates the list. This has been fixed [perl #74332] (5.12.1). =end original @@ -4924,7 +5053,7 @@ The documentation for the C<SvTRUE> macro in L<perlapi> was simply wrong in stating that -get-magic is not processed. It has been corrected. +get-magic is not processed. It has been corrected. =end original @@ -4964,7 +5093,7 @@ =begin original -L<overload>'s documentation has practically undergone a rewrite. It +L<overload>'s documentation has practically undergone a rewrite. It is now much more straightforward and clear. =end original @@ -4983,9 +5112,10 @@ =begin original The L<perlhack> document is now much shorter, and focuses on the Perl 5 -development process and submitting patches to Perl. The technical content has +development process and submitting patches +to Perl. The technical content has been moved to several new documents, L<perlsource>, L<perlinterp>, -L<perlhacktut>, and L<perlhacktips>. This technical content has only been +L<perlhacktut>, and L<perlhacktips>. This technical content has only been lightly edited. =end original @@ -4993,8 +5123,9 @@ =begin original -The perlrepository document has been renamed to L<perlgit>. This new document -is just a how-to on using git with the Perl source code. Any other content +The perlrepository document has been renamed to +L<perlgit>. This new document is just a how-to +on using git with the Perl source code. Any other content that used to be in perlrepository has been moved to perlhack. =end original @@ -5133,8 +5264,8 @@ =begin original Performing an operation requiring Unicode semantics (such as case-folding) -on a Unicode surrogate or a non-Unicode character now triggers a warning: -'Operation "%s" returns its argument for ...'. +on a Unicode surrogate or a non-Unicode character now triggers this +warning. =end original @@ -5482,7 +5613,8 @@ =begin original The last vestiges of support for this platform have been excised from the -Perl distribution. It was officially discontinued in version 5.12.0. It had +Perl distribution. It was officially discontinued +in version 5.12.0. It had not worked for years before that. =end original @@ -5493,7 +5625,7 @@ =begin original The last vestiges of support for this platform have been excised from the -Perl distribution. It was officially discontinued in an earlier version. +Perl distribution. It was officially discontinued in an earlier version. =end original @@ -5619,6 +5751,10 @@ =head3 IRIX +=over + +=item * + =begin original Conversion of strings to floating-point numbers is now more accurate on @@ -5627,8 +5763,14 @@ =end original +=back + =head3 Mac OS X +=over + +=item * + =begin original Early versions of Mac OS X (Darwin) had buggy implementations of the @@ -5645,9 +5787,15 @@ =end original +=back + =head3 MirBSD +=over + +=item * + =begin original Previously if you built perl with a shared libperl.so on MirBSD (the @@ -5657,9 +5805,15 @@ =end original +=back + =head3 NetBSD +=over + +=item * + =begin original The NetBSD hints file has been changed to make the system's malloc the @@ -5668,8 +5822,14 @@ =end original +=back + =head3 Recent OpenBSDs now use perl's malloc +=over + +=item * + =begin original OpenBSD E<gt> 3.7 has a new malloc implementation which is mmap-based @@ -5679,9 +5839,15 @@ =end original +=back + =head3 OpenVOS +=over + +=item * + =begin original perl now builds again with OpenVOS (formerly known as Stratus VOS) @@ -5689,16 +5855,24 @@ =end original +=back + =head3 Solaris =begin original -DTrace is now supported on Solaris. There used to be build failures, but -these have been fixed [perl #73630] (5.12.3). +=over + +=item * =end original +DTrace is now supported on Solaris. There used to be build failures, but +these have been fixed [perl #73630] (5.12.3). + +=back + =head3 VMS @@ -5820,7 +5994,8 @@ =begin original -F<git_version.h> is now installed on VMS. This was an oversight in v5.12.0 which +F<git_version.h> is now installed on VMS. This +was an oversight in v5.12.0 which caused some extensions to fail to build (5.12.2). =end original @@ -6157,7 +6332,7 @@ It is now possible for XS code to hook into Perl's lexical scope mechanism at compile time, using the new C<Perl_blockhook_register> -function. See L<perlguts/"Compile-time scope hooks">. +function. See L<perlguts/"Compile-time scope hooks">. =end original @@ -6495,16 +6670,14 @@ C<UNICODE_IS_ILLEGAL> have been removed, as they stem from a fundamentally broken model of how the Unicode non-character code points should be handled, which is now described in -L<perlunicode/Non-character code points>. See also L</Selected Bug Fixes>. =end original =begin original -XXX Which bugs in particular? Selected Bug Fixes is too long for this link -to be meaningful right now -I don't see the bugs in that section currently -- khw +L<perlunicode/Non-character code points>. See also the Unicode section +under L</Selected Bug Fixes>. =end original @@ -6557,7 +6730,8 @@ =begin original Use the new C<find_rundefsv> function or the C<UNDERBAR> macro -instead. They directly return the right SV representing C<$_>, whether it's +instead. They directly return the right SV +representing C<$_>, whether it's lexical or dynamic. =end original @@ -6665,6 +6839,8 @@ =head1 Selected Bug Fixes +(ãã°ä¿®æ£ã®æç²) + =head2 I/O =over 4 @@ -6698,7 +6874,7 @@ =begin original PerlIO no longer crashes when called recursively, e.g., from a signal -handler. Now it just leaks memory [perl #75556]. +handler. Now it just leaks memory [perl #75556]. =end original @@ -6708,7 +6884,7 @@ =begin original Most I/O functions were not warning for unopened handles unless the -'closed' and 'unopened' warnings categories were both enabled. Now only +'closed' and 'unopened' warnings categories were both enabled. Now only C<use warnings 'unopened'> is necessary to trigger these warnings (as was always meant to be the case). @@ -6847,7 +7023,7 @@ A regular expression match in the right-hand side of a global substitution (C<s///g>) that is in the same scope will no longer cause match variables -to have the wrong values on subsequent iterations. This can happen when an +to have the wrong values on subsequent iterations. This can happen when an array or hash subscript is interpolated in the right-hand side, as in C<s|(.)|@a{ print($1), /./ }|g> [perl #19078]. @@ -6935,7 +7111,7 @@ =begin original The C<(?|...)> regular expression construct no longer crashes if the final -branch has more sets of capturing parentheses than any other branch. This +branch has more sets of capturing parentheses than any other branch. This was fixed in Perl 5.10.1 for the case of a single branch, but that fix did not take multiple branches into account [perl #84746]. @@ -7051,7 +7227,7 @@ =begin original -at compile time. Now it correctly matches against C<$_> [perl #20444]. +at compile time. Now it correctly matches against C<$_> [perl #20444]. =end original @@ -7133,7 +7309,8 @@ =begin original -C<state> can now be used with attributes. It used to mean the same thing as +C<state> can now be used with attributes. It +used to mean the same thing as C<my> if attributes were present [perl #68658]. =end original @@ -7257,7 +7434,7 @@ C<PL_isarev>, which is accessible to Perl via C<mro::get_isarev> is now updated properly when packages are deleted or removed from the C<@ISA> of -other classes. This allows many packages to be created and deleted without +other classes. This allows many packages to be created and deleted without causing a memory leak [perl #75176]. =end original @@ -7318,7 +7495,7 @@ =begin original Assigning a glob to a PVLV used to convert it to a plain string. Now it -works correctly, and a PVLV can hold a glob. This would happen when a +works correctly, and a PVLV can hold a glob. This would happen when a nonexistent hash or array element was passed to a subroutine: =end original @@ -7355,7 +7532,7 @@ During the restoration of a localised typeglob on scope exit, any destructors called as a result would be able to see the typeglob in an inconsistent state, containing freed entries, which could result in a -crash. This would affect code like this: +crash. This would affect code like this: =end original @@ -7369,7 +7546,7 @@ =begin original Now the glob entries are cleared before any destructors are called. This -also means that destructors can vivify entries in the glob. So perl tries +also means that destructors can vivify entries in the glob. So perl tries again and, if the entries are re-created too many times, dies with a 'panic: gp_free...' error message. @@ -7386,19 +7563,50 @@ =begin original -What has become known as the "Unicode Bug" is essentially resolved in +What has become known as the "Unicode Bug" is almost completely resolved in this release. Under C<use feature 'unicode_strings'> (which is automatically selected by C<use 5.012> and above), the internal storage format of a string no longer affects the external semantics. -The exception is that the now-deprecated user-defined case changing +[perl #58182]. + +=end original + + +=begin original + +There are two known exceptions: + +=end original + + +=over + +=item 1 + +=begin original + +The now-deprecated user-defined case changing functions require utf8-encoded strings to function. The CPAN module L<Unicode::Casing> has been written to replace this feature, without its -drawacks, and the feature is scheduled to be removed in 5.16 [perl -#58182]. +drawbacks, and the feature is scheduled to be removed in 5.16. + +=end original + + +=item 2 + +=begin original + +C<quotemeta> (and its in-line equivalent C<\Q>) also can give different +results if a string is encoded in UTF-8 or not. See +L<perlunicode/The "Unicode Bug">. =end original +=back + + =item * =begin original @@ -7481,6 +7689,7 @@ writing, March 2010, the Unicode standard is currently in flux about what they will recommend doing with regard to such cases. It may be that they will throw out the whole concept of multi-character matches. +[perl #71736]. =end original @@ -7580,15 +7789,6 @@ =begin original -FETCH is no longer called on tied variables in void context. - -=end original - - -=item * - -=begin original - C<$tied-E<gt>()> did not always call FETCH [perl #8438]. =end original @@ -7645,6 +7845,15 @@ =end original +=item * + +=begin original + +utf8::is_utf8 now respects get-magic (e.g. $1) (5.12.1). + +=end original + + =back =item * @@ -7765,7 +7974,7 @@ =begin original -C<sprintf> now dies when passed a tainted scalar for the format. It did +C<sprintf> now dies when passed a tainted scalar for the format. It did already die for arbitrary expressions, but not for simple scalars [perl #82250]. @@ -7776,7 +7985,9 @@ =begin original -utf8::is_utf8 now respects get-magic (e.g. $1) (5.12.1). +C<lc>, C<uc>, C<lcfirst> and C<ucfirst> no longer return untainted strings +when the argument is tainted. This has been broken since perl 5.8.9 +[perl #87336]. =end original @@ -7843,8 +8054,8 @@ C<#line> directives in string evals were not properly updating the arrays of lines of code (C<< @{"_<..."} >>) that the debugger (or any debugging or -profiling module) uses. In threaded builds, they were not being updated at -all. In non-threaded builds, the line number was ignored, so any change to +profiling module) uses. In threaded builds, they were not being updated at +all. In non-threaded builds, the line number was ignored, so any change to the existing line number would cause the lines to be misnumbered [perl #79442]. @@ -7890,8 +8101,9 @@ =begin original -Now directory handles are cloned properly, on systems that have a C<fchdir> -function. On other systems, new threads simply do not inherit directory +Now directory handles are cloned properly, on Windows +and on systems that have a C<fchdir> function. On other +systems, new threads simply do not inherit directory handles from their parent threads [perl #75154]. =end original @@ -7922,7 +8134,8 @@ =begin original Perl now does a timely cleanup of SVs that are cloned into a new thread but -then discovered to be orphaned (i.e., their owners are I<not> cloned). This +then discovered to be orphaned (i.e., their +owners are I<not> cloned). This eliminates several "scalars leaked" warnings when joining threads. =end original @@ -8048,7 +8261,7 @@ =begin original A signal handler called within a signal handler could cause leaks or -double-frees. Now fixed. [perl #76248]. +double-frees. Now fixed [perl #76248]. =end original @@ -8076,7 +8289,7 @@ L<pos()|perlfunc/"index STR,SUBSTR,POSITION">, L<keys()|perlfunc/"keys HASH">, and L<vec()|perlfunc/"vec EXPR,OFFSET,BITS"> could, when used in combination with lvalues, result in leaking the scalar value they operate on, and cause its -destruction to happen too late. This has now been fixed. +destruction to happen too late. This has now been fixed. =end original @@ -8403,7 +8616,7 @@ =begin original C<sv_catsv_flags> no longer calls C<mg_get> on its second argument (the -source string) if the flags passed to it do not include SV_GMAGIC. So it +source string) if the flags passed to it do not include SV_GMAGIC. So it now matches the documentation. =end original @@ -8603,6 +8816,17 @@ =end original +=head2 C<split> and C<@_> + +=begin original + +C<split> no longer modifies C<@_> when called in scalar or void context. +In void context it now produces a "Useless use of split" warning. +This was also a perl 5.12.0 changed that missed the perldelta. + +=end original + + =head1 Obituary =begin original