perl588delta.html

来自「perl教程」· HTML 代码 · 共 1,202 行 · 第 1/3 页

HTML
1,202 行
字号
<li>
<p><code>Text::Wrap</code> upgraded to version 2005.082401</p>
<ul>
<li>
<p>Adds <code>$Text::Wrap::separator2</code>, which allows you to preserve existing newlines
but add line-breaks with some other string.</p>
</li>
</ul>
<li>
<p><code>threads</code> upgraded to version 1.07</p>
<ul>
<li>
<p><code>threads</code> will now honour <code>no warnings 'threads'</code></p>
</li>
<li>
<p>A thread's interpreter is now freed after <a href="../../lib/Pod/perlfunc.html#item_join"><code>$t-&gt;join()</code></a> rather than after
<code>undef $t</code>, which should fix some <code>ithreads</code> memory leaks. (Fixed by Dave
Mitchell)</p>
</li>
<li>
<p>Some documentation typo fixes.</p>
</li>
</ul>
<li>
<p><code>threads::shared</code> upgraded to version 0.94</p>
<ul>
<li>
<p>Documentation changes only</p>
</li>
<li>
<p>Note: An improved implementation of <code>threads::shared</code> is available on
CPAN - this will be merged into 5.8.9 if it proves stable.</p>
</li>
</ul>
<li>
<p><code>Tie::Hash</code> upgraded to version 1.02</p>
<ul>
<li>
<p>Documentation typo fixed</p>
</li>
</ul>
<li>
<p><code>Time::HiRes</code> upgraded to version 1.86 (was 1.66)</p>
<ul>
<li>
<p><code>clock_nanosleep()</code> and <code>clock()</code> functions added</p>
</li>
<li>
<p>Support for the POSIX <code>clock_gettime()</code> and <code>clock_getres()</code> has been added</p>
</li>
<li>
<p>Return <a href="../../lib/Pod/perlfunc.html#item_undef"><code>undef</code></a> or an empty list if the C <code>gettimeofday()</code> function fails</p>
</li>
<li>
<p>Improved <code>nanosleep</code> detection</p>
</li>
<li>
<p>Internal cleanup</p>
</li>
<li>
<p>Enhanced documentation</p>
</li>
</ul>
<li>
<p><code>Unicode::Collate</code> upgraded to version 0.52</p>
<ul>
<li>
<p>Now implements UCA Revision 14 (based on Unicode 4.1.0).</p>
</li>
<li>
<p><code>Unicode::Collate-</code>new&gt; method no longer overwrites user's <a href="../../lib/Pod/perlvar.html#item___"><code>$_</code></a></p>
</li>
<li>
<p>Enhanced documentation</p>
</li>
</ul>
<li>
<p><code>Unicode::UCD</code> upgraded to version 0.24</p>
<ul>
<li>
<p>Documentation typos fixed</p>
</li>
</ul>
<li>
<p><code>User::grent</code> upgraded to version 1.01</p>
<ul>
<li>
<p>Documentation typo fixed</p>
</li>
</ul>
<li>
<p><code>utf8</code> upgraded to version 1.06</p>
<ul>
<li>
<p>Documentation typos fixed</p>
</li>
</ul>
<li>
<p><code>vmsish</code> upgraded to version 1.02</p>
<ul>
<li>
<p>Documentation typos fixed</p>
</li>
</ul>
<li>
<p><code>warnings</code> upgraded to version 1.05</p>
<ul>
<li>
<p>Gentler messing with <code>Carp::</code> internals</p>
</li>
<li>
<p>Internal cleanup</p>
</li>
<li>
<p>Documentation update</p>
</li>
</ul>
<li>
<p><code>Win32</code> upgraded to version 0.2601</p>
<ul>
<li>
<p>Provides Windows Vista support to <code>Win32::GetOSName</code></p>
</li>
<li>
<p>Documentation enhancements</p>
</li>
</ul>
<li>
<p><code>XS::Typemap</code> upgraded to version 0.02</p>
<ul>
<li>
<p>Internal cleanup</p>
</li>
</ul>
</ul>
<p>
</p>
<hr />
<h1><a name="utility_changes">Utility Changes</a></h1>
<p>
</p>
<h2><a name="h2xs_enhancements"><code>h2xs</code> enhancements</a></h2>
<p><code>h2xs</code> implements new option <code>--use-xsloader</code> to force use of
<code>XSLoader</code> even in backwards compatible modules.</p>
<p>The handling of authors' names that had apostrophes has been fixed.</p>
<p>Any enums with negative values are now skipped.</p>
<p>
</p>
<h2><a name="perlivp_enhancements"><code>perlivp</code> enhancements</a></h2>
<p><code>perlivp</code> implements new option <a href="../../lib/Pod/perlrun.html#item__2da"><code>-a</code></a> and will not check for <em>*.ph</em>
files by default any more.  Use the <a href="../../lib/Pod/perlrun.html#item__2da"><code>-a</code></a> option to run <em>all</em> tests.</p>
<p>
</p>
<hr />
<h1><a name="new_documentation">New Documentation</a></h1>
<p>The <a href="../../lib/Pod/perlglossary.html">the perlglossary manpage</a> manpage is a glossary of terms used in the Perl
documentation, technical and otherwise, kindly provided by O'Reilly Media,
inc.</p>
<p>
</p>
<hr />
<h1><a name="performance_enhancements">Performance Enhancements</a></h1>
<ul>
<li>
<p>Weak reference creation is now <em>O(1)</em> rather than <em>O(n)</em>, courtesy of
Nicholas Clark. Weak reference deletion remains <em>O(n)</em>, but if deletion only
happens at program exit, it may be skipped completely.</p>
</li>
<li>
<p>Salvador Fandi駉 provided improvements to reduce the memory usage of <a href="../../lib/Pod/perlfunc.html#item_sort"><code>sort</code></a>
and to speed up some cases.</p>
</li>
<li>
<p>Jarkko Hietaniemi and Andy Lester worked to mark as much data as possible in
the C source files as <code>static</code>, to increase the proportion of the executable
file that the operating system can share between process, and thus reduce
real memory usage on multi-user systems.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="installation_and_configuration_improvements">Installation and Configuration Improvements</a></h1>
<p>Parallel makes should work properly now, although there may still be problems
if <code>make test</code> is instructed to run in parallel.</p>
<p>Building with Borland's compilers on Win32 should work more smoothly. In
particular Steve Hay has worked to side step many warnings emitted by their
compilers and at least one C compiler internal error.</p>
<p><code>Configure</code> will now detect <code>clearenv</code> and <code>unsetenv</code>, thanks to a patch
from Alan Burlison. It will also probe for <code>futimes</code> and whether <a href="../../lib/Pod/perlfunc.html#item_sprintf"><code>sprintf</code></a>
correctly returns the length of the formatted string, which will both be used
in perl 5.8.9.</p>
<p>There are improved hints for next-3.0, vmesa, IX, Darwin, Solaris, Linux,
DEC/OSF, HP-UX and MPE/iX</p>
<p>Perl extensions on Windows now can be statically built into the Perl DLL,
thanks to a work by Vadim Konovalov. (This improvement was actually in 5.8.7,
but was accidentally omitted from <a href="../../lib/Pod/perl587delta.html">the perl587delta manpage</a>).</p>
<p>
</p>
<hr />
<h1><a name="selected_bug_fixes">Selected Bug Fixes</a></h1>
<p>
</p>
<h2><a name="no_warnings__category__works_correctly_with_w">no warnings 'category' works correctly with -w</a></h2>
<p>Previously when running with warnings enabled globally via <a href="../../lib/Pod/perlrun.html#item__2dw"><code>-w</code></a>, selective
disabling of specific warning categories would actually turn off all warnings.
This is now fixed; now <code>no warnings 'io';</code> will only turn off warnings in the
<code>io</code> class. Previously it would erroneously turn off all warnings.</p>
<p>This bug fix may cause some programs to start correctly issuing warnings.</p>
<p>
</p>
<h2><a name="remove_overoptimisation">Remove over-optimisation</a></h2>
<p>Perl 5.8.4 introduced a change so that assignments of <a href="../../lib/Pod/perlfunc.html#item_undef"><code>undef</code></a> to a
scalar, or of an empty list to an array or a hash, were optimised away. As
this could cause problems when <a href="../../lib/Pod/perlfunc.html#item_goto"><code>goto</code></a> jumps were involved, this change
has been backed out.</p>
<p>
</p>
<h2><a name="sprintf___fixes"><a href="../../lib/Pod/perlfunc.html#item_sprintf"><code>sprintf()</code></a> fixes</a></h2>
<p>Using the <a href="../../lib/Pod/perlfunc.html#item_sprintf"><code>sprintf()</code></a> function with some formats could lead to a buffer
overflow in some specific cases. This has been fixed, along with several
other bugs, notably in bounds checking.</p>
<p>In related fixes, it was possible for badly written code that did not follow
the documentation of <code>Sys::Syslog</code> to have formatting vulnerabilities.
<code>Sys::Syslog</code> has been changed to protect people from poor quality third
party code.</p>
<p>
</p>
<h2><a name="debugger_and_unicode_slowdown">Debugger and Unicode slowdown</a></h2>
<p>It had been reported that running under perl's debugger when processing
Unicode data could cause unexpectedly large slowdowns. The most likely cause
of this was identified and fixed by Nicholas Clark.</p>
<p>
</p>
<h2><a name="smaller_fixes">Smaller fixes</a></h2>
<ul>
<li>
<p><code>FindBin</code> now works better with directories where access rights are more
restrictive than usual.</p>
</li>
<li>
<p>Several memory leaks in ithreads were closed. An improved implementation of
<code>threads::shared</code> is available on CPAN - this will be merged into 5.8.9 if
it proves stable.</p>
</li>
<li>
<p>Trailing spaces are now trimmed from <a href="../../lib/Pod/perlvar.html#item___"><code>$!</code></a> and <a href="../../lib/Pod/perlvar.html#item___e"><code>$^E</code></a>.</p>
</li>
<li>
<p>Operations that require perl to read a process' list of groups, such as reads
of <a href="../../lib/Pod/perlvar.html#item___"><code>$(</code></a> and <a href="../../lib/Pod/perlvar.html#item___"><code>$)</code></a>, now dynamically allocate memory rather than using a
fixed sized array. The fixed size array could cause C stack exhaustion on
systems configured to use large numbers of groups.</p>
</li>
<li>
<p><code>PerlIO::scalar</code> now works better with non-default <a href="../../lib/Pod/perlvar.html#item___"><code>$/</code></a> settings.</p>
</li>
<li>
<p>You can now use the <a href="../../lib/Pod/perlguts.html#item_x"><code>x</code></a> operator to repeat a <a href="../../lib/Pod/perlfunc.html#item_qw_"><code>qw//</code></a> list. This used
to raise a syntax error.</p>
</li>
<li>
<p>The debugger now traces correctly execution in eval(&quot;&quot;)uated code that
contains #line directives.</p>
</li>
<li>
<p>The value of the <a href="../../lib/Pod/perlfunc.html#item_open"><code>open</code></a> pragma is no longer ignored for three-argument
opens.</p>
</li>
<li>
<p>The optimisation of <code>for (reverse @a)</code> introduced in perl 5.8.6 could
misbehave when the array had undefined elements and was used in LVALUE
context. Dave Mitchell provided a fix.</p>
</li>
<li>
<p>Some case insensitive matches between UTF-8 encoded data and 8 bit regexps,
and vice versa, could give malformed character warnings. These have been
fixed by Dave Mitchell and Yves Orton.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_lcfirst"><code>lcfirst</code></a> and <a href="../../lib/Pod/perlfunc.html#item_ucfirst"><code>ucfirst</code></a> could corrupt the string for certain cases where
the length UTF-8 encoding of the string in lower case, upper case or title
case differed. This was fixed by Nicholas Clark.</p>
</li>
<li>
<p>Perl will now use the C library calls <code>unsetenv</code> and <code>clearenv</code> if present
to delete keys from <a href="../../lib/Pod/perlvar.html#item__env"><code>%ENV</code></a> and delete <a href="../../lib/Pod/perlvar.html#item__env"><code>%ENV</code></a> entirely, thanks to a patch
from Alan Burlison.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="new_or_changed_diagnostics">New or Changed Diagnostics</a></h1>
<p>
</p>
<h2><a name="attempt_to_set_length_of_freed_array">Attempt to set length of freed array</a></h2>
<p>This is a new warning, produced in situations such as this:</p>
<pre>
    <span class="variable">$r</span> <span class="operator">=</span> <span class="keyword">do</span> <span class="operator">{</span><span class="keyword">my</span> <span class="variable">@a</span><span class="operator">;</span> <span class="operator">\</span><span class="variable">$#a</span><span class="operator">};</span>
    <span class="variable">$$r</span> <span class="operator">=</span> <span class="number">503</span><span class="operator">;</span>
</pre>
<p>
</p>
<h2><a name="nonstring_passed_as_bitmask">Non-string passed as bitmask</a></h2>
<p>This is a new warning, produced when number has been passed as a argument to
select(), instead of a bitmask.</p>
<pre>
    <span class="comment"># Wrong, will now warn</span>
    <span class="variable">$rin</span> <span class="operator">=</span> <span class="keyword">fileno</span><span class="operator">(</span><span class="variable">STDIN</span><span class="operator">);</span>
    <span class="operator">(</span><span class="variable">$nfound</span><span class="operator">,</span><span class="variable">$timeleft</span><span class="operator">)</span> <span class="operator">=</span> <span class="keyword">select</span><span class="operator">(</span><span class="variable">$rout</span><span class="operator">=</span><span class="variable">$rin</span><span class="operator">,</span> <span class="keyword">undef</span><span class="operator">,</span> <span class="keyword">undef</span><span class="operator">,</span> <span class="variable">$timeout</span><span class="operator">);</span>
    
    <span class="comment"># Should be</span>
    <span class="variable">$rin</span> <span class="operator">=</span> <span class="string">''</span><span class="operator">;</span>
    <span class="keyword">vec</span><span class="operator">(</span><span class="variable">$rin</span><span class="operator">,</span><span class="keyword">fileno</span><span class="operator">(</span><span class="variable">STDIN</span><span class="operator">),</span><span class="number">1</span><span class="operator">)</span> <span class="operator">=</span> <span class="number">1</span><span class="operator">;</span>
    <span class="operator">(</span><span class="variable">$nfound</span><span class="operator">,</span><span class="variable">$timeleft</span><span class="operator">)</span> <span class="operator">=</span> <span class="keyword">select</span><span class="operator">(</span><span class="variable">$rout</span><span class="operator">=</span><span class="variable">$rin</span><span class="operator">,</span> <span class="keyword">undef</span><span class="operator">,</span> <span class="keyword">undef</span><span class="operator">,</span> <span class="variable">$timeout</span><span class="operator">);</span>
</pre>
<p>
</p>
<h2><a name="search_pattern_not_terminated_or_ternary_operator_parsed_as_search_pattern">Search pattern not terminated or ternary operator parsed as search pattern</a></h2>
<p>This syntax error indicates that the lexer couldn't find the final
delimiter of a <code>?PATTERN?</code> construct. Mentioning the ternary operator in
this error message makes it easier to diagnose syntax errors.</p>
<p>
</p>
<hr />
<h1><a name="changed_internals">Changed Internals</a></h1>
<p>There has been a fair amount of refactoring of the <code>C</code> source code, partly to
make it tidier and more maintainable. The resulting object code and the
<code>perl</code> binary may well be smaller than 5.8.7, in particular due to a change
contributed by Dave Mitchell which reworked the warnings code to be
significantly smaller. Apart from being smaller and possibly faster, there
should be no user-detectable changes.</p>
<p>Andy Lester supplied many improvements to determine which function
parameters and local variables could actually be declared <code>const</code> to the C
compiler. Steve Peters provided new <code>*_set</code> macros and reworked the core to
use these rather than assigning to macros in LVALUE context.</p>
<p>Dave Mitchell improved the lexer debugging output under <code>-DT</code></p>
<p>Nicholas Clark changed the string buffer allocation so that it is now rounded
up to the next multiple of 4 (or 8 on platforms with 64 bit pointers). This
should reduce the number of calls to <code>realloc</code> without actually using any
extra memory.</p>
<p>The <code>HV</code>'s array of <code>HE*</code>s is now allocated at the correct (minimal) size,
thanks to another change by Nicholas Clark. Compile with
<code>-DPERL_USE_LARGE_HV_ALLOC</code> to use the old, sloppier, default.</p>
<p>For XS or embedding debugging purposes, if perl is compiled with
<code>-DDEBUG_LEAKING_SCALARS_FORK_DUMP</code> in addition to
<code>-DDEBUG_LEAKING_SCALARS</code> then a child process is <a href="../../lib/Pod/perlfunc.html#item_fork"><code>fork</code></a>ed just before
global destruction, which is used to display the values of any scalars
found to have leaked at the end of global destruction. Without this, the
scalars have already been freed sufficiently at the point of detection that
it is impossible to produce any meaningful dump of their contents.  This
feature was implemented by the indefatigable Nicholas Clark, based on an idea
by Mike Giroux.</p>
<p>
</p>
<hr />
<h1><a name="platform_specific_problems">Platform Specific Problems</a></h1>
<p>The optimiser on HP-UX 11.23 (Itanium 2) is currently partly disabled (scaled
down to +O1) when using HP C-ANSI-C; the cause of problems at higher
optimisation levels is still unclear.</p>
<p>There are a handful of remaining test failures on VMS, mostly due to
test fixes and minor module tweaks with too many dependencies to
integrate into this release from the development stream, where they have
all been corrected.  The following is a list of expected failures with
the patch number of the fix where that is known:</p>
<pre>
    ext/Devel/PPPort/t/ppphtest.t  #26913
    ext/List/Util/t/p_tainted.t    #26912
    lib/ExtUtils/t/PL_FILES.t      #26813
    lib/ExtUtils/t/basic.t         #26813
    t/io/fs.t
    t/op/cmp.t</pre>
<p>
</p>
<hr />
<h1><a name="reporting_bugs">Reporting Bugs</a></h1>
<p>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 <a href="http://bugs.perl.org.">http://bugs.perl.org.</a>  There may also be
information at <a href="http://www.perl.org,">http://www.perl.org,</a> the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <strong>perlbug</strong>
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 <code>perl -V</code>, will be sent off to <a href="mailto:perlbug@perl.org">perlbug@perl.org</a> to be
analysed by the Perl porting team.  You can browse and search
the Perl 5 bugs at <a href="http://bugs.perl.org/">http://bugs.perl.org/</a></p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>The <em>Changes</em> file for exhaustive details on what changed.</p>
<p>The <em>INSTALL</em> file for how to build Perl.</p>
<p>The <em>README</em> file for general stuff.</p>
<p>The <em>Artistic</em> and <em>Copying</em> files for copyright information.</p>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?