eval is only necessary if DBI's RaiseError flag was set on connection to the database; otherwise $dbh->err must be checked. This should probably be done with a query such as SELECT 1 FROM table WHERE 0 which would always succeed but would never return any results, provided the table exists.
Makeshifts last the longest.
In reply to Re^2: Best Perlish way to test if a mysql table exists?
by Aristotle
in thread Best Perlish way to test if a mysql table exists?
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |