2010年7月23日

[installer 2445] perl-5.13.3

perl-5.13.3 出ています。

☆ perl-5.13.3
http://www.perl.com/CPAN/src/
http://www.cpan.org/src/perl-5.13.3.tar.gz

NAME
perldelta - what is new for perl v5.13.3


DESCRIPTION
This document describes differences between the 5.13.3 release and the
5.13.2 release.

If you are upgrading from an earlier release such as 5.13.1, first read
perl5132delta, which describes differences between 5.13.1 and 5.13.2.

Core Enhancements
\o{...} for octals
There is a new escape sequence, "\o", in double-quote-like contexts. It
must be followed by braces enclosing an octal number of at least one
digit. It interpolates as the character with an ordinal value equal to
the octal number. This construct allows large octal ordinals beyond the
current max of 0777 to be represented. It also allows you to specify a
character in octal which can safely be concatenated with other regex
snippets and which won't be confused with being a backreference to a
regex capture group. See "Capture groups" in perlre.

"\N{*name*}" and "charnames" enhancements
"\N{}" and "charnames::vianame" now know about the abbreviated character
names listed by Unicode, such as NBSP, SHY, LRO, ZWJ, etc., as well as
all the customary abbreviations for the C0 and C1 control characters
(such as ACK, BEL, CAN, etc.), as well as a few new variants in common
usage of some C1 full names.

In the past, it was ineffective to override one of Perl's abbreviations
with your own custom alias. Now it works.

You can also create a custom alias directly to the ordinal of a
character, known by "\N{...}", "charnames::vianame()", and
"charnames::viacode()". Previously, an alias had to be to an official
Unicode character name. This made it impossible to create an alias for a
code point that had no name, such as the ones reserved for private use.
So this change allows you to make more effective use of private use
characters. Only if there is no official name will
"charnames::viacode()" return your custom one.

See charnames for details on all these changes.

Uppercase X/B allowed in hexadecimal/binary literals
Literals may now use either upper case "0X..." or "0B..." prefixes, in
addition to the already supported "0x..." and "0b..." syntax. (RT#76296)
(a674e8d, 333f87f)

C, Ruby, Python and PHP already supported this syntax, and it makes Perl
more internally consistent. A round-trip with "eval sprintf "%#X", 0x10"
now returns 16 in addition to "eval sprintf "%#x", 0x10", which worked
before.

Incompatible Changes
\400 - \777
Use of "\400" - "\777" in regexes in certain circumstances has given
different, anomalous behavior than their use in all other
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 "\x{100}" -
"\x{1FF}", with no deprecation warning. Use of these values in the
command line option "-0" retains the current meaning to slurp input
files whole; previously, this was documented only for "-0777". It is
recommended, however, because of various ambiguities, to use the new
"\o{...}" construct to represent characters in octal.
(fa1639c..f6993e9).

Deprecations
Omitting a space between a regular expression and subsequent word
Omitting a space between a regex pattern or pattern modifiers and the
following word is deprecated. Deprecation for regular expression
*matches* was added in Perl 5.13.2. In this release, the deprecation is
extended to regular expression *substitutions*. For example,
"s/foo/bar/sand $bar" will still be parsed as "s/foo/bar/s and $bar" but
will issue a warning. (aa78b66)

Deprecation warning added for deprecated-in-core .pl libs
This is a mandatory warning, not obeying -X or lexical warning bits. The
warning is modelled on that supplied by deprecate.pm for
deprecated-in-core .pm libraries. It points to the specific CPAN
distribution that contains the .pl libraries. The CPAN version, of
course, does not generate the warning. (0111154)

Performance Enhancements
There are several small optimizations to improve CPU cache performance

Modules and Pragmata
Updated Modules and Pragmata
"autodie"
Upgraded from version 2.06_01 to 2.10.

"charnames"
Upgraded from version 1.08 to 1.10.

"viacode()" is now significantly faster. (f3227b7)

"lib"
Upgraded from version 0.62 to 0.63.

"threads"
Upgraded from version 1.77_02 to 1.77_03.

"threads::shared"
Upgraded from version 1.33_01 to 1.33_02.

"warnings"
Upgraded from version 1.09 to 1.10.

Calling "use warnings" without arguments is now significantly more
efficient. (8452af9)

"Archive::Extract"
Upgraded from version 0.38 to 0.42.

Updates since 0.38 include: a safe print method that guards
Archive::Extract from changes to $\; a fix to the tests when run in
core perl; support for TZ files; and a modification for the lzma
logic to favour IO::Uncompress::Unlzma (d7f8799)

"Archive::Tar"
Upgraded from version 1.54 to 1.64.

Important changes since 1.54 include: compatibility with busybox
implementations of tar; a fix so that "write()" and
"create_archive()" close only handles they opened; and a bug was
fixed regarding the exit code of extract_archive. (afabe0e)

"Attribute::Handlers"
Upgraded from version 0.87 to 0.88.

"Compress::Raw::Bzip2"
Upgraded from version 2.024 to 2.027.

"Compress::Raw::Zlib"
Upgraded from version 2.024 to 2.027_01.

"Compress::Zlib"
Upgraded from version 2.024 to 2.027.

"CPANPLUS"
Upgraded from version 0.90 to 0.9007.

Fixed the shell test to skip if test is not being run under a
terminal; resolved the issue where a prereq on Config would not be
recognised as a core module. (d4e225a)

"Digest::MD5"
Upgraded from version 2.39 to 2.40.

"Digest::SHA"
Upgraded from version 5.47 to 5.48.

"Exporter"
Upgraded from version 5.64_02 to 5.64_03.

Exporter no longer overrides $SIG{__WARN__} (RT #74472) (9b86bb5)

"ExtUtils::CBuilder"
Upgraded from version 0.27 to 0.2703.

"ExtUtils::Manifest"
Upgraded from version 1.57 to 1.58.

"ExtUtils::ParseXS"
Upgraded from version 2.2205 to 2.2206.

"File::Copy"
Upgraded from version 2.19 to 2.20.

Skips suid tests on a nosuid partition. These tests were being
skipped on OpenBSD, but nosuid partitions can exist on other systems
too. Now it just checks if it can create a suid directory, if not
the tests are skipped. Perl builds without errors in a nosuid /tmp
with this patch. (cae9400)

"I18N::LangTags"
Upgraded from version 0.35 to 0.35_01.

"IPC::Cmd"
Upgraded from version 0.58 to 0.60.

"IPC::SysV"
Upgraded from version 2.01 to 2.03.

"Locale::Maketext"
Upgraded from version 1.14 to 1.15.

Locale::Maketext guts have been merged back into the main module
(87d86da) and adds external cache support (ace47d6)

"Module::Build"
Upgraded from version 0.3603 to 0.3607.

"Module::CoreList"
Upgraded from version 2.34 to 2.36.

"Module::Load"
Upgraded from version 0.16 to 0.18.

"Term::ANSIColor"
Upgraded from version 2.02 to 3.00.

"Test::Harness"
Upgraded from version 3.17 to 3.21.

The core update from Test-Harness 3.17 to 3.21 fixed some things,
but also introduced a known problem with argument passing to
non-Perl tests.

"Time::HiRes"
Upgraded from version 1.9719 to 1.9721.

"Time::Piece"
Upgraded from version 1.15_01 to 1.20_01.

"Unicode::Collate"
Upgraded from version 0.52_01 to 0.53.

Includes Unicode Collation Algorithm 18 (74b94a7)

"Unicode::Normalize"
Upgraded from version 1.03 to 1.06.

Documentation
New Documentation
perl5121delta
The Perl 5.12.1 perldelta file was added from the Perl maintenance
branch

Changes to Existing Documentation
General changes
* Octal character escapes in documentation now prefer a three-digit
octal escape or the new "\o{...}" escape as they have more
consistent behavior in different contexts than other forms.
(ce7b6f0) (d8b950d) (e1f120a)

* Documentation now standardizes on the term 'capture group' over
'buffer' in regular expression documentation (c27a5cf)

perlfunc
* Added cautionary note about "no VERSION" (e0de7c2)

* Added additional notes regarding srand when forking (d460397)

perlop
* Improved documentation of unusual character escapes (4068718,
9644846)

* Clarified how hexadecimal escapes are interpreted, with particular
attention to the treatment of invalid characters (9644846)

perlrun
* Clarified the behavior of the "-0NNN" switch for -0400 or higher
(7ba31cb)

perlpolicy
* Added the policy on compatibility and deprecation along with
definitions of terms like "deprecation" (70e4a83)

perlre
* Added examples of the perils of not using \g{} when there are more
than nine back-references (9d86067)

perltie
* Updated some examples for modern Perl style (67d00dd)

Utility Changes
perldb
* The remote terminal works after forking and spawns new sessions -
one for each forked process (11653f7)

* Uses the less pager path from Config instead of searching for it
(bf320d6)

Configuration and Compilation
* Adjusted 'make test.valgrind' to account for cpan/dist/ext
separation (e07ce2e)

Testing
* t/harness clears PERL5LIB, PERLLIB, PERL5OPT as t/TEST does
(a2d3de1)

* Many common testing routines were refactored into t/lib/common.pl

* Several test files have been modernized to use Test::More

Platform Support
Discontinued Platforms
MacOS Classic
Support for MacOS Classic within ExtUtils::MakeMaker was removed
from Perl in December 2004. Vestigial MacOS Classic specific code
has now been removed from other core modules as well
(8f8c2a4..c457df0)

Platform-Specific Notes
Win32
t/io/openpid.t now uses the alarm() watchdog strategy for more
robustness (5732108)

Internal Changes
* Under some circumstances, the "CvGV()" field of a CV is now
reference counted. To ensure consistent behaviour, direct assignment
to it, for example "CvGV(cv) = gv" is now a compile-time error. A
new macro, "CvGV_set(cv,gv)" has been introduced to perform this
operation safely. Note that modification of this field is not part
of of the public API, regardless of this new macro. This change
caused some issues in modules that used the private "GvGV()" field.

* It is now possible for XS code to hook into Perl's lexical scope
mechanism at compile time, using the new "Perl_blockhook_register"
function. See "Compile-time scope hooks" in perlguts.

* Added "Perl_croak_no_modify()" to implement "Perl_croak("%s",
PL_no_modify)" (6ad8f25)

* Added prototypes for "tie()" and "untie()" to allow overloading
(RT#75902) (1db4d19)

* Adds "my_[l]stat_flags()" to replace "my_[l]stat()". "my_stat()" and
"my_lstat()" call get magic on the stack arg, so create "_flags()"
variants that allow us to control this. (0d7d409)

Selected Bug Fixes
* Some work has been done on the internal pointers that link between
symbol tables (stashes), typeglobs and subroutines. This has the
effect that various edge cases related to deleting stashes or stash
entries (e.g. <%FOO:: = ()>), and complex typeglob or code reference
aliasing, will no longer crash the interpreter.

* Fixed readline() when interrupted by signals so it no longer returns
the "same thing" as before or random memory

* Fixed a regression of kill() when a match variable is used for the
process ID to kill (RT#75812) (8af710e)

* Fixed several subtle bugs in sort() when @_ is accessed within a
subroutine used for sorting (RT#72334) (8f443ca)

* Catch yyparse() exceptions in "(?{...})" (RT#2353) (634d691)

* Avoid UTF-8 cache panics with offsets beyond a string (RT #75898)
(3e2d381)

* Fixed POSIX::strftime memory leak (RT#73520) (c4bc4aa)

* Doesn't set strict with "no VERSION" if "VERSION" is greater than
5.12 (da8fb5d)

* Avoids multiple FETCH/stringify on filetest ops (40c852d)

* Fixed issue with string "eval" not detecting taint of
overloaded/tied arguments (RT #75716) (895b760)

* Fix potential crashes of string "eval" when evaluating a object with
overloaded stringification by creating a stringified copy when
necessary (3e5c018)

* Fixed bug where overloaded stringification could remove tainting (RT
#75716) (a02ec77)

* Plugs more memory leaks in vms.c. (9e2bec0)

* Fix pthread include error for Time::Piece (e9f284c)

Known Problems
* Bug fixes involving CvGV reference counting break Sub::Name. A patch
has been sent upstream to the maintainer

* readline() returns an empty string instead of undef when it is
interrupted by a signal

* Test-Harness was updated from 3.17 to 3.21 for this release. A
rewrite in how it handles non-Perl tests (in 3.17_01) broke argument
passing to non-Perl tests with prove (RT #59186), and required that
non-Perl tests be run as "prove ./test.sh" instead of "prove
test.sh" These issues are being solved upstream, but didn't make it
into this release. They're expected to be fixed in time for perl
v5.13.4. (RT #59457)

* "version" now prevents object methods from being called as class
methods (d808b68)

Errata
* Retroactively added the Acknowledgements list to perl5132delta,
which was excluded in the original release (d1e2db0)

Acknowledgements
Perl 5.13.3 represents approximately one month of development since Perl
5.13.2, and contains 12,184 lines of changes across 575 files from 104
authors and committers.

Thank you to the following for contributing to this release:

Abhijit Menon-Sen, Abigail, Alex Davies, Alex Vandiver, Alexandr
Ciornii, Andreas J. Koenig, Andrew Rodland, Andy Dougherty, Aristotle
Pagaltzis, Arkturuz, Ben Morrow, Bo Borgerson, Bo Lindbergh, Brad
Gilbert, Bram, Brian Phillips, Chas. Owens, Chip Salzenberg, Chris
Williams, Craig A. Berry, Curtis Jewell, Dan Dascalescu, Daniel
Frederick Crisman, Dave Rolsky, David Caldwell, David E. Wheeler, David
Golden, David Leadbeater, David Mitchell, Dennis Kaarsemaker, Eric
Brine, Father Chrysostomos, Florian Ragwitz, Frank Wiegand, Gene
Sullivan, George Greer, Gerard Goossen, Gisle Aas, Goro Fuji, Graham
Barr, H.Merijn Brand, Harmen, Hugo van der Sanden, James E Keenan, James
Mastros, Jan Dubois, Jerry D. Hedden, Jesse Vincent, Jim Cromie, John
Peacock, Jos Boumans, Josh ben Jore, Karl Williamson, Kevin Ryde, Leon
Brocard, Lubomir Rintel, Maik Hentsche, Marcus Holland-Moritz, Matt
Johnson, Matt S Trout, Max Maischein, Michael Breen, Michael G Schwern,
Moritz Lenz, Nga Tang Chan, Nicholas Clark, Nick Cleaton, Nick Johnston,
Niko Tyni, Offer Kaye, Paul Marquess, Philip Hazel, Philippe Bruhat,
Rafael Garcia-Suarez, Rainer Tammer, Reini Urban, Ricardo Signes,
Richard Soderberg, Robin Barker, Ruslan Zakirov, Salvador Fandino,
Salvador Ortiz Garcia, Shlomi Fish, Sinan Unur, Sisyphus, Slaven Rezic,
Steffen Mueller, Stepan Kasal, Steve Hay, Steve Peters, Sullivan Beck,
Tim Bunce, Todd Rinaldo, Tom Christiansen, Tom Hukins, Tony Cook,
Vincent Pit, Yuval Kogman, Yves Orton, Zefram, brian d foy, chromatic,
kmx, テ?ar Arnfjテカrテー Bjarmason

Reporting Bugs
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 http://rt.perl.org/perlbug/ . There may also be information
at http://www.perl.org/ , the Perl Home Page.

If you believe you have an unreported bug, please run the perlbug
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
"perl -V", will be sent off to perlbug@xxxxx to be analysed by the
Perl porting team.

If the bug you are reporting has security implications, which make it
inappropriate to send to a publicly archived mailing list, then please
send it to perl5-security-report@xxxxx This points to a closed
subscription unarchived mailing list, which includes all the core
committers, who be able to help assess the impact of issues, figure out
a resolution, and help co-ordinate the release of patches to mitigate or
fix the problem across all platforms on which Perl is supported. Please
only use this address for security issues in the Perl core, not for
modules independently distributed on CPAN.

SEE ALSO
The Changes file for an explanation of how to view exhaustive details on
what changed.

The INSTALL file for how to build Perl.

The README file for general stuff.

The Artistic and Copying files for copyright information.


NAME
perl5132delta - what is new for perl v5.13.2

DESCRIPTION
This document describes differences between the 5.13.2 release and the
5.13.1 release.

If you are upgrading from an earlier release such as 5.10, first read
perl5120delta, which describes differences between 5.10 and 5.12.

Incompatible Changes
localised tied scalars are tied again.
The change in behaviour in 5.13.1 of localising tied scalar values has
been reverted to the existing 5.12.0 and earlier behaviour (the change
for arrays and hashes remains).

Naming fixes in Policy_sh.SH may invalidate Policy.sh
Several long-standing typos and naming confusions in Policy_sh.SH have
been fixed, standardizing on the variable names used in config.sh.

This will change the behavior of Policy.sh if you happen to have been
accidentally relying on the Policy.sh incorrect behavior. We'd
appreciate feedback from anyone using Policy.sh to be sure nothing is
broken by this change (c1bd23).

Stashes are now always defined
"defined %Foo::" now always returns true, even when no symbols have yet
been defined in that package.

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 to drastically reduce their memory usage
overhead.

Calling defined on a stash has been deprecated since 5.6.0, warned on
lexicals since 5.6.0, and has warned for stashes (and other package
variables) since 5.12.0. "defined %hash" has always exposed an
implementation detail - emptying a hash by deleting all entries from it
does not make "defined %hash" false, hence "defined %hash" is not valid
code to determine whether an arbitrary hash is empty. Instead, use the
behaviour that an empty <%hash> always returns false in a scalar
context.

Core Enhancements
Non-destructive substitution
The substitution operator now supports a "/r" option that copies the
input variable, carries out the substitution on the copy and returns the
result. The original remains unmodified.

my $old = 'cat';
my $new = $old =~ s/cat/dog/r;
# $old is 'cat' and $new is 'dog'

This is particularly useful with "map". See perlop for more examples
(4f4d75, 000c65).

package block syntax
A package declaration can now contain a code block, in which case the
declaration is in scope only inside that block. So "package Foo { ... }"
is precisely equivalent to "{ package Foo; ... }". It also works with a
version number in the declaration, as in "package Foo 1.2 { ... }". See
perlfunc (434da3..36f77d, 702646).

CLONE_PARAMS structure added to ease correct thread creation
Modules that create threads should now create "CLONE_PARAMS" structures
by calling the new function "Perl_clone_params_new()", and free them
with "Perl_clone_params_del()". This will ensure compatibility with any
future changes to the internals of the "CLONE_PARAMS" structure layout,
and that it is correctly allocated and initialised.

perl -h no longer recommends -w
perl -h used to mark the -w option as recommended; since this option is
far less useful than it used to be due to lexical 'use warnings' and
since perl -h is primary a list and brief explanation of the command
line switches, the recommendation has now been removed (60eaec).

Modules and Pragmata
Updated Modules
Locale-Codes 3.13
Locale::Country, Locale::Language and Locale::Currency were updated from
3.12 to 3.13 of the Locale-Codes distribution to include locale code
changes (e1137b).

Thread-Semaphore 2.11
Added new methods ->down_nb() and ->down_force() at the suggestion of
Rick Garlick.

Refactored methods to skip argument validation when no argument is
supplied.

(04febe, f06daa)

CPAN.pm 1.94_57
* release 1.94_57
* bugfix: treat modules correctly that are deprecated in perl 5.12.
* bugfix: RT #57482 and #57788 revealed that configure_requires
implicitly assumed build_requires instead of normal requires. (Reported
by Andrew Whatson and Father Chrysostomos respectively)
* testfix: solaris should run the tests without expect because (some?)
solaris have a broken expect
* testfix: run tests with cache_metadata off to prevent spill over
effects from previous test runs

(742adb)

Hash::Util warning fix
Hash::Util now enables "no warnings 'uninitialized'" to suppress
spurious warnings from undefined hash values (RT #74280).

B::Deparse now handles 'no VERSION'
The 'no 5.13.2' or similar form is now correctly handled by B::Deparse.

IO::Socket doc additions
getsockopt and setsockopt are now documented.

B::Concise updated for OPpDEREF
B::Concise marks rv2sv, rv2av and rv2hv ops with the new OPpDEREF flag
as "DREFed".

File::Copy doc clarification
An extra stanza was added explaining behaviours when the copy
destination already exists and is a directory.

Multiple POD spelling fixes.
Fixes were made to VMS::DCLsym, mro, Search::Dist, B::t::OptreeCheck and
UNIVERSAL.

Changes to Existing Documentation
Replace wrong tr/// table in perlebcdic.pod
perlebcdic.pod contains a helpful table to use in tr/// to convert
between EBCDIC and Latin1/ASCII. Unfortunately, the table was the
inverse of the one it describes, though the code that used the table
worked correctly for the specific example given.

The table has been changed to its inverse, and the sample code changed
to correspond, as this is easier for the person trying to follow the
instructions since deriving the old table is somewhat more complicated.

The table has also been changed to hex from octal, as that is more the
norm these days, and the recipes in the pod altered to print out leading
zeros to make all the values the same length, as the table that they can
generate has them (5f26d5).

Document tricks for user-defined casing
perlunicode.pod now contains an explanation of how to override, mangle
and otherwise tweak the way perl handles upper, lower and other case
conversions on unicode data, and how to provide scoped changes to alter
one's own code's behaviour without stomping on anybody else (71648f).

Document $# and $* as removed and clarify $#array usage
$# and $* were both disabled as of perl5 version 10; this release adds
documentation to that effect, a description of the results of continuing
to try and use them, and a note explaining that $# can also function as
a sigil in the $#array form (7f315d2).

INSTALL explicitly states the requirement for C89
This was already true but it's now Officially Stated For The Record
(51eec7).

No longer advertise Math::TrulyRandom
This module hasn't been updated since 1996 so we can't recommend it any
more (83918a).

perlfaq synchronised to upstream
The FAQ has been updated to commit
37550b8f812e591bcd0dd869d61677dac5bda92c from the perlfaq repository at
git@xxxxx:briandfoy/perlfaq.git

Performance Enhancements
Only allocate entries for @_ on demand - this not only saves memory per
subroutine defined but should hopefully improve COW behaviour (77bac2).

Multiple small improvements to threads
The internal structures of threading now make fewer API calls and fewer
allocations, resulting in noticeably smaller object code. Additionally,
many thread context checks have been deferred so that they're only done
when required (although this is only possible for non-debugging builds).

Size optimisations to SV and HV structures
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 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 is now calculated on demand, the
cases when this needs to be done should be few and far between (f4431c
.. fcd245).

The order of structure elements in SV bodies has changed. Effectively,
the NV slot has swapped location with STASH and MAGIC. As all access to
SV members is via macros, this should be completely transparent. This
change allows the space saving for PVHVs documented above, and may
reduce the memory allocation needed for PVIVs on some architectures.

Optimisation of regexp engine string comparison work
The foldEQ_utf8 API function for case-insensitive comparison of strings
(which is used heavily by the regexp engine) was substantially
refactored and optimised - and its documentation much improved as a free
bonus gift (8b3587, e6226b).

Memory consumption improvements to Exporter
The @EXPORT_FAIL AV is no longer created unless required, hence neither
is the typeglob backing it - this saves about 200 bytes per Exporter
using package that doesn't use this functionality.

Installation and Configuration Improvements
Compilation improvements
Fix CCINCDIR and CCLIBDIR for mingw64 cross compiler to correctly be
under $(CCHOME)\mingw\include and \lib rather than immediately below
$(CCHOME).

This means the 'incpath', 'libpth', 'ldflags', 'lddlflags' and
'ldflags_nolargefiles' values in Config.pm and Config_heavy.pl are now
set correctly (23ae7f).

Selected Bug Fixes
* Timely cleanup of SVs that are cloned into a new thread but then
discovered to be orphaned (i.e. their owners are -not- cloned) (e42956)
* Don't accidentally clone lexicals in scope within active stack frames
in the parent when creating a child thread (RT #73086) (05d04d).
* Avoid loading feature.pm when 'no 5.13.2;' or similar is encountered
(faee19).
* Trap invalid use of SvIVX on SVt_REGEXP when assertions are on
(e77da3)
* Don't stamp on $DB::single, $DB::trace and $DB::signal if they already
have values when $^P is assigned to (RT #72422) (4c0f30).
* chop now correctly handles perl's extended UTF-8 (RT #73246) (65ab92)
* Defer signal handling when shared SV locks are held to avoid deadlocks
(RT #74868) (65c742).
* glob() no longer crashes when %File::Glob:: is empty and
CORE::GLOBAL::glob isn't present (4984aa).
* perlbug now always permits the sender address to be changed before
sending - if you were having trouble sending bug reports before now,
this should fix it, we hope (e6eb90).
* Overloading now works properly in conjunction with tied variables.
What formerly happened was that most ops checked their arguments for
overloading *before* checking for magic, so for example an overloaded
object returned by a tied array access would usually be treated as not
overloaded (RT #57012) (6f1401, ed3b9b, 6a5f8c .. 24328f).
* Independently, a bug was fixed that prevented $tied->() from always
calling FETCH correctly (RT #8438) (7c7501)

Changed Internals
* The implementation of sv_dup_inc() has changed from a macro to a
function.
* The "find_rundefsvoffset" function has been deprecated. It appeared
that its design was insufficient to reliably get the lexical $_ at
run-time.

Use the new "find_rundefsv" function or the "UNDERBAR" macro
instead. They directly return the right SV representing $_, whether
it's lexical or dynamic (789bd8 .. 03d5bc).

* The following new functions or macros have been added to the public
API: "SvNV_nomg", "sv_2nv_flags", "find_rundefsv".

* The "UNDERBAR" macro now calls "find_rundefsv". "dUNDERBAR" is now a
noop but should still be used to ensure past and future
compatibility.

* The ibcmp_* functions have been renamed and are now called foldEQ,
foldEQ_locale and foldEQ_utf8 (e6226b).

Deprecations
The following items are now deprecated.

* Omitting a space between a regex pattern or pattern modifiers and
the following word is deprecated. For example, "m/foo/sand $bar"
will still be parsed as "m/foo/s and $bar" but will issue a warning.

Platform Specific Notes
Recent OpenBSDs now use perl's malloc
OpenBSD > 3.7 has a new malloc implementation which is mmap based and as
such can release memory back to the OS; however for perl using this
malloc causes a substantial slowdown so we now default to using perl's
malloc instead (RT #75742) (9b58b5).

Acknowledgements
Perl 5.13.2 represents thirty days of development since Perl 5.13.1 (and
two days of waiting around while the release manager remembered where he
left his brain) and contains 3685 lines of changes across 194 files from
30 authors and committers.

Thank you to the following for contributing to this release:

Abigail, Andreas J. Koenig, Chas. Owens, Chris 'BinGOs' Williams, Craig
A. Berry, David Caldwell, David Golden, David Mitchell, Father
Chrysostomos, George Greer, H.Merijn Brand, Jerry D. Hedden, Karl
Williamson, Maik Hentsche, Matt S Trout, Nicholas Clark, Rafael
Garcia-Suarez, Ricardo Signes, Salvador Fandino, Salvador Ortiz Garcia,
Shlomi Fish, Sinan Unur, Sisyphus, Slaven Rezic, Sullivan Beck, Tony
Cook, Vincent Pit, Zefram, brian d foy, テ?ar Arnfjテカrテー Bjarmason

Your humble release manager would like to specifically call out Karl
Williamson for making the tests a better place to be, and Shlomi Fish
for a passel of tiny incremental docfixes of the sort that don't get
made often enough.

Reporting Bugs
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 http://rt.perl.org/perlbug/ . There may also be information
at http://www.perl.org/ , the Perl Home Page.

If you believe you have an unreported bug, please run the perlbug
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
"perl -V", will be sent off to perlbug@xxxxx to be analysed by the
Perl porting team.

If the bug you are reporting has security implications, which make it
inappropriate to send to a publicly archived mailing list, then please
send it to perl5-security-report@xxxxx This points to a closed
subscription unarchived mailing list, which includes all the core
committers, who be able to help assess the impact of issues, figure out
a resolution, and help co-ordinate the release of patches to mitigate or
fix the problem across all platforms on which Perl is supported. Please
only use this address for security issues in the Perl core, not for
modules independently distributed on CPAN.

SEE ALSO
The Changes file for an explanation of how to view exhaustive details on
what changed.

The INSTALL file for how to build Perl.

The README file for general stuff.

The Artistic and Copying files for copyright information.


NAME
perl5131delta - what is new for perl v5.13.1

DESCRIPTION
This document describes differences between the 5.13.0 release and the
5.13.1 release.

If you are upgrading from an earlier release such as 5.10, first read
perl5120delta, which describes differences between 5.10 and 5.12.

Incompatible Changes
""\c*X*""
The backslash-c construct was designed as a way of specifying
non-printable characters, but there were no restrictions (on ASCII
platforms) on what the character following the "c" could be. Now, that
character must be one of the ASCII characters.

localised tied hashes, arrays and scalars are no longed tied
In the following:

tie @a, ...;
{
local @a;
# here, @a is a now a new, untied array
}
# here, @a refers again to the old, tied array

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 in behaviour of some code.

"given" return values
Starting from this release, "given" blocks returns the last evaluated
expression, or an empty list if the block was exited by "break". Thus
you can now write:

my $type = do {
given ($num) {
break when undef;
'integer' when /^[+-]?[0-9]+$/;
'float' when /^[+-]?[0-9]+(?:\.[0-9]+)?$/;
'unknown';
}
};

See "Return value" in perlsyn for details.

Core Enhancements
Exception Handling Reliability
Several changes have been made to the way "die", "warn", and $@ behave,
in order to make them more reliable and consistent.

When an exception is thrown inside an "eval", the exception is no longer
at risk of being clobbered by code running during unwinding (e.g.,
destructors). Previously, the exception was written into $@ early in the
throwing process, and would be overwritten if "eval" was used internally
in the destructor for an object that had to be freed while exiting from
the outer "eval". Now the exception is written into $@ last thing before
exiting the outer "eval", so the code running immediately thereafter can
rely on the value in $@ correctly corresponding to that "eval".

Likewise, a "local $@" inside an "eval" will no longer clobber any
exception thrown in its scope. Previously, the restoration of $@ upon
unwinding would overwrite any exception being thrown. Now the exception
gets to the "eval" anyway. So "local $@" is safe inside an "eval",
albeit of rather limited use.

Exceptions thrown from object destructors no longer modify the $@ of the
surrounding context. (If the surrounding context was exception
unwinding, this used to be another way to clobber the exception being
thrown. Due to the above change it no longer has that significance, but
there are other situations where $@ is significant.) Previously such an
exception was sometimes emitted as a warning, and then either
string-appended to the surrounding $@ or completely replaced the
surrounding $@, depending on whether that exception and the surrounding
$@ were strings or objects. Now, an exception in this situation is
always emitted as a warning, leaving the surrounding $@ untouched. In
addition to object destructors, this also affects any function call
performed by XS code using the "G_KEEPERR" flag.

$@ is also no longer used as an internal temporary variable when
preparing to "die". Previously it was internally necessary to put any
exception object (any non-string exception) into $@ first, before it
could be used as an exception. (The C API still offers the old option,
so an XS module might still clobber $@ in the old way.) This change
together with the foregoing means that, in various places, $@ may be
observed to contain its previously-assigned value, rather than having
been overwritten by recent exception-related activity.

Warnings for "warn" can now be objects, in the same way as exceptions
for "die". If an object-based warning gets the default handling, of
writing to standard error, it will of course still be stringified along
the way. But a $SIG{__WARN__} handler will now receive an object-based
warning as an object, where previously it was passed the result of
stringifying the object.

Modules and Pragmata
Updated Modules
"Errno"
The implementation of "Errno" has been refactored to use about 55%
less memory. There should be no user-visible changes.

Perl 4 ".pl" libraries
These historical libraries have been minimally modified to avoid
using $[. This is to prepare them for the deprecation of $[.

"B::Deparse"
A bug has been fixed when deparsing a nextstate op that has both a
change of package (relative to the previous nextstate), or a change
of "%^H" or other state, and a label. Previously the label was
emitted first, leading to syntactically invalid output because a
label is not permitted immediately before a package declaration,
BEGIN block, or some other things. Now the label is emitted last.

Removed Modules and Pragmata
The following modules have been removed from the core distribution, and
if needed should be installed from CPAN instead.

"Class::ISA"
"Pod::Plainer"
"Switch"

The removal of "Shell" has been deferred until after 5.14, as the
implementation of "Shell" shipped with 5.12.0 did not correctly issue
the warning that it was to be removed from core.

New Documentation
perlgpl
perlgpl has been updated to contain GPL version 1, as is included in
the README distributed with perl.

Selected Bug Fixes
* Naming a deprecated character in \N{...} will not leak memory.

* FETCH is no longer called needlessly on some tied variables.

* The trie runtime code should no longer allocate massive amounts of
memory, fixing #74484.

Changed Internals
* The protocol for unwinding the C stack at the last stage of a "die"
has changed how it identifies the target stack frame. This now uses
a separate variable "PL_restartjmpenv", where previously it relied
on the "blk_eval.cur_top_env" pointer in the "eval" context frame
that has nominally just been discarded. This change means that code
running during various stages of Perl-level unwinding no longer
needs to take care to avoid destroying the ghost frame.

* The format of entries on the scope stack has been changed, resulting
in a reduction of memory usage of about 10%. In particular, the
memory used by the scope stack to record each active lexical
variable has been halved.

* Memory allocation for pointer tables has been changed. Previously
"Perl_ptr_table_store" allocated memory from the same arena system
as "SV" bodies and "HE"s, with freed memory remaining bound to those
arenas until interpreter exit. Now it allocates memory from arenas
private to the specific pointer table, and that memory is returned
to the system when "Perl_ptr_table_free" is called. Additionally,
allocation and release are both less CPU intensive.

* A new function, Perl_magic_methcall has been added that wraps the
setup needed to call a magic method like FETCH (the existing
S_magic_methcall function has been renamed S_magic_methcall1).

Deprecations
The following items are now deprecated.

"Perl_ptr_table_clear"
"Perl_ptr_table_clear" is no longer part of Perl's public API.
Calling it now generates a deprecation warning, and it will be
removed in a future release.

Acknowledgements
Perl 5.13.1 represents thirty days of development since Perl 5.13.0 and
contains 15390 lines of changes across 289 files from 34 authors and
committers.

Thank you to the following for contributing to this release:

テ?ar Arnfjテカrテー Bjarmason, Arkturuz, Chris 'BinGOs' Williams, Craig A.
Berry, Curtis Jewell, Dan Dascalescu, David Golden, David Mitchell,
Father Chrysostomos, Gene Sullivan, gfx, Gisle Aas, H.Merijn Brand,
James E Keenan, James Mastros, Jan Dubois, Jesse Vincent, Karl
Williamson, Leon Brocard, Lubomir Rintel (GoodData), Nicholas Clark,
Philippe Bruhat (BooK), Rafael Garcia-Suarez, Rainer Tammer, Ricardo
Signes, Richard Soderberg, Robin Barker, Ruslan Zakirov, Steffen
Mueller, Todd Rinaldo, Tony Cook, Vincent Pit, Zefram

Reporting Bugs
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 http://rt.perl.org/perlbug/ . There may also be information
at http://www.perl.org/ , the Perl Home Page.

If you believe you have an unreported bug, please run the perlbug
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
"perl -V", will be sent off to perlbug@xxxxx to be analysed by the
Perl porting team.

If the bug you are reporting has security implications, which make it
inappropriate to send to a publicly archived mailing list, then please
send it to perl5-security-report@xxxxx This points to a closed
subscription unarchived mailing list, which includes all the core
committers, who be able to help assess the impact of issues, figure out
a resolution, and help co-ordinate the release of patches to mitigate or
fix the problem across all platforms on which Perl is supported. Please
only use this address for security issues in the Perl core, not for
modules independently distributed on CPAN.

SEE ALSO
The Changes file for an explanation of how to view exhaustive details on
what changed.

The INSTALL file for how to build Perl.

The README file for general stuff.

The Artistic and Copying files for copyright information.

----
こがよういちろう


投稿者 xml-rpc : 2010年7月23日 10:26
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/97137
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。