in reply to DBI execute .sql file

Did you try to slurp the file into a scalar and then just $dbh->do($sql)?

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

Edit by castaway: Closed small tag in signature