# setup the table... $table = Data::Table->new(...); ... # send the result to the template: $template->param(my_table => $table->html);