summaryrefslogtreecommitdiff
path: root/pod/perldata.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-15 15:37:06 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-15 15:49:21 -0700
commitc44d7536d178ba6cde538f78ab44b5a59d443def (patch)
treeb7906df572788ae541328a400fb63687ab53445f /pod/perldata.pod
parent97e1065aff90de944af533344ace667fe0921d9f (diff)
downloadperl-c44d7536d178ba6cde538f78ab44b5a59d443def.tar.gz
perldata.pod: Mention what version introduced kv slices
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r--pod/perldata.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod
index 2d83b26e4a..269c31f77a 100644
--- a/pod/perldata.pod
+++ b/pod/perldata.pod
@@ -920,7 +920,8 @@ scalar) or a plural one (a list).
=head3 Key/Value Hash Slices
-A hash slice operation with the % symbol is a variant of slice operation
+Starting in Perl 5.20, a hash slice operation
+with the % symbol is a variant of slice operation
returning a list of key/value pairs rather than just values:
%h = (blonk => 2, foo => 3, squink => 5, bar => 8);
@@ -933,7 +934,8 @@ using the @ symbol.
=head3 Index/Value Array Slices
-Similar to key/value hash slices, the % array slice syntax returns a list
+Similar to key/value hash slices (and also introduced
+in Perl 5.20), the % array slice syntax returns a list
of index/value pairs:
@a = "a".."z";