in reply to Re: (jeffa) Re: require() turns off strict?
in thread require() turns off strict?
#ifdef PEDANTIC_MODE # include <limits.h> # define PEDANTIC_MODE INT_MAX #endif
I think you meant to say "use strict only works in the current lexical scope" which is slightly different from the current packageNope, the current package holds for the length of the current lexical scope[1], which is usually the file-level lexical scope. See the docs for more info.
_________
broquaint
[1] although the 5.005 docs say it is dynamically scoped but I'm pretty sure it's lexically scoped because it takes effect at compile-time which isn't orthogonal with dynamically scoping
|
|---|