For Q2:
As long as you already have 2 hashs, each keyed by what you would like to match for duplicate, let perl do the work for you.
my $finalHash = { %$hashA, %$hashB };
That dumps $hashA into the finalHash, then dumps $hashB in. Anywhere the keys overlap B will win, otherwise you get all matches from both hashes.
In reply to Re: Can I make a sub for this?
by eric256
in thread Can I make a sub for this?
by sandrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |