Syntactic Confectionery Delight | |
PerlMonks |
Re: multiple hash compare, find, createby johngg (Canon) |
on Dec 10, 2018 at 18:55 UTC ( [id://1227057]=note: print w/replies, xml ) | Need Help?? |
I would choose the smallest of the three hashes and iterate over its keys in a loop doing an exists on the same key in the other two hashes, moving on to the next key unless existing in both of the others. If in all three, add an array ref to that key in the fourth hash. Something like:-
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|