If you are using MS SQL Server 2K another option might be to generate a Data Transformation Services (DTS) script to introduce a temp table into the database, then use that temp table for the insert. This DTS script can be saved and used from Perl. You can delete this temp table with a T-SQL command like:
if exists(select 1 from INFORMATION_SCHEMA.tables where table_name = '
+Table_with_data') DROP TABLE Table_with_data;