method bless perl

Hi,
I am using perl with some EDA tool. There is an API function that can be iterate.
I try to check the ref and get that it is a string. I assume that it is a hash

sub aaa {
my $obj = shift;
$name = $obj->name;
print ref $obj,"\n";
foreach my $var(keys %{$obj}) {
my $val = %{$obj}->{$var};
print "$var = $val\n";
}
}

I get
spy
PTR = 184267833624
TYPE = 2
I guess that name is a methods. How can I know it's content ?
Regards,
Ziv