my @where = (@array[0]); push @where, 'OR', {x => $_} for @array[1..$#array];