It's safer to use Scalar::Util::reftype -- if you just use the string representation, you'll have trouble if the string happens to look like HASH(0x88bd48).
Perl 6 - links to (nearly) everything that is Perl 6.
Comment on Re: How to tell if I have a string, or a ref to a hash