in reply to Is there a way to find out what kind of ref an object is?
the first thing that comes to mind is:
eval { keys %$ref } ; print "its a hash" unless $@;
In Section
Seekers of Perl Wisdom