my $htc = HTML::Template::Compiled->new(filename => "template_whthr.tmpl"); $htc->param( table => $table ); print $htc->output; #### <%= table.html %>