in reply to Re^5: Log::Log4perl and singleton design issue
in thread Log::Log4perl and singleton design issue

You don't create multiple instances, jsut multiple references. Each part of the program that needs a reference gets its own, so it doesn't have to rely on some other distant part of the program.

For instance, Apache::DBI does this sort of thing so different things happening in mod_perl can share a database connection, even though they might be different applications.

--
brian d foy <bdfoy@cpan.org>
  • Comment on Re^6: Log::Log4perl and singleton design issue