in reply to To be, or not to be, an object ?

See Scalar::Util::blessed