in reply to Is there a way to find out what kind of ref an object is?
It would be helpful to look at perlobj. The function that you are looking for is ref. Here is an example from perlobj, that shows what you are looking for:
$a = {}; $b = $a; bless $a, BLAH; print "\$b is a ", ref($b), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a way to find out what kind of ref an object is?
by jhourcle (Prior) on Dec 07, 2005 at 10:15 UTC |