Problems? Is your data what you think it is? | |
PerlMonks |
Re: Detecting which class a method is defined inby merlyn (Sage) |
on Apr 02, 2011 at 16:49 UTC ( [id://897107]=note: print w/replies, xml ) | Need Help?? |
I don't think you're getting OO yet. If you have to introspect that much, you probably aren't building actual subclasses, but rather something like plugins (HAS-A vs IS-A). If designed properly, you should just call $self->source, and it'll Do The Right Thing.
-- Randal L. Schwartz, Perl hacker The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
In Section
Seekers of Perl Wisdom
|
|