If I start Template with

my $tt = Template->new (STRICT => 1);

then in the template I have something like this:


[%- IF function.bugs %]

=head3 [% trans.bugs %]

[%- function.bugs %]

[%- END %]

I get an error like


var.undef error - undefined variable: function.bugs at ./make-pod.pl line 65.

What is the correct way to test whether a variable or hash key is
defined or not? I searched the documentation found at the website but
cannot see what is required here.

Thanks for any help.

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to