in reply to Asking An Object For It's Class
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.
my $class = ref( $unidentified_object ); [download]