in reply to get a reverse of a constant hash
IMO, you're just as well off using a normal variable to hold the information, which will make it a lot easier to read the values out of the hash too.
Maybe you want lock_hash in Hash::Util instead.
Joost.