in reply to LOCK TABLES using Perl in MySQL

Here is something that should work.
$sth = $dbh->prepare("LOCK TABLES tablename WRITE"); unless ($sth->execute()) { die $dbh->errstr() } #sql queries here $sth = $dbh->prepare("UNLOCK TABLES"); unless ($sth->execute()) { die $dbh->errstr() }

mr greywolf