On Thu, 2004-02-19 at 17:38, Morbus Iff wrote:
>   * the first load of index.cgi uses no DB calls (well,
>     it does "use LibDB::DB", but DB.pm never gets around
>     to eval'ing MySQL.pm), so things are cached without it.
> 
>   * with all the modules and whatnot cached in the child,
>     a "use the database" call to that process fails because
>     LibDB::DB::MySQL isn't part of that cache.

No, it doesn't work that way.  You can always load more modules.

You are either getting the wrong module name in some cases, or it is not
able to read the module file for some reason.  Just check $@ for the
message and find out.

> If that's the case, then I should consider eval'ing my
> database module in the .cgi script, regardless of whether
> I'm actually using any of it's functions.

You should load all of your modules during startup to save memory, but
that's not related to this problem.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to