On Wed, 31 Oct 2001, Viljo Marrandi wrote: > Hello, > > I know there must be a simple solution for this problem, but i didn't > find it in docs.
Look in Template::Manual::Directives under FOREACH > How can i print out inside FOREACH loop (or WHILE or WHATEVER) how many > loops it has already done? Is there some kinda counter which counts it? > Basically I'd like to get something like this: > > [% FOREACH element = array %] > [% loop.number %]. [% element.value %] > [% END %] s/loop\.number/loop\.count/ Simon. -- "I was reading the dictionary. I thought it was a poem about everything." - Steven Wright