my $ary_ref = [ { value=>1, text=>'val1'}, { value=>2, text=>'val2'}, ]; .. $template->param( select = $ary_ref, ... ); ### .tmpl <select> <TMPL_LOOP NAME=select> <option value="<TMPL_VAR NAME=value>"><TMPL_VAR NAME=text></TMPL_LOOP> </select>
In reply to Re: display hash in an html template
by nedals
in thread display hash in an html template
by rsennat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |