in reply to Unused variable in HTML::Template results in blank screen

Give this a try:
my $template = HTML::Template->new(filename => $f_name, die_on_bad_par +ams => 0);


From the HTML::Template docs:

die_on_bad_params - if set to 0 the module will let you call $template->param(param_name => 'value') even if 'param_name' doesn't exist in the template body. Defaults to 1.

Replies are listed 'Best First'.
Re: Re: Unused variable in HTML::Template results in blank screen
by jonnyfolk (Vicar) on Aug 09, 2003 at 09:44 UTC

    That worked very well - thanks for pointing it out. I was able to remove the conditional altogether so I think it will be a permanent piece of my armoury

    (BTW sorry about the RTFM aspect and thanks for not pointing it out - I relied on the info in the website as I still find module docs a bit beyond my ability. That should improve with experience, I hope!)