edi:
I'd make the following change:
if (defined $dbh) { print "Table does not exist.\n"; }
The version you have checks whether $dbh is 0. (Had you used eq instead of ==, it would have checked whether $dbh contained the string 'undef'.)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: How to find MySQL database exist or not
by roboticus
in thread How to find MySQL database exist or not
by edi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |