Just don't use "or die" in your code. Use something like
my $cnx = DBI->connect(); if(defined $cnx) { # success } else { # try another address }
In reply to Re: if database connection failed try to reconnect
by andal
in thread if database connection failed try to reconnect
by gskoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |