|Think about Loose Coupling|
find differences between multiple hashesby JYDawg (Novice)
|on Apr 09, 2004 at 23:22 UTC||Need Help??|
JYDawg has asked for the
wisdom of the Perl Monks concerning the following question:
Fellow wizards and witches,
I often find myself comparing hashes of file information or options and taking steps according on the differences. Normally I would loop though one of the hashes removing the equal items on both sides and then combining what's left. However after toiling with referenced array's in hashes for e.g. Template Toolkit I'm curious: Is there another (simpler) way of comparing hashes?
The result should be:
--- Lead me not into temptation for I can find it myself...