Don't ask to ask, just ask | |
PerlMonks |
Re: How to merge two arrays within the hash of arrays based on unique name.by jcb (Parson) |
on Jul 14, 2020 at 02:23 UTC ( [id://11119280]=note: print w/replies, xml ) | Need Help?? |
Try building a hash of hashes, keyed by $_->{name} and updating $Hash{$_->{name}}->{count_banking} as you go if the target hash element already exists. See perldsc for more. Also note that your question describes an array of hashes, not a hash of arrays.
In Section
Seekers of Perl Wisdom
|
|