You probably want to use Scalar::Util's reftype instead of ref. It will handle blessed references properly for you.
For example:
use Scalar::Util qw(reftype); my $foo = bless {}, 'Artichoke'; print join "\n", ref $foo, reftype $foo, ; __END__ # Output: Artichoke HASH
TGI says moo
In reply to Re: Data structure examiner
by TGI
in thread Data structure examiner
by dbw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |