X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperl56delta.pod;h=fc0d6687262e42958b1f097b792166276761267a;hb=5ad8ef521b3ffc4e6bbbb9941bc4940d442b56b2;hp=16a06c43a5e11ee1cc59ab83c3facc712bd1876b;hpb=697934ef381c2fbd2ff49c5e4b22e596a509b7a0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perl56delta.pod b/pod/perl56delta.pod index 16a06c4..fc0d668 100644 --- a/pod/perl56delta.pod +++ b/pod/perl56delta.pod @@ -4,7 +4,8 @@ perldelta - what's new for perl v5.6.0 =head1 DESCRIPTION -This document describes differences between the 5.005 release and this one. +This document describes differences between the 5.005 release and the 5.6.0 +release. =head1 Core Enhancements @@ -487,7 +488,7 @@ required for C<< foo(10)->('bar') >>. =head2 Boolean assignment operators are legal lvalues -Constructs such as C<($x ||= 2) += 1> are now allowed. +Constructs such as C<($a ||= 2) += 1> are now allowed. =head2 exists() is supported on subroutine names @@ -785,11 +786,10 @@ regardless of whether or not the array has been used or declared already. The fatal error has been downgraded to an optional warning: Possible unintended interpolation of @example in string - + This warns you that C<"fred@example.com"> is going to turn into C if you don't backslash the C<@>. - -See L for more details +See http://www.plover.com/~mjd/perl/at-error.html for more details about the history here. =head1 Modules and Pragmata @@ -1837,7 +1837,8 @@ run in compile-only mode. Since this is typically not the expected behavior, END blocks are not executed anymore when the C<-c> switch is used, or if compilation fails. -See L for how to run things when the compile phase ends. +See L for how to run things when the compile +phase ends. =head2 Potential to leak DATA filehandles @@ -2630,9 +2631,12 @@ but still allowed it. In Perl 5.6.0 and later, C<"$$1"> always means C<"${$1}">. -=item delete(), values() and C<\(%h)> operate on aliases to values, not copies +=item delete(), each(), values() and C<\(%h)> + +operate on aliases to values, not copies -delete(), each(), values() and hashes in a list context return the actual +delete(), each(), values() and hashes (e.g. C<\(%h)>) +in a list context return the actual values in the hash, instead of copies (as they used to in earlier versions). Typical idioms for using these constructs copy the returned values, but this can make a significant difference when @@ -2782,7 +2786,7 @@ See L for further information about that. =head2 Compatible C Source API Changes -=over +=over 4 =item C is now C @@ -2912,7 +2916,9 @@ include the following: =item The DB module -=item The regular expression constructs C<(?{ code })> and C<(??{ code })> +=item The regular expression code constructs: + +C<(?{ code })> and C<(??{ code })> =back @@ -2989,7 +2995,7 @@ Home Page. If you believe you have an unreported bug, please run the B 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 C, will be sent off to perlbug@perl.com to be +output of C, will be sent off to perlbug@perl.org to be analysed by the Perl porting team. =head1 SEE ALSO @@ -3007,6 +3013,6 @@ The F and F files for copyright information. Written by Gurusamy Sarathy >, with many contributions from The Perl Porters. -Send omissions or corrections to >. +Send omissions or corrections to >. =cut