- or download this
my $update_ids = $dbh->prepare(q/update queue set processed = ? where
+id = ?/);
# later:
$update_ids->execute('T', $ids);
- or download this
foreach my $id (@ids2process){
$count++;
my $ret = HandleIds($id);
next if($ret == -1);
- or download this
eval{
my $update_ids = $dbh->prepare("UPDATE queue set p
+rocessed = \'T
...
updated: $updated");}
else { $log->info("Updated record for - id: $id, updated:
$updated");}
- or download this
$dbh->begin_work;
#do my work;
$dbh->commit;