in reply to Fast Building of SQL Statements

I'm pretty sure you want:
('?') x @test_array;
in place of
'?' x @test_array;
unless you wanted "??????" instead of qw(? ? ? ? ? ?);

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.