Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2018-01-19 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?