Unfortunately this doesn't work for some edge cases. Consider:
my $not_a_hash = bless [], 'HASH'; print type($not_a_hash), "\n";
In reply to Re^2: 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: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |