Bryce Harrington wrote:
Is there a way to reverse the order of a foreach loop?
I did not see mention of it on the Template::Iterator manpage or
elsewhere...
Looking in Template::Manual::VMethods, you'll find the reverse
method. Here an excerpt from the pod:
reverse
Returns the items of the list in reverse order.
[% FOREACH s = scores.reverse %]
...
[% END %]
cheers,
Stefano
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates