Use the ref function to determine if a scalar contains a reference to a hash.
In reply to Re: generating hashes of hashes by jwkrahn in thread generating hashes of hashes by mrnick1234567