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
    Thanks Dean,

    that was exactly what I was looking for.

    Hell of alot of work to implement, but it was worth it!

    Now, the project admin can enter different utilization ratios for the programmers on the team and bug deadlines are calculated on the fly according to estimated work hours and util ratio and shown directly in Bugzilla - totally dynamic :-D

    Thank you for your help!

    Regards,

    Fred