$sth = $dbh->prepare( "delete from testDBRepCats where repCatID IN (" . join(', ', map({'?'} @$repCats)) . ")"); $done = $sth->execute(@$repCats);