in reply to Conditional inheritance strategy
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Conditional inheritance strategy
by citromatik (Curate) on Oct 27, 2010 at 13:17 UTC | |
by morgon (Priest) on Oct 27, 2010 at 13:44 UTC | |
by Corion (Patriarch) on Oct 27, 2010 at 13:22 UTC |
In Section
Seekers of Perl Wisdom