>>>>> "Mark" == Mark Anderson <[EMAIL PROTECTED]> writes:
Mark> btw, another unfortunate problems in this area is that if you do Mark> turn on DEBUG=undef, you can't successfully test for being defined Mark> without dying: Mark> [% IF (!defined(blah)) %]protected[%END%] Mark> though you could do something awful like: Mark> [% DEFAULT blah = 'unusual_value' %] Mark> [% IF (blah == 'unusual_value')]protected[%END%] DEFAULT isn't about undef. It's about false. [% foo = ''; DEFAULT foo = 'hey'; foo %] prints "hey". -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
