I guess you are assuming that it is perfect. But it isn't. It prevents you from properly handling overloaded objects that know how to act like a hash ref even though they aren't.
Of course, it is also overly complicated in many cases. For example, on the version of Perl I have most handy, it simply dies with Can't locate Scalar/Util.pm and overcoming that is rather hugely complicated, as it happens.
- tye
In reply to Re^3: Is there a way to find out what kind of ref an object is? (isa)
by tye
in thread Is there a way to find out what kind of ref an object is?
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |