From: Mike S. <m...@pe...> - 2007-07-19 04:37:36
|
On Wed, 18 Jul 2007, Mesdaq, Ali wrote: > But something I am still confused about is the initialize once and > only once that is discussed in the docs. If I have several modules > that use each other and they all use log4perl how does that impact me? > Is the initialize once and only once referring to per module or object > or per process or per system? If its any of the latter two then > wouldn't you always want to use init_once? Only the main program should call init(). Modules should not use init(). init_once() is useful only in scenarios where your code runs by the same init() call more than once and you want to run init() only the first time (e.g. with CGI scripts running under Apache::Registry). -- Mike Mike Schilli m...@pe... |