Template2 icon indicating copy to clipboard operation
Template2 copied to clipboard

STRICT is not the default and does not die on error [rt.cpan.org #60959]

Open atoomic opened this issue 7 years ago • 1 comments

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

atoomic avatar Oct 05 '18 16:10 atoomic

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)

toddr avatar Oct 05 '18 18:10 toddr