Dear Monks,
If I have
my $animals = { gnu => { humps => 0, }, dromedary => { humps => 1, }, camel => { humps => 2, }, };
is there any simple way of extracting an array of the values for humps without explicitly traversing the top-level hashrefs?
Thanks,
In reply to Extracting values from nested hashrefs by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |