in reply to Re: How to give a database as an input in a perl script?
in thread How to give a database as an input in a perl script?

Instead of the (somewhat) database specific show tables, I prefer to offload that knowledge to the database driver. DBI has lots of Catalog Methods that return structured data about the database itself. Of course, some of it is implemented by issuing a show tables command.