There's more than one way to do things | |
PerlMonks |
A module to merge packagesby dakkar (Hermit) |
on Jun 26, 2002 at 13:27 UTC ( [id://177377]=perlquestion: print w/replies, xml ) | Need Help?? |
dakkar has asked for the wisdom of the Perl Monks concerning the following question: I just wrote this little module. The problem it tries to solve is the following. I have a set of packages, each of which specifies a part of the behaviour I need. The idea is to be able to exchange one specification with another (for those who know, I'm translating an ASM specification). I wrote the subs in the packages to be used as methods, and one of the packages defines new, but this is not really relevant... What I can do is something like:
This, coupled with NEXT, gets me the result I need. Now I ask:
Oh, the whole module boils down to:
Back to
Seekers of Perl Wisdom
|
|