return( $sth->fetchall_arrayref); #### my $t=Fs2::DBrequest::search_pl_entries(1,1,"a"); #### ## 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 %] ##