In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/0de1010603c15b1a365c5442011e03772e8806df?hp=a0da4400009c3faf23e2057bcb5148c9a1f30d53>

- Log -----------------------------------------------------------------
commit 0de1010603c15b1a365c5442011e03772e8806df
Author: H.Merijn Brand <[email protected]>
Date:   Fri Oct 22 12:40:26 2010 +0200

    Fix on doc patch from Moritz Lenz (from IRC)
-----------------------------------------------------------------------

Summary of changes:
 pod/perldata.pod |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pod/perldata.pod b/pod/perldata.pod
index 4f08d24..4ec9eb5 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -766,7 +766,7 @@ Slices in scalar context return the last item of the slice.
     @a = qw/first second third/;
     %h = (first => 'A', second => 'B');
     $t = @a[0, 1];                  # $t is now 'second'
-    $u = @h{'first', 'second'};     # $u is now 'second'
+    $u = @h{'first', 'second'};     # $u is now 'B'
 
 If you're confused about why you use an '@' there on a hash slice
 instead of a '%', think of it like this.  The type of bracket (square

--
Perl5 Master Repository

Reply via email to