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

strictness of core modules

Peter Scott
March 6, 2000 14:26
strictness of core modules
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About