In the past I've gotten log warnings like this:

  Apache::Reload: Can't locate ../../config/Config.pl

Even though I had an absolute path to ../../config in the httpd.conf file.

I thought I'd share what worked in case it is of use to someone else.

Before:

 package MyPackage;
 use lib ('../../perllib');
 use MyPackage;
 
 my $app = MyPackage->new(
     PARAMS => {
         config_files => ['../../config/Config.pl'],
     }
 );

After, using the helpful FindBin!

 package MyPackage;
 use FindBin qw/$Bin/;
 use lib ("$Bin/../../perllib");
 use MyPackage;
 
 my $app = MyPackage->new(
     PARAMS => {
         config_files => ["$Bin/../../config/Config.pl"],
     }
 );

#######

Now the log warnings are gone.

    Mark
-- 
--
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 
   Mark Stosberg            Principal Developer  
   [EMAIL PROTECTED]     Summersault, LLC     
   765-939-9301 ext 202     database driven websites
 . . . . . http://www.summersault.com/ . . . . . . . .

Reply via email to