Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Hashes in Objects

by kilinrax (Deacon)
on May 07, 2003 at 15:46 UTC ( [id://256260]=note: print w/replies, xml ) Need Help??


in reply to Hashes in Objects

Use an anonymous hash constructor to create the reference:
$self->{'tokens'} = {};
Have a read through perlref, it should give you a good idea of how to create more complex structures with references.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found