in reply to DBI detector?
Except for the extra/missing paren, some redundancy, your code looks fine to me. What's your exact error message? Maybe a DBI *driver* is missing, as opposed to DBI itself.
my $use_dbi = eval ' use DBI; use DBD::mysql; 1 # or undef if the above fails. '; if ($use_dbi) { ... } else { print "NO DBI\n"; } ... do other stuff ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI detector?
by jcpunk (Friar) on Apr 03, 2006 at 20:18 UTC | |
by ikegami (Patriarch) on Apr 03, 2006 at 20:31 UTC | |
by jcpunk (Friar) on Apr 03, 2006 at 20:43 UTC | |
by ikegami (Patriarch) on Apr 03, 2006 at 21:13 UTC |