diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-04-18 22:48:20 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-04-18 22:48:20 -0700 |
commit | 12ebd9a86a369ed7ddf7122ef23487fad5d05a17 (patch) | |
tree | 6ef32d0f0a79fcb5b59d743f042242b677a94499 /pod | |
parent | 532eee962a65219ea17feb33b278403fc6016615 (diff) | |
download | perl-12ebd9a86a369ed7ddf7122ef23487fad5d05a17.tar.gz |
Update perldelta for push/keys changes
• Mark it as experimental
• Remove paragraphs that no longer apply
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldelta.pod | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index b0f63a9ac5..49e1364c40 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -278,6 +278,9 @@ C<delete> on an entry of C<%+> or C<%->. =head3 Array and hash container functions accept references +B<Warning:> This feature is considered experimental, as the exact behaviour +may change in a future version of Perl. + All builtin functions that operate directly on array or hash containers now also accept unblessed hard references to arrays or hashes: @@ -308,14 +311,6 @@ C<@{}> or C<%{}>: for ( keys %{$hoh->{genres}{artists}} ) {...} # old way for ( keys $hoh->{genres}{artists} ) {...} # new way -For C<push>, C<unshift>, and C<splice>, the reference autovivifies -if it is not defined, just as if it were wrapped with C<@{}>. - -For C<keys>, C<values>, C<each>, when overloaded dereferencing is -present, the overloaded dereference is used instead of dereferencing the -underlying reftype. Warnings are issued about assumptions made in -ambiguous cases. - =head3 Single term prototype The C<+> prototype is a special alternative to C<$> that acts like |