Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Implementing a Mixin Class

by cees (Curate)
on Jun 01, 2004 at 13:00 UTC ( #358019=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://358019]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-08-14 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (153 votes). Check out past polls.

    Notices?