# Prepare the command and execute it with the array of # values. my $sth = $dbh->prepare($cmd); $sth->execute(@values) or die $sth->error; return 0; # Success!