You may be able to adapt the reduce solution in Recursively walk a hash to get to an element to your needs. But a map solution would probably be clearer.

In reply to Re: Slicing multilevel hashes by bsb
in thread Slicing multilevel hashes by bobf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":