http://qs321.pair.com?node_id=514676


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 $@;