in reply to Comparing two hashes for duplicate keys with no case sensitivity
Yet another option:
Use Hash::Case so that your hashes are case insensitive, and you can test directly.