Help for this page

Select Code to Download


  1. or download this
    my $update_ids = $dbh->prepare(q/update queue set processed = ? where 
    +id = ?/);
    # later:
    $update_ids->execute('T', $ids);
    
  2. or download this
              foreach my $id (@ids2process){
                     $count++;
                    my $ret = HandleIds($id);
                    next if($ret == -1);
    
  3. 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");}
    
  4. or download this
    $dbh->begin_work;
      #do my work;
    $dbh->commit;