![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Conditional inheritance strategyby Corion (Patriarch) |
on Oct 27, 2010 at 12:26 UTC ( #867698=note: print w/replies, xml ) | Need Help?? |
Why have package My:: inherit from either My::XML or My::JSON at all? I would have My::new() return either a My::XML or My::JSON. Maybe both, My::XML and My::JSON can inherit from My::Base if they really share common routines.
In Section
Seekers of Perl Wisdom
|
|