Perl: the Markov chain saw | |
PerlMonks |
Template::Plugin::DBI questionby avo (Pilgrim) |
on Sep 04, 2008 at 08:53 UTC ( [id://708965]=perlquestion: print w/replies, xml ) | Need Help?? |
avo has asked for the wisdom of the Perl Monks concerning the following question:
Good day monks, I am using Template::Plugin::DBI a lot lately. I however am including the following in all of my templates on top: [% USE DBI("DBI:mysql:$database;host=$dbhost", "$dbuser", "$dbpassword") %] Is there a way to go around that. I am using also Template::Plugin::CGI which I don't need to use in my template body because I simply have a line like this (in my program): $vars{mycgi} = new Template::Plugin::CGI; I just have no idea how can I do that with DBI plugin. Any suggestions ?
Back to
Seekers of Perl Wisdom
|
|