In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/df706e5b966feb52bfa867f5bcd042520d7463c4?hp=baabe3fb419f01704a85104dce71b0c631a4a373>

- Log -----------------------------------------------------------------
commit df706e5b966feb52bfa867f5bcd042520d7463c4
Author: Father Chrysostomos <[email protected]>
Date:   Fri Oct 17 20:32:36 2014 -0700

    perlref: \@hash{slices} = too
-----------------------------------------------------------------------

Summary of changes:
 pod/perlref.pod | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pod/perlref.pod b/pod/perlref.pod
index d3c12f1..a165dbc 100644
--- a/pod/perlref.pod
+++ b/pod/perlref.pod
@@ -838,12 +838,16 @@ evaluated in scalar context:
     \local $some_hash{$key}
     condition ? \$this : \$that[0] # etc.
 
-Array slices and parentheses cause the right-hand side to be evaluated in
+Slicing operations and parentheses cause
+the right-hand side to be evaluated in
 list context:
 
     \@array[5..7]
     (\@array[5..7])
     \(@array[5..7])
+    \@hash{'foo','bar'}
+    (\@hash{'foo','bar'})
+    \(@hash{'foo','bar'})
     (\$scalar)
     \($scalar)
     \(my $scalar)

--
Perl5 Master Repository

Reply via email to