in reply to Template::Plugin::DBI question

Try putting your USE DBI directive in a separate template then use Template's PRE_PROCESS option.

Good Day,
    Dean