Alan wrote: > foreach my $dummy (@results) { > $query .= "?,"; > } # foreach > And there is probably a shorter way to do the correct number > of question marks via a count of @results. That would be the x operator. '?,' x 4 eq '?,?,?,?,' cheers, Douglas