http://www.perlmonks.org?node_id=852718


in reply to Re: DBI Format Question
in thread DBI Format Question

You can't use placeholders because table names must be known when the query is prepared. That leaves using a quoting function.
my $q_table = $dbh->quote_identifier($table); $dbh->prepare("select stuff from $q_table");