#!/usr/bin/perl -w
use HTML::Template;
my $temp = q||;
$template = HTML::Template->new(scalarref => \$temp);
$template->param(bob=>"bob");
print $template->output;
__DATA__
bob
####
#!/usr/bin/perl -w
use HTML::Template;
use Data::Dumper;
my $template = HTML::Template->new(filename => $f_name,debug=>1);
print Dumper($template);
####
#!/usr/bin/perl -w
use HTML::Template;
my $temp = q|something and
bob failed
not displayedjoe failed
not displayed either because 0 is false
jim failed|;
my $template = HTML::Template->new(scalarref=>\$temp);
$template->param(bob=>"bob",jim=>0);
print $template->output;
__DATA__
something and bob
joe failed
jim failed