http://qs1969.pair.com?node_id=11138238


in reply to Re^3: Iterating over hash to find specific key to sum up the cost (updated)
in thread Iterating over hash to find specific key to sum up the cost

anyway I don't understand the requirement "sums up to 430" either.

See the last update at the top of my node: the cost keys did originally sum up to 430.

Update:

FWIW: This old node shows a recursive walker to dive into a randomly nested structure.

I've also got some "diver" type code if you search for "dive" on my scratchpad.

  • Comment on Re^4: Iterating over hash to find specific key to sum up the cost (updated)
  • Download Code

Replies are listed 'Best First'.
Re^5: Iterating over hash to find specific key to sum up the cost (updated)
by LanX (Saint) on Oct 29, 2021 at 20:09 UTC
    walkers/divers are fun, fuzzy requirements not.

    This OP sounds sufficiently familiar to leave this thread for good!

    See ya! :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery