Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How can I use a reference as a hash key?

by faq_monk (Initiate)
on Oct 08, 1999 at 00:20 UTC ( #636=perlfaq nodetype: print w/replies, xml ) Need Help??

Current Perl documentation can be found at perldoc.perl.org.

Here is our local, out-dated (pre-5.6) version:

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

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Corion]: Whoa! I haven't invoked Crunchy today! But thanks to Crunchy, it's Friday! ;)
[Corion]: A good morning to everybody ;)
[Discipulus]: regular as always.. good morning Corion
[Corion]: Hi Discipulus ;) A good morning to you :)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2017-01-20 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (173 votes). Check out past polls.