Hi Perl Monks,
Just a quick question for you gurus, can anyone tell me how I can use strict in my script, yet still import a hash using the require statement?
Basically I have include.pl which includes a %SETTINGS hash. I want to use this in script.pl. However, use strict requires that I scope all my variables in script.pl... so how can I get around this? If I scope in script.pl
I.e. my %SETTINGS;The include doesn't work properly, however if I scope in include.pl it doesn't work either.
What can I do?
Thanks,
Tom
In reply to use strict and require by CodeJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |