> > Try [% authors.size %] and it will likely show up as zero.
> 
> It outputs 0.
> 
> I fill array in following way in .cgi script.
> 
> my $vars = {
>   authors = \...@authorslog;
> }

Missing semicolon at end of this line?


> $tt2->process('page.html', $vars) || die $tt2->error();
> 
> @authorslog is not empty.

Are you sure?  Maybe try something like:

  my $vars = {
    authors = \...@authorslog;
  };

  use Data::Dumper;
  die Dumper($vars) . "\n";

  $tt2->process('page.html', $vars) || die $tt2->error();


Larry

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to