in reply to Re: Moose: get class name
in thread Moose: get class name

The difference between ref and Scalar::Util::blessed is subtle and, as you say, won't be any different when operating on a blessed reference.

blessed is exported as a method, so you can say $moose_object->blessed(), which was why I pointed to that. You can achieve the same with ref($moose_object).

Having said that, I think I'd prefer:

$moose_object->blessed()->some_class_method()

to

ref($moose_object)->some_class_method()

rootcho gave no indication of how the class name was to be used, so that may not matter.

-- Ken