One way (perhaps a little brute-force) is to step through one of the hashes, and deleting entries from both hashes that match. When the dust settles, you'll have all the people in each hash that are not in the other hash. Try something like this (untested) snippet:
foreach (keys %firsthash) { if (exists($secondhash{$_})) { delete($firsthash{$_}; delete($secondhash{$_}; } }
In reply to Re: Need advice on hashes and methods
by ptum
in thread Need advice on hashes and methods
by tom2112
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |