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

strictness of core modules

From:
Peter Scott
Date:
March 6, 2000 14:26
Subject:
strictness of core modules
Message ID:
4.2.2.20000306141717.00acf2f0@mail.psdt.com
This may be a stupid question.  Why do about half of the core modules not 
use strict?  Being lexically scoped it needs to be turned on explicitly for 
each file, no?

Starting from lib/5.5.650:

  find . -name "*.pm" -print | perl -pe 'system qq(grep -q "use\s+strict" 
$_); s/$/$? ? ": no" : ": yes"/e'

yields 109 'yes' vs 84 'no'.

Wouldn't it be a good thing if they all used strict?

--
Peter Scott
Pacific Systems Design Technologies




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