perl570delta.html

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

HTML
827
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>perl570delta - what's new for perl v5.7.0</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>perl570delta - what's new for perl v5.7.0</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#security_vulnerability_closed">Security Vulnerability Closed</a></li>
	<li><a href="#incompatible_changes">Incompatible Changes</a></li>
	<li><a href="#core_enhancements">Core Enhancements</a></li>
	<li><a href="#modules_and_pragmata">Modules and Pragmata</a></li>
	<ul>

		<li><a href="#new_modules">New Modules</a></li>
		<li><a href="#updated_and_improved_modules_and_pragmata">Updated And Improved Modules and Pragmata</a></li>
	</ul>

	<li><a href="#utility_changes">Utility Changes</a></li>
	<li><a href="#new_documentation">New Documentation</a></li>
	<li><a href="#performance_enhancements">Performance Enhancements</a></li>
	<li><a href="#installation_and_configuration_improvements">Installation and Configuration Improvements</a></li>
	<ul>

		<li><a href="#generic_improvements">Generic Improvements</a></li>
	</ul>

	<li><a href="#selected_bug_fixes">Selected Bug Fixes</a></li>
	<ul>

		<li><a href="#platform_specific_changes_and_fixes">Platform Specific Changes and Fixes</a></li>
	</ul>

	<li><a href="#new_or_changed_diagnostics">New or Changed Diagnostics</a></li>
	<li><a href="#changed_internals">Changed Internals</a></li>
	<li><a href="#known_problems">Known Problems</a></li>
	<ul>

		<li><a href="#unicode_support_still_far_from_perfect">Unicode Support Still Far From Perfect</a></li>
		<li><a href="#ebcdic_still_a_lost_platform">EBCDIC Still A Lost Platform</a></li>
		<li><a href="#building_extensions_can_fail_because_of_largefiles">Building Extensions Can Fail Because Of Largefiles</a></li>
		<li><a href="#ftmpsecurity_tests_warn__system_possibly_insecure_">ftmp-security tests warn 'system possibly insecure'</a></li>
		<li><a href="#test_lib_posix_subtest_9_fails_in_lp64configured_hpux">Test lib/posix Subtest 9 Fails In LP64-Configured HP-UX</a></li>
		<li><a href="#long_doubles_still_don_t_work_in_solaris">Long Doubles Still Don't Work In Solaris</a></li>
		<li><a href="#linux_with_sfio_fails_op_misc_test_48">Linux With Sfio Fails op/misc Test 48</a></li>
		<li><a href="#storable_tests_fail_in_some_platforms">Storable tests fail in some platforms</a></li>
		<li><a href="#threads_are_still_experimental">Threads Are Still Experimental</a></li>
		<li><a href="#the_compiler_suite_is_still_experimental">The Compiler Suite Is Still Experimental</a></li>
	</ul>

	<li><a href="#reporting_bugs">Reporting Bugs</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
	<li><a href="#history">HISTORY</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>perl570delta - what's new for perl v5.7.0</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This document describes differences between the 5.6.0 release and
