go ahead... be a heretic | |
PerlMonks |
Re: Re: Re: Re: Re: OO Perl: calling a constructor within a classby tye (Sage) |
on Sep 27, 2001 at 21:32 UTC ( [id://115176]=note: print w/replies, xml ) | Need Help?? |
No, you need the ref($me) to ensure that $me isn't just some string because UNIVERSAL::isa would then try to use that string as a package name to see if the named package inherits from your class. So to check whether $me is an object, you have to do both. - tye (but my friends call me "Tye")
In Section
Seekers of Perl Wisdom
|
|