in reply to HTML::Template how to use IF/Else in a LOOP
$tmpl->param(a => [ { b => 1}, { b => 2 }]);
and a <TMPL_LOOP VAR=a>, then only the variable b is available within the loop, and no other variables, independently of other param() calls.
You can change that by setting global_vars => 1 in the constructor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Template how to use IF/Else in a LOOP
by tinita (Parson) on Jan 21, 2011 at 11:02 UTC |