Bug#872995: [PATCH] show slice of Hash of Hash

積丹尼 Dan Jacobson jidanni at jidanni.org
Wed Aug 23 11:17:15 UTC 2017


Package: perl-doc
Version: 5.26.0-5
Severity: minor
File: /usr/share/perl/5.26.0/pod/perldata.pod

Slices of Hash of Hash are not on perldsc, so should be documented here.

--- /usr/share/perl/5.26.0/pod/perldata.pod	2017-07-31 00:15:47.000000000 +0800
+++ /tmp/perldata.pod	2017-08-23 19:12:44.516211394 +0800
@@ -60,6 +60,7 @@
     @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{'m'}}{'a','c'} # same as ($days{'m'}{'a'},$days{'m'}{'c'})
 
 Entire hashes are denoted by '%':
 X<hash>




More information about the Perl-maintainers mailing list