http://www.perlmonks.org?node_id=1031295


in reply to Re: Manipulate deepest values in complex hash structures
in thread Manipulate deepest values in complex hash structures

IMHO Data::Leaf::Walker can't be used in this particular task of changing leave values.

Or can you see a possibility to pass an absolute key-path which selects only the deepest leaves?

And the each-method will only return copies which can't be manipulated.

OTOH generating an iterator is for sure an interesting alternative.

Cheers Rolf

( addicted to the Perl Programming Language)

  • Comment on Re^2: Manipulate deepest values in complex hash structures

Replies are listed 'Best First'.
Re^3: Manipulate deepest values in complex hash structures
by sundialsvc4 (Abbot) on Apr 30, 2013 at 18:07 UTC

    No arguments that it may or may not be appropriate in this case.   I mention it mainly to point out (as other Monks have, since) that “canned” walkers also exist, which might (or might not) be suitable.