On Jul 25, 2007, at 8:36 PM, Bill Moseley wrote:
You want it globally, or just in some cases?

    DEBUG_UNDEF

Otherwise, I'd test for values and use THROW if I didn't like what I
got.

DEBUG_UNDEF works well for what I wanted.

I did find a posting to this list from last year where a Phil Matthews asked about:

 a debug level that, when set, would cause an error to be thrown if
 an undefined variable is referenced via a GET or whatever, but not
 when it's referenced within a conditional (or via a GET within a
 conditional block that has evaluated to FALSE)?
http://osdir.com/ml/lang.perl.modules.template-toolkit/2006-05/ msg00002.html

I also think that would be useful.

Thanks again.
------------------------------------
Matisse Enzer
[EMAIL PROTECTED]




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

Reply via email to