yoda54 has asked for the wisdom of the Perl Monks concerning the following question:
If this bombs I want it to either try to connect to another host or read from a text file. I've read "perldoc DBI" and I'm still a bit lost! :) Do you have any examples you can provide? Thanks much!!!my $dsn = "DBI:mysql:host=somehost:database=test"; my $dbh = DBI->connect($dsn, $user_name, $password) || warn "Cannot co +nnect to server #!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl DBI Question
by pg (Canon) on Jan 21, 2004 at 20:57 UTC | |
by hmerrill (Friar) on Jan 21, 2004 at 21:56 UTC | |
|
Re: Perl DBI Question
by twerq (Deacon) on Jan 21, 2004 at 21:48 UTC | |
by Coruscate (Sexton) on Jan 21, 2004 at 22:34 UTC |