in reply to Re: Re: Re: Re: OO Perl: calling a constructor within a class
in thread OO Perl: calling a constructor within a class
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")
|
---|