in reply to Check for truth of variable in HTML::Template
The fine documentation suggests you need to call $template->param(FINISHED => $finished).