Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: imposing "strict" on an included file

by dpuu (Chaplain)
on Jul 23, 2004 at 17:53 UTC ( #376944=note: print w/ replies, xml ) Need Help??


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

The files in question define tests for our hardware. In hardware testing, false-passes are the ultimate evil. A false fail can be dealt with (you just get someone to fix it), but a false-pass can make its way into production, un-noticed. Therefore, we'd far rather break modules that are currently seming to work, then to leave them with potentially hidden problems. Adding "use strict" is seen as a bit of low-hanging fruit.

--Dave
Opinions my own; statements of fact may be in error.


Comment on Re^2: imposing "strict" on an included file
Re^3: imposing "strict" on an included file
by BUU (Prior) on Jul 23, 2004 at 21:07 UTC
    So why not just open up the files in question and type "use strict" at the top?
      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://376944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-10-02 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (45 votes), past polls