|
|
| "be consistent" | |
| PerlMonks |
Re: How to identify available subclasses?by betterworld (Curate) |
| on Sep 08, 2008 at 13:59 UTC ( [id://709764]=note: print w/replies, xml ) | Need Help?? |
|
You can have the child classes register themselves with the superclass. One easy way to do this is via the superclass'es import subroutine, which is triggered by use. See my recent node Re^2: How not to hardcode a package name? for an example.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||