package Book::ChildInitHandler; use strict; use Book::DBIHandle; use Apache; sub handler { my $s = Apache->server; my $dbh = Book::DBIHandle->instance( { dsn => $s->dir_config('DATABASE_DSN'), user => $s->dir_config('DATABASE_USER'), passwd => $s->dir_config('DATABASE_PASSWD'), options => { AutoCommit => 0, RaiseError => 1, PrintError => 0, ChopBlanks => 1, }, } ); $s->log_error("$$: Book::DBIHandle object allocated, handle=$dbh"); } 1;