in reply to Easy way to clear a mysql table?

$dbh->do(qq(delete from tablename where 1=1 ));

You forgot to mention what errors you saw when you tried your code...

Also do you have permissions to drop from the table? Silly question I realize, but worthy of asking none-the-less.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg