good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Conditional inheritance strategyby citromatik (Curate) |
on Oct 27, 2010 at 13:17 UTC ( [id://867715]=note: print w/replies, xml ) | Need Help?? |
Thanks a lot for your thoughts In fact I followed your last suggestion in a first version of the classes (My::XML and My::JSON inherited from My::Base). But I found that doing it in that way you emphasize how the data is stored (XML or JSON in this case). But in both cases you should be able to end up with the same object regardless how the information to build it was stored. I mean, it should be natural to get an object of class My instead of My::XML or My::JSON. I don't know if this has any sense. citromatik
In Section
Seekers of Perl Wisdom
|
|