Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\pod\perl595delta.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>perl595delta - what is new for perl v5.9.5</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> perl595delta - what is new for perl v5.9.5</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#incompatible_changes">Incompatible Changes</a></li> <ul> <li><a href="#tainting_and_printf">Tainting and printf</a></li> <li><a href="#undef_and_signal_handlers">undef and signal handlers</a></li> <li><a href="#strictures_and_array_hash_dereferencing_in_defined__">strictures and array/hash dereferencing in <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#defined"><code>defined()</code></a></a></li> <li><a href="#_p____has_been_removed"><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#p"><code>(?p{})</code></a> has been removed</a></li> <li><a href="#pseudo_hashes_have_been_removed">Pseudo-hashes have been removed</a></li> <li><a href="#removal_of_the_bytecode_compiler_and_of_perlcc">Removal of the bytecode compiler and of perlcc</a></li> <li><a href="#removal_of_the_jpl">Removal of the JPL</a></li> <li><a href="#recursive_inheritance_detected_earlier">Recursive inheritance detected earlier</a></li> </ul> <li><a href="#core_enhancements">Core Enhancements</a></li> <ul> <li><a href="#regular_expressions">Regular expressions</a></li> <li><a href="#the___prototype">The <code>_</code> prototype</a></li> <li><a href="#unitcheck_blocks">UNITCHECK blocks</a></li> <li><a href="#readpipe___is_now_overridable"><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readpipe"><code>readpipe()</code></a> is now overridable</a></li> <li><a href="#default_argument_for_readline__">default argument for <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readline"><code>readline()</code></a></a></li> <li><a href="#ucd_5_0_0">UCD 5.0.0</a></li> <li><a href="#smart_match">Smart match</a></li> <li><a href="#implicit_loading_of_feature">Implicit loading of <code>feature</code></a></li> </ul> <li><a href="#modules_and_pragmas">Modules and Pragmas</a></li> <ul> <li><a href="#new_pragma__mro">New Pragma, <code>mro</code></a></li> <li><a href="#bignum__bigint__bigrat">bignum, bigint, bigrat</a></li> <li><a href="#math__bigint_math__bigfloat">Math::BigInt/Math::BigFloat</a></li> <li><a href="#new_core_modules">New Core Modules</a></li> <li><a href="#module_changes">Module changes</a></li> </ul> <li><a href="#utility_changes">Utility Changes</a></li> <ul> <li><a href="#cpanp"><code>cpanp</code></a></li> <li><a href="#cpan2dist"><code>cpan2dist</code></a></li> <li><a href="#pod2html"><code>pod2html</code></a></li> </ul> <li><a href="#documentation">Documentation</a></li> <ul> <li><a href="#new_manpage__perlunifaq">New manpage, perlunifaq</a></li> </ul> <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="#c___compatibility">C++ compatibility</a></li> <li><a href="#visual_c__">Visual C++</a></li> <li><a href="#static_build_on_win32">Static build on Win32</a></li> <li><a href="#win32_builds">win32 builds</a></li> <li><a href="#d_pseudofork_and_d_printf_format_null"><code>d_pseudofork</code> and <code>d_printf_format_null</code></a></li> <li><a href="#help">Help</a></li> <li><a href="#64bit_systems">64bit systems</a></li> <li><a href="#ports">Ports</a></li> </ul> <li><a href="#selected_bug_fixes">Selected Bug Fixes</a></li> <li><a href="#new_or_changed_diagnostics">New or Changed Diagnostics</a></li> <ul> <li><a href="#deprecations">Deprecations</a></li> </ul> <li><a href="#changed_internals">Changed Internals</a></li> <li><a href="#known_problems">Known Problems</a></li> <ul> <li><a href="#platform_specific_problems">Platform Specific Problems</a></li> </ul> <li><a href="#reporting_bugs">Reporting Bugs</a></li> <li><a href="#see_also">SEE ALSO</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>perl595delta - what is new for perl v5.9.5</p> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This document describes differences between the 5.9.4 and the 5.9.5 development releases. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perl590delta.html">the perl590delta manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perl591delta.html">the perl591delta manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perl592delta.html">the perl592delta manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perl593delta.html">the perl593delta manpage</a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perl594delta.html">the perl594delta manpage</a> for the differences between 5.8.0 and 5.9.4.</p> <p> </p> <hr /> <h1><a name="incompatible_changes">Incompatible Changes</a></h1> <p> </p> <h2><a name="tainting_and_printf">Tainting and printf</a></h2> <p>When perl is run under taint mode, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf()</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#sprintf"><code>sprintf()</code></a> will now reject any tainted format argument. (Rafael Garcia-Suarez)</p> <p> </p> <h2><a name="undef_and_signal_handlers">undef and signal handlers</a></h2> <p>Undefining or deleting a signal handler via <code>undef $SIG{FOO}</code> is now equivalent to setting it to <code>'DEFAULT'</code>. (Rafael)</p> <p> </p> <h2><a name="strictures_and_array_hash_dereferencing_in_defined__">strictures and array/hash dereferencing in <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#defined"><code>defined()</code></a></a></h2> <p><code>defined @$foo</code> and <code>defined %$bar</code> are now subject to <code>strict 'refs'</code> (that is, <code>$foo</code> and <code>$bar</code> shall be proper references there.) (Nicholas Clark)</p> <p>(However, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#defined"><code>defined(@foo)</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#defined"><code>defined(%bar)</code></a> are discouraged constructs anyway.)</p> <p> </p> <h2><a name="_p____has_been_removed"><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#p"><code>(?p{})</code></a> has been removed</a></h2> <p>The regular expression construct <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#p"><code>(?p{})</code></a>, which was deprecated in perl 5.8, has been removed. Use <code>(??{})</code> instead. (Rafael)</p> <p> </p> <h2><a name="pseudo_hashes_have_been_removed">Pseudo-hashes have been removed</a></h2> <p>Support for pseudo-hashes has been removed from Perl 5.9. (The <code>fields</code> pragma remains here, but uses an alternate implementation.)</p> <p> </p> <h2><a name="removal_of_the_bytecode_compiler_and_of_perlcc">Removal of the bytecode compiler and of perlcc</a></h2> <p><code>perlcc</code>, the byteloader and the supporting modules (B::C, B::CC, B::Bytecode, etc.) are no longer distributed with the perl sources. Those experimental tools have never worked reliably, and, due to the lack of volunteers to keep them in line with the perl interpreter developments, it was decided to remove them instead of shipping a broken version of those. The last version of those modules can be found with perl 5.9.4.</p> <p>However the B compiler framework stays supported in the perl core, as with the more useful modules it has permitted (among others, B::Deparse and B::Concise).</p> <p> </p> <h2><a name="removal_of_the_jpl">Removal of the JPL</a></h2> <p>The JPL (Java-Perl Linguo) has been removed from the perl sources tarball.</p> <p> </p> <h2><a name="recursive_inheritance_detected_earlier">Recursive inheritance detected earlier</a></h2> <p>Perl will now immediately throw an exception if you modify any package's <code>@ISA</code> in such a way that it would cause recursive inheritance.</p> <p>Previously, the exception would not occur until Perl attempted to make use of the recursive inheritance while resolving a method or doing a <code>$foo->isa($bar)</code> lookup.</p> <p> </p> <hr /> <h1><a name="core_enhancements">Core Enhancements</a></h1> <p> </p> <h2><a name="regular_expressions">Regular expressions</a></h2> <dl> <dt><strong><a name="recursive_patterns2" class="item">Recursive Patterns</a></strong> <dd> <p>It is now possible to write recursive patterns without using the <code>(??{})</code> construct. This new way is more efficient, and in many cases easier to read.</p> </dd> <dd> <p>Each capturing parenthesis can now be treated as an independent pattern that can be entered by using the <code>(?PARNO)</code> syntax (<code>PARNO</code> standing for "parenthesis number"). For example, the following pattern will match nested balanced angle brackets:</p> </dd> <dd> <pre> / ^ # start of line ( # start capture buffer 1 < # match an opening angle bracket (?: # match one of: (?> # don't backtrack over the inside of this group [^<>]+ # one or more non angle brackets ) # end non backtracking group | # ... or ... (?1) # recurse to bracket 1 and try it again )* # 0 or more times. > # match a closing angle bracket ) # end capture buffer one $ # end of line /x</pre> </dd> <dd> <p>Note, users experienced with PCRE will find that the Perl implementation of this feature differs from the PCRE one in that it is possible to backtrack into a recursed pattern, whereas in PCRE the recursion is atomic or "possessive" in nature. (Yves Orton)</p> </dd> </li> <dt><strong><a name="named_capture_buffers2" class="item">Named Capture Buffers</a></strong> <dd> <p>It is now possible to name capturing parenthesis in a pattern and refer to the captured contents by name. The naming syntax is <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#name"><code>(?<NAME>....)</code></a>. It's possible to backreference to a named buffer with the <code>\k<NAME></code> syntax. In code, the new magical hashes <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%+</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%-</code></a> can be used to access the contents of the capture buffers.</p> </dd> <dd> <p>Thus, to replace all doubled chars, one could write</p> </dd> <dd> <pre> s/(?<letter>.)\k<letter>/$+{letter}/g</pre> </dd> <dd> <p>Only buffers with defined contents will be "visible" in the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%+</code></a> hash, so it's possible to do something like</p> </dd> <dd> <pre> foreach my $name (keys %+) { print "content of buffer '$name' is $+{$name}\n"; }</pre> </dd> <dd> <p>The <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%-</code></a> hash is a bit more complete, since it will contain array refs holding values from all capture buffers similarly named, if there should be many of them.</p> </dd> <dd> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%+</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>%-</code></a> are implemented as tied hashes through the new module <code>Tie::Hash::NamedCapture</code>.</p> </dd> <dd> <p>Users exposed to the .NET regex engine will find that the perl implementation differs in that the numerical ordering of the buffers is sequential, and not "unnamed first, then named". Thus in the pattern</p> </dd> <dd> <pre> /(A)(?<B>B)(C)(?<D>D)/</pre> </dd> <dd> <p>$1 will be 'A', $2 will be 'B', $3 will be 'C' and $4 will be 'D' and not $1 is 'A', $2 is 'C' and $3 is 'B' and $4 is 'D' that a .NET programmer would expect. This is considered a feature. :-) (Yves Orton)</p> </dd> </li> <dt><strong><a name="possessive_quantifiers2" class="item">Possessive Quantifiers</a></strong> <dd> <p>Perl now supports the "possessive quantifier" syntax of the "atomic match" pattern. Basically a possessive quantifier matches as much as it can and never gives any back. Thus it can be used to control backtracking. The syntax is similar to non-greedy matching, except instead of using a '?' as the modifier the '+' is used. Thus <code>?+</code>, <code>*+</code>, <code>++</code>, <code>{min,max}+</code> are now legal quantifiers. (Yves Orton)</p> </dd> </li> <dt><strong><a name="backtracking_control_verbs2" class="item">Backtracking control verbs</a></strong> <dd> <p>The regex engine now supports a number of special-purpose backtrack control verbs: (*THEN), (*PRUNE), (*MARK), (*SKIP), (*COMMIT), (*FAIL) and (*ACCEPT). See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlre.html">the perlre manpage</a> for their descriptions. (Yves Orton)</p> </dd> </li> <dt><strong><a name="relative_backreferences2" class="item">Relative backreferences</a></strong> <dd> <p>A new syntax <code>\g{N}</code> or <code>\gN</code> where "N" is a decimal integer allows a safer form of back-reference notation as well as allowing relative backreferences. This should make it easier to generate and embed patterns that contain backreferences. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlre.html#capture_buffers">Capture buffers in the perlre manpage</a>. (Yves Orton)</p> </dd> </li> <dt><strong><a name="k_escape2" class="item"><code>\K</code> escape</a></strong> <dd> <p>The functionality of Jeff Pinyan's module Regexp::Keep has been added to the core. You can now use in regular expressions the special escape <code>\K</code> as a way to do something like floating length positive lookbehind. It is also useful in substitutions like:</p> </dd> <dd> <pre> s/(foo)bar/$1/g</pre> </dd> <dd> <p>that can now be converted to</p> </dd> <dd> <pre> s/foo\Kbar//g</pre> </dd> <dd> <p>which is much more efficient. (Yves Orton)</p> </dd> </li> <dt><strong><a name="vertical_and_horizontal_whitespace_and_linebreak2" class="item">Vertical and horizontal whitespace, and linebreak</a></strong> <dd> <p>Regular expressions now recognize the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#v"><code>\v</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#h"><code>\h</code></a> escapes, that match vertical and horizontal whitespace, respectively. <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#v"><code>\V</code></a> and <code>\H</code> logically match their complements.</p> </dd> <dd> <p><code>\R</code> matches a generic linebreak, that is, vertical whitespace, plus the multi-character sequence <code>"\x0D\x0A"</code>.</p> </dd> </li> </dl> <p> </p> <h2><a name="the___prototype">The <code>_</code> prototype</a></h2> <p>A new prototype character has been added. <code>_</code> is equivalent to <code>$</code> (it denotes a scalar), but defaults to <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>$_</code></a> if the corresponding argument isn't supplied. Due to the optional nature of the argument, you can only use it at the end of a prototype, or before a semicolon.</p> <p>This has a small incompatible consequence: the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#prototype"><code>prototype()</code></a> function has been adjusted to return <code>_</code> for some built-ins in appropriate cases (for example, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#prototype"><code>prototype('CORE::rmdir')</code></a>). (Rafael)</p> <p> </p> <h2><a name="unitcheck_blocks">UNITCHECK blocks</a></h2> <p><code>UNITCHECK</code>, a new special code block has been introduced, in addition to <code>BEGIN</code>, <code>CHECK</code>, <code>INIT</code> and <code>END</code>.</p> <p><code>CHECK</code> and <code>INIT</code> blocks, while useful for some specialized purposes, are always executed at the transition between the compilation and the execution of the main program, and thus are useless whenever code is loaded at runtime. On the other hand, <code>UNITCHECK</code> blocks are executed just after the unit which defined them has been compiled. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlmod.html">the perlmod manpage</a> for more information. (Alex Gough)</p> <p> </p> <h2><a name="readpipe___is_now_overridable"><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readpipe"><code>readpipe()</code></a> is now overridable</a></h2> <p>The built-in function <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readpipe"><code>readpipe()</code></a> is now overridable. Overriding it permits also to override its operator counterpart, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlop.html#qx_"><code>qx//</code></a> (a.k.a. <code>``</code>). Moreover, it now defaults to <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__"><code>$_</code></a> if no argument is provided. (Rafael)</p> <p> </p> <h2><a name="default_argument_for_readline__">default argument for <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readline"><code>readline()</code></a></a></h2> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#readline"><code>readline()</code></a> now defaults to <code>*ARGV</code> if no argument is provided. (Rafael)</p> <p> </p> <h2><a name="ucd_5_0_0">UCD 5.0.0</a></h2> <p>The copy of the Unicode Character Database included in Perl 5.9 has been updated to version 5.0.0.</p> <p> </p> <h2><a name="smart_match">Smart match</a></h2> <p>The smart match operator (<code>~~</code>) is now available by default (you don't need to enable it with <code>use feature</code> any longer). (Michael G Schwern)</p> <p> </p> <h2><a name="implicit_loading_of_feature">Implicit loading of <code>feature</code></a></h2> <p>The <code>feature</code> pragma is now implicitly loaded when you require a minimal perl version (with the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#use"><code>use VERSION</code></a> construct) greater than, or equal to, 5.9.5.</p> <p> </p> <hr /> <h1><a name="modules_and_pragmas">Modules and Pragmas</a></h1> <p> </p> <h2><a name="new_pragma__mro">New Pragma, <code>mro</code></a></h2> <p>A new pragma, <code>mro</code> (for Method Resolution Order) has been added. It permits to switch, on a per-class basis, the algorithm that perl uses to find inherited methods in case of a multiple inheritance hierarchy. The default MRO hasn't changed (DFS, for Depth First Search). Another MRO is available: the C3 algorithm. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/mro.html">the mro manpage</a> for more information. (Brandon Black)</p> <p>Note that, due to changes in the implementation of class hierarchy search, code that used to undef the <code>*ISA</code> glob will most probably break. Anyway, undef'ing <code>*ISA</code> had the side-effect of removing the magic on the @ISA array and should not have been done in the first place.</p> <p> </p> <h2><a name="bignum__bigint__bigrat">bignum, bigint, bigrat</a></h2> <p>The three numeric pragmas <code>bignum</code>, <code>bigint</code> and <code>bigrat</code> are now lexically scoped. (Tels)</p> <p> </p> <h2><a name="math__bigint_math__bigfloat">Math::BigInt/Math::BigFloat</a></h2> <p>Many bugs have been fixed; noteworthy are comparisons with NaN, which no longer warn about undef values.</p> <p>The following things are new:</p> <dl> <dt><strong><a name="config" class="item"><code>config()</code></a></strong> <dd> <p>The <a href="#config"><code>config()</code></a> method now also supports the calling-style <a href="#config"><code>config('lib')</code></a> in addition to <a href="#config"><code>config()->{'lib'}</code></a>.</p> </dd> </li> <dt><strong><a name="import" class="item"><code>import()</code></a></strong> <dd> <p>Upon import, using <code>lib => 'Foo'</code> now warns if the low-level library cannot be found. To suppress the warning, you can use <code>try => 'Foo'</code> instead. To convert the warning into a die, use <code>only => 'Foo'</code> instead.</p> </dd> </li> <dt><strong><a name="roundmode_common" class="item">roundmode common</a></strong> <dd> <p>A rounding mode of <code>common</code> is now supported.</p> </dd> </li> </dl> <p>Also, support for the following methods has been added:</p> <dl> <dt><strong><a name="bpi" class="item"><code>bpi()</code>, <code>bcos()</code>, <code>bsin()</code>, <code>batan()</code>, batan2()</a></strong> <dt><strong><a name="bmuladd" class="item"><code>bmuladd()</code></a></strong> <dt><strong><a name="bexp" class="item"><code>bexp()</code>, <code>bnok()</code></a></strong> <dt><strong><a name="from_hex" class="item"><code>from_hex()</code>, <code>from_oct()</code>, and <code>from_bin()</code></a></strong> <dt><strong><a name="as_oct" class="item"><code>as_oct()</code></a></strong> </dl> <p>In addition, the default math-backend (Calc (Perl) and FastCalc (XS)) now support storing numbers in parts with 9 digits instead of 7 on Perls with either 64bit integer or long double support. This means math operations scale better and are thus faster for really big numbers.</p> <p> </p> <h2><a name="new_core_modules">New Core Modules</a></h2> <ul> <li> <p><code>Locale::Maketext::Simple</code>, needed by CPANPLUS, is a simple wrapper around <code>Locale::Maketext::Lexicon</code>. Note that <code>Locale::Maketext::Lexicon</code> isn't included in the perl core; the behaviour of <code>Locale::Maketext::Simple</code> gracefully degrades when the later isn't present.</p> </li> <li> <p><code>Params::Check</code> implements a generic input parsing/checking mechanism. It is used by CPANPLUS.</p> </li> <li> <p><code>Term::UI</code> simplifies the task to ask questions at a terminal prompt.</p> </li> <li> <p><code>Object::Accessor</code> provides an interface to create per-object accessors.</p> </li> <li> <p><code>Module::Pluggable</code> is a simple framework to create modules that accept pluggable sub-modules.</p> </li> <li> <p><code>Module::Load::Conditional</code> provides simple ways to query and possibly load installed modules.</p> </li> <li> <p><code>Time::Piece</code> provides an object oriented interface to time functions, overriding the built-ins <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#localtime"><code>localtime()</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#gmtime"><code>gmtime()</code></a>.</p> </li> <li> <p><code>IPC::Cmd</code> helps to find and run external commands, possibly interactively.</p> </li> <li> <p><code>File::Fetch</code> provide a simple generic file fetching mechanism.</p> </li> <li> <p><code>Log::Message</code> and <code>Log::Message::Simple</code> are used by the log facility of <code>CPANPLUS</code>.</p> </li> <li> <p><code>Archive::Extract</code> is a generic archive extraction mechanism for <em class="file">.tar</em> (plain, gziped or bzipped) or <em class="file">.zip</em> files.</p> </li> <li> <p><code>CPANPLUS</code> provides an API and a command-line tool to access the CPAN mirrors.</p> </li> </ul> <p> </p> <h2><a name="module_changes">Module changes</a></h2> <dl> <dt><strong><a name="assertions" class="item"><code>assertions</code></a></strong> <dd> <p>The <a href="#assertions"><code>assertions</code></a> pragma, its submodules <code>assertions::activate</code> and <code>assertions::compat</code> and the <strong>-A</strong> command-line switch have been removed. The interface was not judged mature enough for inclusion in a stable release.</p> </dd> </li> <dt><strong><a name="base" class="item"><code>base</code></a></strong> <dd> <p>The <a href="#base"><code>base</code></a> pragma now warns if a class tries to inherit from itself. (Curtis "Ovid" Poe)</p> </dd> </li> <dt><strong><a name="strict_and_warnings2" class="item"><code>strict</code> and <a href="#warnings"><code>warnings</code></a></a></strong> <dd> <p><code>strict</code> and <a href="#warnings"><code>warnings</code></a> will now complain loudly if they are loaded via incorrect casing (as in <code>use Strict;</code>). (Johan Vromans)</p> </dd> </li> <dt><strong><a name="warnings" class="item"><code>warnings</code></a></strong> <dd> <p>The <a href="#warnings"><code>warnings</code></a> pragma doesn't load <code>Carp</code> anymore. That means that code that used <code>Carp</code> routines without having loaded it at compile time might need to be adjusted; typically, the following (faulty) code won't work anymore, and will require parentheses to be added after the function name:</p> </dd> <dd> <pre> use warnings; require Carp; Carp::confess "argh";</pre> </dd> </li> <dt><strong><a name="less" class="item"><code>less</code></a></strong> <dd> <p><a href="#less"><code>less</code></a> now does something useful (or at least it tries to). In fact, it has been turned into a lexical pragma. So, in your modules, you can now test whether your users have requested to use less CPU, or less memory, less magic, or maybe even less fat. See <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/less.html">the less manpage</a> for more. (Joshua ben Jore)</p> </dd> </li> <dt><strong><a name="attribute_handlers3" class="item"><a href="#attribute_handlers"><code>Attribute::Handlers</code></a></a></strong> <dd> <p><a href="#attribute_handlers"><code>Attribute::Handlers</code></a> can now report the caller's file and line number. (David Feldman)</p> </dd> </li> <dt><strong><a name="b_lint2" class="item"><a href="#b_lint"><code>B::Lint</code></a></a></strong> <dd> <p><a href="#b_lint"><code>B::Lint</code></a> is now based on <code>Module::Pluggable</code>, and so can be extended with plugins. (Joshua ben Jore)</p> </dd> </li> <dt><strong><a name="b6" class="item"><a href="#b"><code>B</code></a></a></strong> <dd> <p>It's now possible to access the lexical pragma hints (<a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlvar.html#__h"><code>%^H</code></a>) by using the method B::COP::hints_hash(). It returns a <code>B::RHE</code> object, which in turn can be used to get a hash reference via the method B::RHE::HASH(). (Joshua ben Jore)</p> </dd> </li> <dt><strong><a name="thread3" class="item"><a href="#thread"><code>Thread</code></a></a></strong> <dd> <p>As the old 5005thread threading model has been removed, in favor of the ithreads scheme, the <a href="#thread"><code>Thread</code></a> module is now a compatibility wrapper, to be used in old code only. It has been removed from the default list of dynamic extensions.</p> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="utility_changes">Utility Changes</a></h1> <p> </p> <h2><a name="cpanp"><code>cpanp</code></a></h2> <p><code>cpanp</code>, the CPANPLUS shell, has been added. (<code>cpanp-run-perl</code>, an helper for CPANPLUS operation, has been added too, but isn't intended for direct use).</p> <p> </p> <h2><a name="cpan2dist"><code>cpan2dist</code></a></h2> <p><code>cpan2dist</code> is a new utility, that comes with CPANPLUS. It's a tool to create distributions (or packages) from CPAN modules.</p> <p> </p> <h2><a name="pod2html"><code>pod2html</code></a></h2> <p>The output of <code>pod2html</code> has been enhanced to be more customizable via CSS. Some formatting problems were also corrected. (Jari Aalto)</p> <p> </p> <hr /> <h1><a name="documentation">Documentation</a></h1> <p> </p> <h2><a name="new_manpage__perlunifaq">New manpage, perlunifaq</a></h2> <p>A new manual page, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlunifaq.html">the perlunifaq manpage</a> (the Perl Unicode FAQ), has been added (Juerd Waalboer).</p> <p> </p> <hr /> <h1><a name="performance_enhancements">Performance Enhancements</a></h1> <p> </p> <hr /> <h1><a name="installation_and_configuration_improvements">Installation and Configuration Improvements</a></h1> <p> </p> <h2><a name="c___compatibility">C++ compatibility</a></h2> <p>Efforts have been made to make perl and the core XS modules compilable with various C++ compilers (although the situation is not perfect with some of the compilers on some of the platforms tested.)</p> <p> </p> <h2><a name="visual_c__">Visual C++</a></h2> <p>Perl now can be compiled with Microsoft Visual C++ 2005.</p> <p> </p> <h2><a name="static_build_on_win32">Static build on Win32</a></h2> <p>It's now possible to build a <code>perl-static.exe</code> that doesn't depend on <code>perl59.dll</code> on Win32. See the Win32 makefiles for details. (Vadim Konovalov)</p> <p> </p> <h2><a name="win32_builds">win32 builds</a></h2> <p>All win32 builds (MS-Win, WinCE) have been merged and cleaned up.</p> <p> </p> <h2><a name="d_pseudofork_and_d_printf_format_null"><code>d_pseudofork</code> and <code>d_printf_format_null</code></a></h2> <p>A new configuration variable, available as <code>$Config{d_pseudofork}</code> in the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Config.html">the Config manpage</a> module, has been added, to distinguish real <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#fork"><code>fork()</code></a> support from fake pseudofork used on Windows platforms.</p> <p>A new configuration variable, <code>d_printf_format_null</code>, has been added, to see if printf-like formats are allowed to be NULL.</p> <p> </p> <h2><a name="help">Help</a></h2> <p><code>Configure -h</code> has been extended with the most used option.</p> <p>Much less 'Whoa there' messages.</p> <p> </p> <h2><a name="64bit_systems">64bit systems</a></h2> <p>Better detection of 64bit(only) systems, and setting all the (library) paths accordingly.</p> <p> </p> <h2><a name="ports">Ports</a></h2> <p>Perl has been reported to work on MidnightBSD.</p> <p>Support for Cray XT4 Catamount/Qk has been added.</p> <p>Vendor patches have been merged for RedHat and GenToo.</p> <p> </p> <hr /> <h1><a name="selected_bug_fixes">Selected Bug Fixes</a></h1> <p>PerlIO::scalar will now prevent writing to read-only scalars. Moreover, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#seek"><code>seek()</code></a> is now supported with PerlIO::scalar-based filehandles, the underlying string being zero-filled as needed. (Rafael, Jarkko Hietaniemi)</p> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#study"><code>study()</code></a> never worked for UTF-8 strings, but could lead to false results. It's now a no-op on UTF-8 data. (Yves Orton)</p> <p>The signals SIGILL, SIGBUS and SIGSEGV are now always delivered in an "unsafe" manner (contrary to other signals, that are deferred until the perl interpreter reaches a reasonably stable state; see <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlipc.html#deferred_signals__safe_signals_">Deferred Signals (Safe Signals) in the perlipc manpage</a>). (Rafael)</p> <p>When a module or a file is loaded through an @INC-hook, and when this hook has set a filename entry in %INC, __FILE__ is now set for this module accordingly to the contents of that %INC entry. (Rafael)</p> <p>The <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#w"><code>-w</code></a> and <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#t"><code>-t</code></a> switches can now be used together without messing up what categories of warnings are activated or not. (Rafael)</p> <p>Duping a filehandle which has the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlrun.html#utf8"><code>:utf8</code></a> PerlIO layer set will now properly carry that layer on the duped filehandle. (Rafael)</p> <p>Localizing an hash element whose key was given as a variable didn't work correctly if the variable was changed while the <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#local"><code>local()</code></a> was in effect (as in <code>local $h{$x}; ++$x</code>). (Bo Lindbergh)</p> <p> </p> <hr /> <h1><a name="new_or_changed_diagnostics">New or Changed Diagnostics</a></h1> <p> </p> <h2><a name="deprecations">Deprecations</a></h2> <p>Two deprecation warnings have been added: (Rafael)</p> <pre> Opening dirhandle %s also as a file Opening filehandle %s also as a directory</pre> <p> </p> <hr /> <h1><a name="changed_internals">Changed Internals</a></h1> <p>The anonymous hash and array constructors now take 1 op in the optree instead of 3, now that pp_anonhash and pp_anonlist return a reference to an hash/array when the op is flagged with OPf_SPECIAL (Nicholas Clark).</p> <p> </p> <hr /> <h1><a name="known_problems">Known Problems</a></h1> <p> </p> <h2><a name="platform_specific_problems">Platform Specific Problems</a></h2> <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://rt.perl.org/rt3/">http://rt.perl.org/rt3/</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.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p>The <em class="file">Changes</em> file for exhaustive details on what changed.</p> <p>The <em class="file">INSTALL</em> file for how to build Perl.</p> <p>The <em class="file">README</em> file for general stuff.</p> <p>The <em class="file">Artistic</em> and <em class="file">Copying</em> files for copyright information.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> perl595delta - what is new for perl v5.9.5</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de