#!/usr/bin/perl
BEGIN
{
use Apache::DBI;
}
$dbh = Apache::DBI->connect_on_init("DBI:mysql:database=dbname;host=lo
+calhost","dbuser","dbpass",{ PrintError => 1, RaiseError => 0, AutoCo
+mmit => 1});
1;
Still have same error - "Apache.pm was not loaded". I have installed mod_perl from apache.org today and Apache::DBI from CPAN. So I thing both are latest packages.
| [reply] [Watch: Dir/Any] [d/l] |
BEGIN {
use Apache();
# ...
}
Seems I was steering you wrong, thinking you hadn't installed mod_perl yet.
--chargrill
s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; =
qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
| [reply] [Watch: Dir/Any] [d/l] [select] |
You don't need to load Apache. mod_perl does it already.
| [reply] [Watch: Dir/Any] |