On February 3, 2004 10:50, Dave Cash wrote:
> Try doing this instead:
>
>   [% USE DBI( data_source = 'dbi:mysql:forager',
>               username = 'user',
>               password = 'pw' )
>   %]

I did this and it now works I guess I should upgrade? or at least match the 
production server so all code will remain static.
>
> If that works, you're using an old version of Template::Plugin::DBI.
> You should also be able to do this:
>
>   [% USE DBI( 'dbi:mysql:forager', 'user', 'pw' ) %]

Much sorter less clear as to what is happening to the newbee. I have a variety 
of people that read and modify the code so I go for the clearer. 

Is there a execution gain by the shorter version or just readability?

-- 
Thank
Shanta McBain
http://computersystemconsulting.ca
Online web application and stores. Development and hosting.


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to