Template2
Template2 copied to clipboard
STRICT is not the default and does not die on error [rt.cpan.org #60959]
Migrated from rt.cpan.org#60959 (status was 'new')
Requestors:
From [email protected] on 2010-09-02 01:16:45:
I'm glad to find the STRICT option available in versions 2.21 and above. It would be nice if it were the default. ;-) Failing that, please document it prominently in the main synopsis, e.g.
my $config = {
STRICT => 1, # new since version 2.21
...
I would recommend that process() throw an error if the stricture checks fail. It might be early enough to get away with that rather than needing a NO_REALLY_STRICT_I_MEAN_IT option.
Thanks, Eric
At this point making strict default would be a major behavior change. I don't think that's appropriate. Possibly we could make it default if you do:
use Template qw(strict)