viji_india has asked for the wisdom of the Perl Monks concerning the following question:

Normally in perl, hash keys are treated as string, but if we need to make a reference as a hash key we can use Tie::RefHash module.

Why do we need the keys of the hash as a references ?
Where we will use this module in live project ?

Replies are listed 'Best First'.
Re: usage of Tie::RefHash
by moritz (Cardinal) on Feb 13, 2009 at 09:08 UTC
    Chances are that you never have to use it. I had an application once where I wanted to use it, and later discovered that it was bad design.

    (I don't want to imply that there's no good use for it - I just want to say that you shouldn't worry about it unless you have a real need).