$WHERE = join ' OR ', map { X => $_ }, @ARRAY; $DB->update( { table => 'table', fields => { Y => 0 }, where => $WHERE } );