Dave Cross wrote:
> On 08/18/2010 06:21 PM, dark0s wrote:
>> It outputs 0.
>>
>> I fill array in following way in .cgi script.
>>
>> my $vars = {
>>   authors = \...@authorslog;
>> }
>> $tt2->process('page.html', $vars) || die $tt2->error();
> 
> Do you have "use strict" and "use warnings" on? Do you get any errors?
> 
> There are a couple of subtle errors in that code. It should probably be:
> 
> my $vars = {
>   authors = \...@authorslog, # comma not semicolon
> }; # added semicolon

Ouch!  I didn't even catch that when copy-pasting his code.  Really
shows the value of strict and warnings.


_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to