I'd probably use:
BEGIN { *isa= \&UNIVERSAL::isa; } ... isa( $ref, 'HASH' ) ...
which isn't perfect, but neither are any of the techniques I've seen that aren't unreasonably complicated, unfortunately.
- tye
In reply to Re: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |