develooper Front page | perl.perl6.language.strict | Postings from February 2001

Re: Warnings, strict, and CPAN

Thread Previous | Thread Next
February 17, 2001 11:49
Re: Warnings, strict, and CPAN
Message ID:
On Sat, Feb 17, 2001 at 11:09:29AM -0800, Peter Scott wrote:
> >No, there will probably be a big push to shut it off, based on
> >historical reactions to this sort of thing.
> Maybe I'm missing something; I'm sure the philosophy is for the standard 
> distribution to be -w clean, so shouldn't everything be equally okay with 
> use warnings?

Try it and see!  I'm serious.  It'll be an interesting experiment.

BTW  The modules themselves might be -w clean, but the testing suite
certainly isn't!

> >Hmm, its damned silly that you can't give two modules on the command
> >line.
> ???
> $ perl -Mwarnings -Mstrict -le 'print keys %INC'

Sorry, misspoke.  That works.  This does not:

PERL5OPT='-Mwarnings -Mstrict' perl -wle 'print keys %INC'
unkown warnings category '-Mstrict' at -e line 0
BEGIN failed--compilation aborted.

It seems to be parsing that as: C<use warnings '-Mstrict'>.  IMHO this
is a bug.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About