in reply to
Hashes in Objects
Use an anonymous hash constructor to create the reference:
$self->{'tokens'} = {};
[download]
Have a read through
perlref
, it should give you a good idea of how to create more complex structures with references.
Comment on
Re: Hashes in Objects
Download
Code
In Section
Seekers of Perl Wisdom