in reply to Is there a way to find out what kind of ref an object is?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to find out what kind of ref an object is? (isa)
by adrianh (Chancellor) on Dec 07, 2005 at 12:32 UTC | |
by tye (Sage) on Dec 07, 2005 at 19:41 UTC | |
by adrianh (Chancellor) on Dec 08, 2005 at 10:36 UTC | |
by chromatic (Archbishop) on Dec 07, 2005 at 16:57 UTC | |
by adrianh (Chancellor) on Dec 08, 2005 at 10:36 UTC |