Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

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


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

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.
  • Comment on Re^4: imposing "strict" on an included file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://377034]
help
Chatterbox?
[RonW]: thanks
[LanX]: I thought MST perl was obvious ;-)
[RonW]: I have so much accumulated in my memory that finding the right item at a given moment often fails

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-08-18 20:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?