in reply to Implementing a Mixin Class
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