-Original Message-
From: Rob Bloodgood [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 2:31 PM
To: Gunther Birznieks
Cc: [EMAIL PROTECTED]; mod_perl
Subject: RE: Apache::DBI in startup.pl generating error
[snip]
Well, it should be documented somewhere in the guide
Well, it should be documented somewhere in the guide, or
presumable in
Apache::DBI.pod, that one should *only*
PerlModule Apache::DBI
Since it's pointless in startup.pl (right?).
I think you need to think that one through a bit more :)
I disagree. I *did*
Alternatively, you can remove
use Apache;
from Apache::DBI and then you can test it perflectly fine from the
command-line, you just won't be able to use connect_on_init() which is the
only reason Apache::DBI seems to load Apache.pm (Apache.pm is causing your
problem not Apache::DBI).
At
Except that (and I have to check this to be ABSOLUTELY shure but)
PerlModule
Apache::DBI happens first, THEN startup.pl.
only if you code it the way you did below, which isn't terribly portable.
see http://perl.apache.org/guide/perl.html#use_require_do_INC_and
basically, it's a bad
-Original Message-
From: Rob Bloodgood [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 9:18 PM
To: Geoffrey Young
Cc: mod_perl
Subject: RE: Apache::DBI in startup.pl generating error
basically, it's a bad programming practice not to use()
modules in the
code
Rob, how much stuff do you have in startup.pl? So nothing else is dependent
on Apache.pm modules?
To some degree, because Apache::DBI affects all the Perl interpreters in a
very config-type of way (as opposed to just preloading modules) I like the
idea of it being in PerlModule as it allows
On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:
Thanks to all (esp Stas) for helping me with the 'make test' error
involving CGI.pm. Here is the next issue:
use Apache::DBI ();
When I run perl -c startup.pl, I get the following error. I get NO
error when I comment out the 'use Apache::DBI'
only if you code it the way you did below, which isn't terribly portable.
see http://perl.apache.org/guide/perl.html#use_require_do_INC_and
Ahem, PerlModule is a wrapper around the perl builtin require(). One
presumes that perl knows where it lives if perl can successfully require()
it.