Front page | perl.perl5.porters |
Postings from March 2007
Re: use feature
Thread Previous
|
Thread Next
From:
Johan Vromans
Date:
March 1, 2007 02:43
Subject:
Re: use feature
Message ID:
m2ps7tw8fi.fsf@phoenix.squirrel.nl
Mark Jason Dominus <mjd@plover.com> writes:
> Consider "use 'strict'". People are allowed to put just "use
> 'strict'" in their programs, without saying which strictures they
> actually want, and the outcome is that we can't add any new
> strictures, because doing so would break every program in the world
> that starts with "use 'strict'".
It is perfectly possible to add new strictures, you'd only have to
enable them explicitly.
use strict ; # default -> vars subs refs
use strict qw(parens); # require parens for all function calls
Or even:
use strict ':pbp'; # all PBP strictures
-- Johan
Thread Previous
|
Thread Next