the 5.7.0 release.</p>
<p>
</p>
<hr />
<h1><a name="security_vulnerability_closed">Security Vulnerability Closed</a></h1>
<p>A potential security vulnerability in the optional suidperl component
of Perl has been identified.  suidperl is neither built nor installed
by default.  As of September the 2nd, 2000, the only known vulnerable
platform is Linux, most likely all Linux distributions.  CERT and
various vendors have been alerted about the vulnerability.</p>
<p>The problem was caused by Perl trying to report a suspected security
exploit attempt using an external program, /bin/mail.  On Linux
platforms the /bin/mail program had an undocumented feature which
when combined with suidperl gave access to a root shell, resulting in
a serious compromise instead of reporting the exploit attempt.  If you
don't have /bin/mail, or if you have 'safe setuid scripts', or if
suidperl is not installed, you are safe.</p>
<p>The exploit attempt reporting feature has been completely removed from
the Perl 5.7.0 release, so that particular vulnerability isn't there
anymore.  However, further security vulnerabilities are,
unfortunately, always possible.  The suidperl code is being reviewed
and if deemed too risky to continue to be supported, it may be
completely removed from future releases.  In any case, suidperl should
only be used by security experts who know exactly what they are doing
and why they are using suidperl instead of some other solution such as
sudo ( see <a href="http://www.courtesan.com/sudo/">http://www.courtesan.com/sudo/</a> ).</p>
<p>
</p>
<hr />
<h1><a name="incompatible_changes">Incompatible Changes</a></h1>
<ul>
<li>
<p>Arrays now always interpolate into double-quoted strings:
constructs like &quot;foo@bar&quot; now always assume <code>@bar</code> is an array,
whether or not the compiler has seen use of <code>@bar</code>.</p>
</li>
<li>
<p>The semantics of bless(REF, REF) were unclear and until someone proves
it to make some sense, it is forbidden.</p>
</li>
<li>
<p>A reference to a reference now stringify as &quot;REF(0x81485ec)&quot; instead
of &quot;SCALAR(0x81485ec)&quot; in order to be more consistent with the return
value of ref().</p>
</li>
<li>
<p>The very dusty examples in the eg/ directory have been removed.
Suggestions for new shiny examples welcome but the main issue is that
the examples need to be documented, tested and (most importantly)
maintained.</p>
</li>
<li>
<p>The obsolete chat2 library that should never have been allowed
to escape the laboratory has been decommissioned.</p>
</li>
<li>
<p>The unimplemented POSIX regex features [[.cc.]] and [[=c=]] are still
recognised but now cause fatal errors.  The previous behaviour of
ignoring them by default and warning if requested was unacceptable
since it, in a way, falsely promised that the features could be used.</p>
</li>
<li>
<p>The (bogus) escape sequences \8 and \9 now give an optional warning
(&quot;Unrecognized escape passed through&quot;).  There is no need to \-escape
any <code>\w</code> character.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_lstat"><code>lstat(FILEHANDLE)</code></a> now gives a warning because the operation makes no sense.
In future releases this may become a fatal error.</p>
</li>
<li>
<p>The long deprecated uppercase aliases for the string comparison
operators (EQ, NE, LT, LE, GE, GT) have now been removed.</p>
</li>
<li>
<p>The regular expression captured submatches ($1, $2, ...) are now
more consistently unset if the match fails, instead of leaving false
data lying around in them.</p>
</li>
<li>
<p>The tr///C and tr///U features have been removed and will not return;
the interface was a mistake.  Sorry about that.  For similar
functionality, see pack('U0', ...) and pack('C0', ...).</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="core_enhancements">Core Enhancements</a></h1>
<ul>
<li>
<p><code>perl -d:Module=arg,arg,arg</code> now works (previously one couldn't pass
in multiple arguments.)</p>
</li>
<li>
<p>my __PACKAGE__ $obj now works.</p>
</li>
<li>
<p><code>no Module;</code> now works even if there is no &quot;sub unimport&quot; in the Module.</p>
</li>
<li>
<p>The numerical comparison operators return <a href="../../lib/Pod/perlfunc.html#item_undef"><code>undef</code></a> if either operand
is a NaN.  Previously the behaviour was unspecified.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_pack"><code>pack('U0a*', ...)</code></a> can now be used to force a string to UTF-8.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_prototype"><code>prototype(\&amp;)</code></a> is now available.</p>
</li>
<li>
<p>There is now an UNTIE method.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="modules_and_pragmata">Modules and Pragmata</a></h1>
<p>
</p>
<h2><a name="new_modules">New Modules</a></h2>
<ul>
<li>
<p>File::Temp allows one to create temporary files and directories in an
easy, portable, and secure way.</p>
</li>
<li>
<p>Storable gives persistence to Perl data structures by allowing the
storage and retrieval of Perl data to and from files in a fast and
compact binary format.</p>
</li>
</ul>
<p>
</p>
<h2><a name="updated_and_improved_modules_and_pragmata">Updated And Improved Modules and Pragmata</a></h2>
<ul>
<li>
<p>The following independently supported modules have been updated to
newer versions from CPAN: CGI, CPAN, DB_File, File::Spec, Getopt::Long,
the podlators bundle, Pod::LaTeX, Pod::Parser, Term::ANSIColor, Test.</p>
</li>
<li>
<p>Bug fixes and minor enhancements have been applied to B::Deparse,
Data::Dumper, IO::Poll, IO::Socket::INET, Math::BigFloat,
Math::Complex, Math::Trig, Net::protoent, the re pragma, SelfLoader,
Sys::SysLog, Test::Harness, Text::Wrap, UNIVERSAL, and the warnings
pragma.</p>
</li>
<li>
<p>The attributes::reftype() now works on tied arguments.</p>
</li>
<li>
<p>AutoLoader can now be disabled with <code>no AutoLoader;</code>,</p>
</li>
<li>
<p>The English module can now be used without the infamous performance
hit by saying</p>
<pre>
        <span class="keyword">use</span> <span class="variable">English</span> <span class="string">'-no_performance_hit'</span><span class="operator">;</span>
</pre>
<p>(Assuming, of course, that one doesn't need the troublesome variables
<a href="../../lib/Pod/perlvar.html#item___"><code>$`</code></a>, <a href="../../lib/Pod/perlvar.html#item___"><code>$&amp;</code></a>, or <a href="../../lib/Pod/perlvar.html#item___"><code>$'</code></a>.)  Also, introduced <a href="../../lib/Pod/perlvar.html#item__last_match_start"><code>@LAST_MATCH_START</code></a> and
<a href="../../lib/Pod/perlvar.html#item__last_match_end"><code>@LAST_MATCH_END</code></a> English aliases for <a href="../../lib/Pod/perlvar.html#item__"><code>@-</code></a> and <a href="../../lib/Pod/perlvar.html#item___"><code>@+</code></a>.</p>
</li>
<li>
<p>File::Find now has pre- and post-processing callbacks.  It also
correctly changes directories when chasing symbolic links.  Callbacks
(naughtily) exiting with &quot;next;&quot; instead of &quot;return;&quot; now work.</p>
</li>
<li>
<p>File::Glob::glob() renamed to File::Glob::bsd_glob() to avoid
prototype mismatch with CORE::glob().</p>
</li>
<li>
<p>IPC::Open3 now allows the use of numeric file descriptors.</p>
</li>
<li>
<p>use lib now works identically to @INC.  Removing directories
with 'no lib' now works.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlvar.html#item__inc"><code>%INC</code></a> now localised in a Safe compartment so that use/require work.</p>
</li>
<li>
<p>The Shell module now has an OO interface.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="utility_changes">Utility Changes</a></h1>

⌨️ 快捷键说明

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