in reply to Re: Template::Toolkit: better way to generate variable names?
in thread Template::Toolkit: better way to generate variable names?
if it were straight perl, i would have done:
the issue was with the TT meta-language, really. it *can* get a bit odd...foreach my $counterVar ( 1 .. 5 ) { $foo = "string" . $counterVar; }
what i *do* need out of the suggestion is:
-- i do need to double-check the underscore location ... --[% SET FOO = 'string' _$n %]
after reading the previous reply, the connection between TT's meta-language and 'core perl' kicked in.
|
|---|