use HTML::Template();
use HTML::FillInForm();
use CGI();
my $string = '';
my $query = new CGI;
my $template = new HTML::Template(scalarref => \$string);
my $fif = new HTML::FillInForm;
print $fif->fill(scalarref => \$template->output(),
fobject => $query);
####
my $html = $template->output();
print $fif->fill(scalarref => \$html,
fobject => $query);