Reverend Phil has asked for the wisdom of the Perl Monks concerning the following question:
When I run this chunk of code from the console, I get a log file with:use strict; use DBI; use DBD::ODBC; use CGI_Lite; my $DSN = 'BLAH'; my $dbh; open LOG, ">>log.log"; print LOG "\nTesting..\n"; $dbh=DBI->connect("dbi:ODBC:$DSN",'USER','PASSWORD',{ RaiseError => 1, AutoCommit => 1, PrintError => 0 } ); if(!$dbh){ print LOG "Error: $DBI::errstr"; exit; } print LOG "Good"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IIS-CGI-DBI Errorless Errors
by JupiterCrash (Monk) on Aug 08, 2002 at 04:34 UTC | |
|
Re: IIS-CGI-DBI Errorless Errors
by grinder (Bishop) on Aug 07, 2002 at 21:55 UTC | |
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 04:57 UTC | |
|
Re: IIS-CGI-DBI Errorless Errors
by runrig (Abbot) on Aug 07, 2002 at 22:10 UTC | |
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 04:53 UTC | |
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 13:40 UTC | |
|
Still Stuck - IIS-CGI-DBI Errorless Errors
by Reverend Phil (Pilgrim) on Aug 08, 2002 at 14:51 UTC |