in reply to Triggering 'strict' from within a package
I rolled my own importer which automatically places the modules in main::
Ah, you mean the package main; importer code :-)
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.
this is also one of the reasons you have to use strict; for every module you use instead of defining it in the top-level code.
Update: I cannot think of any reason to turn off strict based on the location of the script, so I would suggest keeping it on where it makes sense.
Hope this explains a bit,
Joost.
-- Joost downtime n. The period during which a system is error-free and immune from user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Triggering 'strict' from within a package
by kal (Hermit) on Aug 12, 2002 at 15:14 UTC | |
by merlyn (Sage) on Aug 12, 2002 at 17:15 UTC | |
by kal (Hermit) on Aug 12, 2002 at 17:40 UTC |