> 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).
>
> >It's not a problem. Apache::DBI expects mod_perl env, and hence you
cannot
> >test it from the command line. I suppose that you don't have a problem to
> >start the server with Apache::DBI loaded.
> >
> >It's documented somewhere is the guide too.
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?).
Then a block like:
if ($im_in_mod_perl_now) {
$Apache::DBI::parameter = $newvalue;
# etc
}
would be completely appropriate in startup.pl.
My $.02
L8r,
Rob
#!/usr/bin/perl -w
use Disclaimer qw/:standard/;