in reply to doing it the right way
in thread How hashes present keys and values.
sub create_SQLprepared { my ($db, $table, @fields) = @_; $db->prepare( "INSERT $table (". join(", ", @fields). ") VALUES (". join(", ", ("?") x @fields). ")" ); }
-- Randal L. Schwartz, Perl hacker
|
|---|