in reply to Re: in, ands, ors in query
in thread in, ands, ors in query

I personally find that style of sql construction hard to read. How about this:

my $sql = do { my $getfields = join ',', @getfields; my $placeholders = join ',', ('?') x @choices; my $settingspublic = join ' OR ', map "settings$_ = 'public'", 1 .. +4; <<EOF; select $getfields from special_fields where engine in ($placeholders) and ($settingspublic) EOF };
We're building the house of the future together.