in reply to Re^2: How do I cope with nested TMPL_VAR in HTML::Template::Pro?
in thread How do I cope with nested TMPL_VAR in HTML::Template::Pro?
$tmpl->param(loopname => [ { anothervariable => 'foo', foo => 'actual value', }, ... ])
You need to change that to
$tmpl->param(loopname => [ { fixed_key => 'actual value', }, ... ])
For example by creating a fixed coyp of each hashref like this:
my $new = { fixed_key => $old->{$old->{anothervariable}} };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I cope with nested TMPL_VAR in HTML::Template::Pro?
by PerlOnTheWay (Monk) on Aug 03, 2011 at 15:03 UTC | |
by moritz (Cardinal) on Aug 03, 2011 at 15:07 UTC | |
by PerlOnTheWay (Monk) on Aug 03, 2011 at 15:15 UTC |