You have two ways: either the one you used, or you can first get a table list (using DBI tables method) and then check the table name with grep.
Something in between is shown in DBI Recipes.
In reply to Re: Checking for DB table existence using DBI/DBD
by rnahi
in thread Checking for DB table existence using DBI/DBD
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |