use CGI qw(:standard); use CGI::Carp 'fatalsToBrowser'; use URI::Escape; use HTML::Template; use strict; use warnings; my $q = new CGI; $| = 1; my $template = HTML::Template->new(filename => "D://...//test.html"); print $q->header(); my $onevariable = $q -> param ("web"); print $template->output(); #displays beautiful css styled headline in grid format use ownModule; print '

'; #now removing all the updates print <<_EOT_; _EOT_ my $amount = ownModuleOtherMethod(); $template->param( AMOUNT => $amount); #now i want the results to display $template->output; #can not do that, else it would print the same content again