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.
I'd interpreted the OP's requirement as not wanting this behaviour. YMMV.
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
Fair point.
In reply to Re^4: Is there a way to find out what kind of ref an object is? (isa)
by adrianh
in thread Is there a way to find out what kind of ref an object is?
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |