|laziness, impatience, and hubris|
Bad Name or Missing @INC entry - "require" path fail.by punch_card_don (Curate)
|on Feb 26, 2013 at 06:45 UTC||Need Help??|
punch_card_don has asked for the
wisdom of the Perl Monks concerning the following question:
This is going to turn out to be something maddeningly simple...
I migrated a script from one host to another. Works fine on the old. But on the new I get an error:
That line of code is a require:
to load up some configuration variables. The file is located up one directory from the script and is chmoded 755.
If I change the relative path to anything else - like ../../ or ./ or just the filename, then I get
and a list of the directories in @INC.
Why the one error when the path is ../ and the other for any other path? Do I need to add something to @INC to include the current directory of the script that's running?
Solved - please see my last post below.
Time flies like an arrow. Fruit flies like a banana.