Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Replacing namespacesby dragonchild (Archbishop) |
on Dec 11, 2001 at 00:14 UTC ( [id://130763]=note: print w/replies, xml ) | Need Help?? |
This is a very elegant solution to the type of problem you're describing. For those who're confused, what smferris is asking is this:
I have an action I wish to perform on a bunch of data. However, this action is dependent on the type of data I receive. In order to make this as flexible as possible, I'd like to start out in one class (which has a set of actions it can perform), then be able to rebless into another class should that set of actions be insufficient. I would caution you to do the following:
------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|