in reply to Elegant way to turn array of values into SQL "where" clause

Not sure if you consider it more elegant, but you could:

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

DWIM is Perl's answer to Gödel