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

Re: use feature

Thread Previous | Thread Next
Johan Vromans
March 1, 2007 02:43
Re: use feature
Message ID:
Mark Jason Dominus <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About