in reply to Template reserved words
You can get around the unfortunate choice of keys by using Variable Interpolation:
[% FOR line IN xml %] [% size_key = 'size'; value_key = 'value'; line.$size_key.$value_key %] [% END %]
This assumes you are using Template::Toolkit, of course.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
---|
In Section
Seekers of Perl Wisdom