my $htc = HTML::Template::Compiled->new(...); $htc->param( header => $header_aus_db, footer => $footer_aus_db, ); # template <%include_string header %> ... <%include_string footer %>