Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Implementing a Mixin Classby cees (Curate) |
on Jun 01, 2004 at 13:00 UTC ( [id://358019]=note: print w/replies, xml ) | Need Help?? |
There may be other ways of implementing a mixin class There is of course (this is perl after all). It follows the same lines as the Namespace mungers you list above, but the Time::Piece::MySQL uses a slightly different method by placing 'package Time::Piece;' directive in the code, which ends up writing it's methods directly into the Time::Piece namespace. Maybe not the best way of doing it, but it is simple, and it works... - Cees
In Section
Seekers of Perl Wisdom
|
|