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

Re: 5.11 (or 12) and strict

Thread Previous | Thread Next
Aristotle Pagaltzis
December 27, 2007 06:29
Re: 5.11 (or 12) and strict
Message ID:
* Sam Vilain <> [2007-12-27 14:40]:
> Right now, 'no strict; no warnings;' at the top of the script
> implies that not only has the programmer chosen to not use
> strict or warnings, they've chosen to make a point of it.

No, all it means is that they did something useless. That makes
it seem more likely that they were copypasting or superstitious
than that they meant to take a stand.

> With automatic strict, a reader might come across "use 5.012;
> no strict;" and think that there might be a good reason for it.

If the code runs under strictures as well as it runs without
them, then the same applies as above: turning them *off* was
useless, so as per above I’d be inclined to suspect copypasting
or superstition.

> Can we throw away that expressivity?

Are you speaking hypothetically or have you actually *seen*
anyone use `no strict` at the top of a script where no strictures
were previously enabled? And if you have, do you *know* their

Aristotle Pagaltzis // <>

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