Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

rtfm: "use strict vars" in TT2?

by rkg (Hermit)
on Aug 29, 2003 at 20:05 UTC ( [id://287823]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://287823]
Approved by krisahoch
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found