develooper Front page | perl.perl5.porters | Postings from December 2007

Re: 5.11 (or 12) and strict

Thread Previous | Thread Next
From:
demerphq
Date:
December 27, 2007 06:36
Subject:
Re: 5.11 (or 12) and strict
Message ID:
9b18b3110712270635i67666e29l514c5aeffc91f774@mail.gmail.com
On 27/12/2007, Gabor Szabo <szabgab@gmail.com> wrote:
> Steffen Mueller wrote:
> > "use 5.10.0;" already auto-imports feature.pm and loads the 5.10
> > specific features.
> >
> > How about having "use 5.11.0;" (or 5.12.0) automatically import strict
> > along with the 5.10+5.11 feature set? Naturally, the -E switch for
> > one-liners should *not* do that.
>
> +++++++++++++
>
> Will adding use warnings have to wait till 5.14?
> While turning on use warnings on production code is debated IMHO
> it is widely accepted as a good practice to turn it on during development.
>
> (maybe even with FATAL => 'all' ??)
>
> Again my view might be skewed as I see many people learning Perl.
>
> So would it be possible to turn it on as well along with strict?

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. Maybe make it take a dummy argument
'here_be_dragons' as well. :-)

Yves






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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About