|
Subject: Re: 5.11 (or 12) and strict Newsgroups: gmane.comp.lang.perl.perl5.porters Date: 2007-12-27 15:04:21 GMT (41 weeks, 1 day, 15 hours and 42 minutes ago)
demerphq writes:
> Years ago i proposed a new pragma 'caution' which was basically
> strict+warnings. I think this would be a good way to do what you want.
> Plus it would be cool to be able to put
>
> use caution;
>
> at the top the script.
I believe this would work, and could be CPANned without any new
support from the core:
package caution;
sub import {
strict->import;
warnings->import;
}
sub unimport {
strict->unimport;
warnings->unimport;
}
1;
That said, I'm strongly in favour of C<use 5.012> enabling strictures
automatically.
--
Aaron Crane
|
|
|