#!/usr/bin/perl use strict; use warnings; use Template::Alloy qw(HTML::Template); use HTML::Template; my $data = [ [qw{one two three}], [qw{four five six}], [qw{seven eight nine}], ]; my $tmpl = do{local $/;}; my $t = HTML::Template->new(scalarref => \$tmpl) or die qq{tmpl obj failed\n}; $t->param({data => $data}); print $t->output; __DATA__ ---------------------------