http://qs1969.pair.com?node_id=256260


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.