## first try ########################################## if ($c{a} eq "c_searchtest") { $vars = { search => $f }; } ########################################## ## second try my @f = @$t; if ($c{a} eq "c_searchtest") { $vars = { search => $t }; } ## and in the template [% FOREACH foo = f %]
START THE OUTPUT
[% foo.0 %]
[% foo.1 %]

[% END %] ##