in reply to Re: inverting keys in a 2-D Hash
in thread inverting keys in a 2-D Hash

delete $HASH{keyB};
What is the point of this code line, since $HASH{keyB} probably doesn't exist?

Personally, I would prefer, if possible, to make a copy of the original hash.