Tony Bowden wrote:

That's not working for me. I'm getting exactly the same results as with
the inbuilt .size - i.e. nothing.

(Code below for testing....)

my $tt = Template->new;
$tt->process(\*DATA => {
mylist => sub { return () },
});


Ouch. Does your real code method actually return a raw list or does it return an arrayref? You might want to wrap that if it does.

This works with my code and just [% mylist.count %]
 mylist => sub { return [] },

--mark


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

Reply via email to