If the referenced object has been blessed into a package, then that package name is returned instead. You can think of "ref" as a "typeof" operator.So it's
my $class = ref( $unidentified_object );
In reply to Re: Asking An Object For It's Class
by larsen
in thread Asking An Object For It's Class
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |