Gmane
From: demerphq <demerphq <at> gmail.com>
Subject: Re: 5.11 (or 12) and strict
Newsgroups: gmane.comp.lang.perl.perl5.porters
Date: 2007-12-27 17:37:41 GMT (33 weeks, 5 days, 15 hours and 20 minutes ago)
On 27/12/2007, Aaron Crane <perl <at> aaroncrane.co.uk> wrote:
> 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.

Hrmm, that is impressivly simple, I had it in my head that it was much
more complicated to do.... Anyway I took the liberty of uploading this
to CPAN as 'ex::caution' as that is the experimental pragmata name i
reserved all those years ago. Once its fully in PAUSE ill make you
co-maint. :-)

How do folks feel about me changing its name to just 'caution'? Since
its a pragmata i suppose really Rafael should decide....

yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"