From: William M. <wi...@kn...> - 2004-08-19 18:18:38
|
On Thu, Aug 19, 2004 at 08:23:32AM -0700, Mike Schilli wrote: > > Use of uninitialized value in split at > > /home/quicktel/QT-Web/t/../perl5/Log/Log4perl/Config.pm line 523. > > This would indicate that you're passing a string reference to init() -- > but it should be a string in case you want to read in a file. Can you > send the code snippet? Here's the code: my $l4p_config = $cfg->{'projectdir'} . "/" . $cfg->{'log4perl_config_file'}; warn "Log4perl is reading config from $l4p_config\n"; Log::Log4perl->init($l4p_config); $cfg contains a hashref with settings values. The warning outputs the following: Log4perl is reading config from /home/quicktel/QT-Web/t/conf/log4perl.cfg Thanks, William -- Knowmad Services Inc. http://www.knowmad.com |