rkg has asked for the wisdom of the Perl Monks concerning the following question:

Apologies in advance for a RTFM question -- but I can't locate the answer in the excellent copious Template Toolkit docs --
how do you tell TT2 to throw an error if a template references an variable not in the namespace,
similar to use strict "vars" in perl?
Thanks
rkg

Replies are listed 'Best First'.
Re: rtfm: "use strict vars" in TT2?
by adrianh (Chancellor) on Aug 29, 2003 at 21:19 UTC

    You can pass DEBUG_UNDEF as a DEBUG flag to cause an error when encountering an undefined variable. See Template::Manual::Config for full details.