in reply to RE: Re: 3 strings to join
in thread 3 strings to join

If there a possibility of no where clause, then it becomes:
my $sql = $a; ... $sql .= " where ".join(" and ", @where) if @where;
And as for placeholders, the @args array will be empty, so there's no harm in including it in the execute.