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 reply to Re: Implementing a Mixin Class
by cees
in thread Implementing a Mixin Class
by Belgarion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |