Don't ask to ask, just ask | |
PerlMonks |
Re^2: single instance shared with moduleby adrianh (Chancellor) |
on Sep 16, 2002 at 22:52 UTC ( [id://198390]=note: print w/replies, xml ) | Need Help?? |
Be careful when using singletons. They are often a sign that you need to rethink a design. Then can encourage close-coupling of objects and become global variables by another name. There is a nice developerworks article on the subject. Even if you can't read Java it's worth a once over. That said - logging objects is one of the places that it's probably justified.... so I guess I'll just shutup and go away ;-)
In Section
Seekers of Perl Wisdom
|
|