in reply to Re: Can't locate Modules/test.pm in @INC
in thread Can't locate Modules/test.pm in @INC
I experienced a similar problem today.
Have you tried freelancing? Check out Scriptlance - I work there. For more info about Scriptlance and freelancing in general check out my home node.
For some reason the current working directory wasn't being set to the location where the script is running. It was manifested by the "can't load module ...", "can't call method XYC" ... Templates, config files .... whatever ... everything was coded with relative paths.
Simplest solution was to set the CWD with :
cwd '/full/path/here';
Does anyone know what went wrong - so that CWD isn't automaticly set to location where the script is located?
Have you tried freelancing? Check out Scriptlance - I work there. For more info about Scriptlance and freelancing in general check out my home node.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Can't locate Modules/test.pm in @INC
by Joost (Canon) on Feb 23, 2007 at 00:40 UTC | |
by techcode (Hermit) on Feb 23, 2007 at 10:34 UTC | |
by Joost (Canon) on Feb 23, 2007 at 14:13 UTC |
In Section
Seekers of Perl Wisdom