in reply to check if databse exists before connection is made!

For the sake of later super-searchers, I will note that this is a followup question to how to know if a databse exists before i delete it?.
  • Comment on Re: check if databse exists before connection is made!

Replies are listed 'Best First'.
Re: Re: check if databse exists before connection is made!
by Nik (Initiate) on Feb 06, 2004 at 17:26 UTC
    is this ok to use?
    if ($db1) { $db=$db1 ); if ($db2) { $db=$db2 ); if (!$db1 and !$db2) { print font( {-size=>5, -color=>'Lime'}, "$DBI:: +errstr"; exit() );