There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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,
In reply to Re: Triggering 'strict' from within a package
by Joost
|
|