use HTML::Template::Expr; my $t = HTML::Template::Expr->new(filehandle => *DATA, loop_context_vars => 1); $t->param(data => [ map { {value => $_} } ('a'..'z') ] ); print $t->output; __DATA__
| |
##
a b c d
e f g h
i j k l
m n o p
q r s t
u v w x
y z