in reply to Hash of hashes and subroutine
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash of hashes and subroutine
by piou20100 (Initiate) on Jul 20, 2016 at 03:14 UTC |