in reply to Re: Can I force strictness on included files?
in thread Can I force strictness on included files?
Good point.
In my case, however, it is code that was designed to be run under strict. It is not any random code from outside our control, it is data files (that just happen to be in Perl) consisting of a single hashref or a single coderef. That the use strict is not in there is mere lazyness and forgetfulness (two of a Perl programmer's virtues).
Unless there is a switch to turn on strict for all files, I think I will settle for the solution of slurping and eval'ing the file manually, adding the "use strict" in the process, as suggested by broquaint.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Can I force strictness on included files?
by gellyfish (Monsignor) on Jun 30, 2005 at 10:31 UTC | |
by Thilosophy (Curate) on Jun 30, 2005 at 10:38 UTC | |
by jonadab (Parson) on Jun 30, 2005 at 11:00 UTC |
In Section
Seekers of Perl Wisdom