anyway I don't understand the requirement "sums up to 430" either.
FWIW: This old node shows a recursive walker to dive into a randomly nested structure.
The OP might want to adapt it to his needs.
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|Replies are listed 'Best First'.|
Re^4: Iterating over hash to find specific key to sum up the cost (updated)
by haukex (Bishop) on Oct 29, 2021 at 20:03 UTC
by LanX (Sage) on Oct 29, 2021 at 20:09 UTC