Jiří Pavlovský wrote:
>   Hi,
> 
> I have an object passed to my template, which has a method that returns 
> list of hashes.
> I want to iterate over this list.
> Problem is that if the list contains just one hash, it iterates over 
> this hash.
> Can I do anything else then detect number of items in the list?

Change the method so it returns a reference to the list instead of the
list itself. (or add another method that does this). cf the *_rs methods
in DBIx::Class::Resultsets

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

Reply via email to