in reply to identifier too long error
Pretty much.
Somewhere near the top of your script, do this:
my $trace_level = 1; my $trace_file = 'tracefile.txt'; DBI->trace($trace_level, $trace_file); # ... then the rest of your script [download]