Just another Perl shrine | |
PerlMonks |
Re: DBI query where table name is a variableby Thilosophy (Curate) |
on Oct 23, 2007 at 07:04 UTC ( [id://646648]=note: print w/replies, xml ) | Need Help?? |
You need to set $table before you call $dbh->prepare.
At that point, the table name gets expanded into the SQL string, and it will not change, even if you re-assign to $table.
In Section
Seekers of Perl Wisdom
|
|