On its face, your suggestion seems great (and it is much faster than DELETE FROM, which is useful to me for another project -- thanks). However, it still doesn't address the case of a table that doesn't already exist.
So again, I'm left with:
eval { $dbh->do("TRUNCATE TABLE $table_name") }
With no reliable way to determine if an error means the table didn't exist or if it means there was actually a problem. Any ideas on how to solve for that case?
radiantmatrix
require General::Disclaimer;
s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}