Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Conditional inheritance strategyby roboticus (Chancellor) |
on Oct 27, 2010 at 13:27 UTC ( [id://867719]=note: print w/replies, xml ) | Need Help?? |
It sounds as if the subclasses are simply artifacts of the format of the data source, and wouldn't have any behavioral differences otherwise. If that's the case, I wouldn't make the objects different types. Instead, I'd provide reader classes that read My objects, like My::Reader::XML. ...roboticus Update: Consider this a "me, too" node, as I missed BrowserUk's node above.
In Section
Seekers of Perl Wisdom
|
|