Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Error-Output:package Foo::DBI; use base 'Class::DBI'; use Class::MethodMaker new_with_init => 'new'; sub init { my $self->set_db('Main', 'dbi:mysql:database', 'user', 'pass +word'); }
[Wed Sep 24 12:39:38 2003] [error] [client 10.0.1.48] Premature end of + script headers: test.cgi [Wed Sep 24 12:39:38 2003] [error] [client 10.0.1.48] Can't connect(), + no database driver specified and DBI_DSN env var not set at blib/lib +/Class/MethodMaker.pm (autosplit into blib/lib/auto/Class/MethodMaker +/new_with_init.al) line 259
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem using Class::DBI with Class::Methodmaker
by perrin (Chancellor) on Sep 24, 2003 at 12:57 UTC | |
|
Re: problem using Class::DBI with Class::Methodmaker
by Anonymous Monk on Sep 24, 2003 at 10:49 UTC | |
|
Re: problem using Class::DBI with Class::Methodmaker
by simonm (Vicar) on Sep 24, 2003 at 17:08 UTC | |
|
Re: problem using Class::DBI with Class::Methodmaker
by zengargoyle (Deacon) on Sep 25, 2003 at 01:34 UTC | |
|
Re: problem using Class::DBI with Class::Methodmaker
by parasew (Beadle) on Sep 24, 2003 at 22:48 UTC | |
by Anonymous Monk on Sep 24, 2003 at 22:51 UTC |