in reply to Re^3: IF in a loop using HTML::Template
in thread IF in a loop using HTML::Template

I found what I needed based on information from you, by adding this line: "global_vars=1" - It treats parameters sent to the template as global.
my $t=HTML::Template->new(filename=>'temp.tmpl', global_vars => 1,);
Thanks again for pointing me to the right direction!