in reply to Re^2: imposing "strict" on an included file
in thread imposing "strict" on an included file

So why not just open up the files in question and type "use strict" at the top?
  • Comment on Re^3: imposing "strict" on an included file

Replies are listed 'Best First'.
Re^4: imposing "strict" on an included file
by dpuu (Chaplain) on Jul 23, 2004 at 23:31 UTC
    Two reasons off the top of my head: it would require all the files to be touched (and touching a file is, itself a risk); but, more importantly, it would only work for existing files. One possibility to avoid that issue would be to grep the files at the start of the test and die if "use strict" isn't found. But a simple way to say "do_strict $filename" would be more elegant.