Just letting you know the versions of stuff:

Perl 5.6.0
mod_perl 1.24
apache 1.3.12


I've played around with the WebAPI loader and got it to stop crashing (good) 
but the object isn't cached (not good - I need POST data in many places and 
can't depend on PNOTES since that may not be available on the target platform 
(CGI)).

Any idea?

Yann

package Magrathea::WebAPI;


use Carp;
use Magrathea::MyConfig;

# Simple module...simple stuff
BEGIN {

}

  

sub new {
    my $self = {};
    bless $self;
my $driver;  
    my $cfg = Magrathea::MyConfig->new();
    if (!$driver) {
        my $mod = "Magrathea::WebAPI::".$cfg->webapi;
        eval "package Magrathea::_firesafe; require $mod ";
        $driver = eval { $mod->driver() };
        if (!$driver) {
            print "No driver!\n";
            die "Ouch...\n";
        }
    }
    return $driver;

}



1;

-- 

--------------------------------------------------------------------
Yann Ramin                      [EMAIL PROTECTED]
Atrus Trivalie Productions      www.redshift.com/~yramin
Monterey High IT                www.montereyhigh.com
AIM                             oddatrus
Marina, CA

IRM Developer                   Network Toaster Developer
SNTS Developer                  KLevel Developer
--------------------------------------------------------------------








Reply via email to