#!/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