perl571delta.html
来自「perl教程」· HTML 代码 · 共 1,096 行 · 第 1/4 页
HTML
1,096 行
using PerlIO.</p>
</li>
<li>
<p>POSIX::sigaction() is now much more flexible and robust.
You can now install coderef handlers, 'DEFAULT', and 'IGNORE'
handlers, installing new handlers was not atomic.</p>
</li>
<li>
<p>The Test module has been significantly enhanced. Its use is
greatly recommended for module writers.</p>
</li>
<li>
<p>The utf8:: name space (as in the pragma) provides various
Perl-callable functions to provide low level access to Perl's
internal Unicode representation. At the moment only <a href="../../lib/Pod/perlfunc.html#item_length"><code>length()</code></a>
has been implemented.</p>
</li>
</ul>
<p>The following modules have been upgraded from the versions at CPAN:
CPAN, CGI, DB_File, File::Temp, Getopt::Long, Pod::Man, Pod::Text,
Storable, Text-Tabs+Wrap.</p>
<p>
</p>
<hr />
<h1><a name="performance_enhancements">Performance Enhancements</a></h1>
<ul>
<li>
<p>Hashes now use Bob Jenkins "One-at-a-Time" hashing key algorithm
( <a href="http://burtleburtle.net/bob/hash/doobs.html">http://burtleburtle.net/bob/hash/doobs.html</a> ). This algorithm is
reasonably fast while producing a much better spread of values than
the old hashing algorithm (originally by Chris Torek, later tweaked by
Ilya Zakharevich). Hash values output from the algorithm on a hash of
all 3-char printable ASCII keys comes much closer to passing the
DIEHARD random number generation tests. According to perlbench, this
change has not affected the overall speed of Perl.</p>
</li>
<li>
<p><a href="../../lib/Pod/perlfunc.html#item_unshift"><code>unshift()</code></a> should now be noticeably faster.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="utility_changes">Utility Changes</a></h1>
<ul>
<li>
<p>h2xs now produces template README.</p>
</li>
<li>
<p>s2p has been completely rewritten in Perl. (It is in fact a full
implementation of sed in Perl.)</p>
</li>
<li>
<p>xsubpp now supports OUT keyword.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><a name="new_documentation">New Documentation</a></h1>
<p>
</p>
<h2><a name="perlclib">perlclib</a></h2>
<p>Internal replacements for standard C library functions.
(Interesting only for extension writers and Perl core hackers.)</p>
<p>
</p>
<h2><a name="perliol">perliol</a></h2>
<p>Internals of PerlIO with layers.</p>
<p>
</p>
<h2><a name="readme_aix">README.aix</a></h2>
<p>Documentation on compiling Perl on AIX has been added. AIX has
several different C compilers and getting the right patch level
is essential. On install README.aix will be installed as <a href="../../lib/Pod/perlaix.html">the perlaix manpage</a>.</p>
<p>
</p>
<h2><a name="readme_bs2000">README.bs2000</a></h2>
<p>Documentation on compiling Perl on the POSIX-BC platform (an EBCDIC
mainframe environment) has been added.</p>
<p>This was formerly known as README.posix-bc but the name was considered
to be too confusing (it has nothing to do with the POSIX module or the
POSIX standard). On install README.bs2000 will be installed as <a href="../../lib/Pod/perlbs2000.html">the perlbs2000 manpage</a>.</p>
<p>
</p>
<h2><a name="readme_macos">README.macos</a></h2>
<p>In perl 5.7.1 (and in the 5.6.1) the MacPerl sources have been
synchronised with the standard Perl sources. To compile MacPerl
some additional steps are required, and this file documents those
steps. On install README.macos will be installed as <a href="../../lib/Pod/perlmacos.html">the perlmacos manpage</a>.</p>
<p>
</p>
<h2><a name="readme_mpeix">README.mpeix</a></h2>
<p>The README.mpeix has been podified, which means that this information
about compiling and using Perl on the MPE/iX miniframe platform will
be installed as <a href="../../lib/Pod/perlmpeix.html">the perlmpeix manpage</a>.</p>
<p>
</p>
<h2><a name="readme_solaris">README.solaris</a></h2>
<p>README.solaris has been created and Solaris wisdom from elsewhere
in the Perl documentation has been collected there. On install
README.solaris will be installed as <a href="../../lib/Pod/perlsolaris.html">the perlsolaris manpage</a>.</p>
<p>
</p>
<h2><a name="readme_vos">README.vos</a></h2>
<p>The README.vos has been podified, which means that this information
about compiling and using Perl on the Stratus VOS miniframe platform
will be installed as <a href="../../lib/Pod/perlvos.html">the perlvos manpage</a>.</p>
<p>
</p>
<h2><a name="porting_repository_pod">Porting/repository.pod</a></h2>
<p>Documentation on how to use the Perl source repository has been added.</p>
<p>
</p>
<hr />
<h1><a name="installation_and_configuration_improvements">Installation and Configuration Improvements</a></h1>
<ul>
<li>
<p>Because PerlIO is now the default on most platforms, "-perlio" doesn't
get appended to the $Config{archname} (also known as $^O) anymore.
Instead, if you explicitly choose not to use perlio (Configure command
line option -Uuseperlio), you will get "-stdio" appended.</p>
</li>
<li>
<p>Another change related to the architecture name is that "-64all"
(-Duse64bitall, or "maximally 64-bit") is appended only if your
pointers are 64 bits wide. (To be exact, the use64bitall is ignored.)</p>
</li>
<li>
<p>APPLLIB_EXP, a less-know configuration-time definition, has been
documented. It can be used to prepend site-specific directories
to Perl's default search path (@INC), see INSTALL for information.</p>
</li>
<li>
<p>Building Berkeley DB3 for compatibility modes for DB, NDBM, and ODBM
has been documented in INSTALL.</p>
</li>
<li>
<p>If you are on IRIX or Tru64 platforms, new profiling/debugging options
have been added, see <a href="../../lib/Pod/perlhack.html">the perlhack manpage</a> for more information about pixie and
Third Degree.</p>
</li>
</ul>
<p>
</p>
<h2><a name="new_or_improved_platforms">New Or Improved Platforms</a></h2>
<p>For the list of platforms known to support Perl,
see <a href="../../lib/Pod/perlport.html#supported_platforms">Supported Platforms in the perlport manpage</a>.</p>
<ul>
<li>
<p>AIX dynamic loading should be now better supported.</p>
</li>
<li>
<p>After a long pause, AmigaOS has been verified to be happy with Perl.</p>
</li>
<li>
<p>EBCDIC platforms (z/OS, also known as OS/390, POSIX-BC, and VM/ESA)
have been regained. Many test suite tests still fail and the
co-existence of Unicode and EBCDIC isn't quite settled, but the
situation is much better than with Perl 5.6. See <a href="../../lib/Pod/perlos390.html">the perlos390 manpage</a>,
<a href="../../lib/Pod/perlbs2000.html">the perlbs2000 manpage</a> (for POSIX-BC), and <a href="../../lib/Pod/perlvmesa.html">the perlvmesa manpage</a> for more information.</p>
</li>
<li>
<p>Building perl with -Duseithreads or -Duse5005threads now works under
HP-UX 10.20 (previously it only worked under 10.30 or later). You will
need a thread library package installed. See README.hpux.</p>
</li>
<li>
<p>Mac OS Classic (MacPerl has of course been available since
perl 5.004 but now the source code bases of standard Perl
and MacPerl have been synchronised)</p>
</li>
<li>
<p>NCR MP-RAS is now supported.</p>
</li>
<li>
<p>NonStop-UX is now supported.</p>
</li>
<li>
<p>Amdahl UTS is now supported.</p>
</li>
<li>
<p>z/OS (formerly known as OS/390, formerly known as MVS OE) has now
support for dynamic loading. This is not selected by default,
however, you must specify -Dusedl in the arguments of Configure.</p>
</li>
</ul>
<p>
</p>
<h2><a name="generic_improvements">Generic Improvements</a></h2>
<ul>
<li>
<p>Configure no longer includes the DBM libraries (dbm, gdbm, db, ndbm)
when building the Perl binary. The only exception to this is SunOS 4.x,
which needs them.</p>
</li>
<li>
<p>Some new Configure symbols, useful for extension writers:</p>
<dl>
<dt><strong><a name="item_d_cmsghdr">d_cmsghdr</a></strong>
<dd>
<p>For struct cmsghdr.</p>
</dd>
</li>
<dt><strong><a name="item_d_fcntl_can_lock">d_fcntl_can_lock</a></strong>
<dd>
<p>Whether <a href="../../lib/Pod/perlfunc.html#item_fcntl"><code>fcntl()</code></a> can be used for file locking.</p>
</dd>
</li>
<dt><strong><a name="item_d_fsync">d_fsync</a></strong>
<dt><strong><a name="item_d_getitimer">d_getitimer</a></strong>
<dt><strong><a name="item_d_getpagsz">d_getpagsz</a></strong>
<dd>
<p>For getpagesize(), though you should prefer POSIX::sysconf(_SC_PAGE_SIZE))</p>
</dd>
</li>
<dt><strong><a name="item_d_msghdr_s">d_msghdr_s</a></strong>
<dd>
<p>For struct msghdr.</p>
</dd>
</li>
<dt><strong><a name="item_need_va_copy">need_va_copy</a></strong>
<dd>
<p>Whether one needs to use <code>Perl_va_copy()</code> to copy varargs.</p>
</dd>
</li>
<dt><strong><a name="item_d_readv">d_readv</a></strong>
<dt><strong><a name="item_d_recvmsg">d_recvmsg</a></strong>
<dt><strong><a name="item_d_sendmsg">d_sendmsg</a></strong>
<dt><strong><a name="item_sig_size">sig_size</a></strong>
<dd>
<p>The number of elements in an array needed to hold all the available signals.</p>
</dd>
</li>
<dt><strong><a name="item_d_sockatmark">d_sockatmark</a></strong>
<dt><strong><a name="item_d_strtoq">d_strtoq</a></strong>
<dt><strong><a name="item_d_u32align">d_u32align</a></strong>
<dd>
<p>Whether one needs to access character data aligned by U32 sized pointers.</p>
</dd>
</li>
<dt><strong><a name="item_d_ualarm">d_ualarm</a></strong>
<dt><strong><a name="item_d_usleep">d_usleep</a></strong>
</dl>
<li>
<p>Removed Configure symbols: the PDP-11 memory model settings: huge,
large, medium, models.</p>
</li>
<li>
<p>SOCKS support is now much more robust.</p>
</li>
<li>
<p>If your file system supports symbolic links you can build Perl outside
of the source directory by</p>
<pre>
mkdir perl/build/directory
cd perl/build/directory
sh /path/to/perl/source/Configure -Dmksymlinks ...</pre>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?