Home: Perl Programming Help: Frequently Asked Questions:
How can I use a reference as a hash key?



Jasmine
Administrator

Jan 19, 2001, 3:34 PM


Views: 3545
How can I use a reference as a hash key?

(From the Perl FAQ)

How can I use a reference as a hash key?

You can't do this directly, but you could use the standard Tie::Refhash module distributed with perl.