Anyone blessing something into or using a package named HASH needs to be punished.
Why ;-) The namespaces for packages and Perl's fundamental types are different. If somebody wants to use them they are free to do so. They have sick and strange minds - but it's legal.
Since there is a good way of finding out the underlying type (reftype) I would prefer to use that instead of something hand rolled that breaks on odd package names, tied variables, packages with overloaded stringification, etc.
In reply to Re^4: How do I determine the underlying type of an Object?
by adrianh
in thread How do I determine the underlying type of an Object?
by jaa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |