Don't use the most modern syntax if you want backwards compatibility, but if you do use it, you have to understand what its doing, https://metacpan.org/pod/distribution/perl/pod/perldata.pod#Key-Value-Hash-Slices
So
yada( $key , $hash{$key} ); daya( map { $_ => $hash{$_} } qw/ key1 key 2 / );
It looks like this:
If you're posting code, might as well post the hash declaration ... Data::Dump:dd(\%hash) output
In reply to Re: Hash of hashes and subroutine
by Anonymous Monk
in thread Hash of hashes and subroutine
by piou20100
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |