use HTML::Template; my $template = q{
}; my $template = HTML::Template->new(scalarref => \$template, option => 'value'); $template->param(table_data => \@table_data); print $template->output();