Can Perl's Template Toolkit warn on undefined values?

后端 未结 2 1577
孤城傲影
孤城傲影 2021-02-13 09:05

Is there a way to make Perl\'s Template display warnings for all undefined values that I attempt to use the GET directive on (via [% %]) during T

2条回答
  •  难免孤独
    2021-02-13 09:53

    Yes. If you pass the DEBUG option to Template->new, TT will warn you about undefined values.

    See the docs here: http://search.cpan.org/dist/Template-Toolkit/lib/Template/Manual/Variables.pod

提交回复
热议问题