|XP is just a number|
using ref to hash of hash effectivelyby kalee (Initiate)
|on Dec 27, 2020 at 01:34 UTC||Need Help??|
kalee has asked for the wisdom of the Perl Monks concerning the following question:
I've create a simple hash reference with the following data:
I need to look though the weapons "list". I would also like to sum by cost, damage and armor in calculations.
I was hoping there would be an easy was to sum the weapons cost for example. I was thinking I could do this with a postfix operation, but my general confusion with a hash of a hashes keeps getting in the way. Any wisdom would be appreciated!
If you have general information for learning how to manipulate array of hashes and hash of hashes in general, that would be appreciated as well. I really would like to really understand this better!