perl question

Smoot Carl-Mitchell smoot at tic.com
Tue Jul 14 17:16:50 UTC 2009


On Tue, 2009-07-14 at 08:12 +0200, Knapp wrote: 
> On Tue, Jul 14, 2009 at 7:56 AM, Tomoki
> Taniguchi<tomoki.taniguchi at gmail.com> wrote:
> > does anyone know how to get the CLASSNAME of a perl object?
> >
> > lets say i have a
> > $obj = SOMECLASS->new();
> > at which point the object is of class type "SOMECLASS"
> > if at a later point i wanted to get the classname of the $obj,
> > is there anyway to do it?
> >
> > either through a method like $obj->get_classname?
> > or through accessing a variable like $obj->CLASSNAME?
> > anyone able to help me?
> >
> > TIA,
> > Tomoki
> 
> Perhaps someone will have your answer here but it is not the place for
> the question. I suggest you install KVicr or something like it and go
> to the Perl channel and ask there. You will get your answer faster and
> it is the right place to ask.
> Best,
> 
> irc://irc.freenode.net/#perl

Another good Perl resource is the Perl beginners list.

beginners at perl.org.

To answer your question run:

perldoc -f ref

to find out what "ref" does.
-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list