|more useful options|
Using requireby kidd (Curate)
|on Jul 10, 2002 at 16:47 UTC||Need Help??|
kidd has asked for the
wisdom of the Perl Monks concerning the following question:
I started using strict not so long ago, and now Im in front of a problem. When I create my scripts I like to make a config.pl so it would be the only thing a user changes(settings, option, that kind of things)...
So yesterday I made the first script this way, only that this time I used strict and -w...
I created my config.pl and added the require line, I test it and oopss...I don't seem to be using the variables inside config...
Could someone give me some light and tell me why it isnt working that way...here is some example...
Let's say I have my "config.pl" with a variable:
And my main code is like this:
For some reason $option is not "imported" from config.pl and I can't explain why...thanks