On Mon, 12 Apr 2004, Aleksandr Guidrevitch wrote: > I'm new to the mailing list. I have a question about wrong WHILE behaviour > (this is a minimal snippet to reproduce): > [% avar = [0,1,2] %][% WHILE (bvar = avar.shift) %][% bvar %][% END %] > > It doesn't print nothing... Since fixing Directives.pm and Stash.pm > to recognize undef breaks some tests from test suite, I expect this is > a known bug/feature. > > Is there any elegant workaround ?
How about this? [% avar = [0,1,2] %][% WHILE avar.size %][% avar.shift %][% END %] Dave /L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\ Dave Cash Power to the People! Frolicking in Fields of Garlic Right On-Line! [EMAIL PROTECTED] Dig it all. _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
