in reply to Re: multiple db connects
in thread multiple db connects
Or something like that? Especially if this is a CGI wouldn't we want to use a function to tell the user to quit hitting refresh until the server is fixed? The die clause still returns a false value for the sub call, right? But this could cause errors if not handled in the main clause, right?my $dbh->db_handle($db_name) || die "SNAFU getting to $db_name: $!"; or my $dbh->db_handle($db_name) || &explain_to_user_that_db_unavailable( +$db_name );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: multiple db connects
by btrott (Parson) on Dec 21, 2000 at 21:18 UTC | |
by ichimunki (Priest) on Dec 21, 2000 at 21:45 UTC | |
by merlyn (Sage) on Dec 21, 2000 at 21:55 UTC |