in reply to Perl Template::Toolkit combining variables?
If I understand your needs correctly, You can use variables as key names, but, I believe, need to store the full key value to a variable. Something like the following:
[% when = 'NEW'; num = 75; key = 'RemainingDays' _ when _ '-' _ num; %] ... [% TimeData.$key %]
Good Day,
Dean
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Template::Toolkit combining variables?
by Frederic_S (Novice) on Jan 05, 2011 at 15:20 UTC |