From 56ccf6ed237cae6ca610035102907b9b15d0d551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?= Date: Fri, 28 May 2021 04:29:07 +0800 Subject: [PATCH] Reveal deeper slices need @{} Without this additional example, users are sure to assume one must use`@days{'p'}{'x','y'}`! --- pod/perldata.pod | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pod/perldata.pod b/pod/perldata.pod index 7cae8b260945..a2937a657310 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -57,9 +57,10 @@ which works much as the word "these" or "those" does in English, in that it indicates multiple values are expected. X - @days # ($days[0], $days[1],... $days[n]) - @days[3,4,5] # same as ($days[3],$days[4],$days[5]) - @days{'a','c'} # same as ($days{'a'},$days{'c'}) + @days # ($days[0], $days[1], ... $days[n]) + @days[3,4,5] # same as ($days[3], $days[4], $days[5]) + @days{'a','c'} # same as ($days{'a'}, $days{'c'}) + @{$days{'p'}}{'x','y'} # same as ($days{'p'}{'x'}, $days{'p'}{'y'}) Entire hashes are denoted by '%': X