in reply to Re: Triggering 'strict' from within a package
in thread Triggering 'strict' from within a package
Ah, you mean the package main; importer code :-)
Sadly not :) It will actually look at other stuff - such as @INC ordering - based on location (& other factors) also, so it will actually load different version of a module based on what environment the script is being run in.
Anyway, strict is a lexical pragma, so you cannot set at it for other files. I assume this was done to keep non-strict code working together with strict code
I had a horrible feeling something like that might be the case. Note, though, that it's not a case of turning it off, but more a case of not turning it on - it's just not useful in a lot of cases.
Cheers!
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: Re: Re: Triggering 'strict' from within a package
by merlyn (Sage) on Aug 12, 2002 at 17:15 UTC | |
by kal (Hermit) on Aug 12, 2002 at 17:40 UTC |