From: Jens Thoms Toerring on
chad <cdalten(a)> wrote:
> On Jun 6, 3:35 pm, j...(a) (Jens Thoms Toerring) wrote:
> > Peng Yu <pengyu...(a)> wrote:
> > > Suppose I new an object. Is there a way to get the class name from the
> > > reference to the object?
> >
> > The ref() function should return the name of the package of the
> > object - I guess that's what you mean by "class name".

> Is there more than one defintion to "class name"?

Well, in Perl I'm more used to the term "package" (and ref()
returns the "package name" for blessed objects according to
the documentation) than "class" - thus I was not 100% sure
what the OP wanted...
Regards, Jens
\ Jens Thoms Toerring ___ jt(a)