Hello,
I think that is what i need, i'll give it a shot tomorrow at work.
thanx to all who helped me out,
regards,
Jo
On Wed, Jul 17, 2002 at 02:39:19PM -0400, [EMAIL PROTECTED] wrote:
> Try this:
>
> my $obj=MyClass->new();
> my $class = ref($obj);
>
>
> Regards,
>
> Bryan
>
>
> -
Hello Jo,
ref($obj) should return "MyClass".
Hope this helps.
Marco
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jo
Geraerts
Sent: July 17, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] object is from which class?
Hello,
If i cr
Try this:
my $obj=MyClass->new();
my $class = ref($obj);
Regards,
Bryan
-Original Message-
From: Jo Geraerts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 2:17 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] object is from which class?
Hello,
If i create an object
Hello,
If i create an object from a class:
my $obj=MyClass->new();
how can i figure out afterwards from which class $obj was derived from?
Greets,
Jo
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.