in reply to Re: Can't locate Modules/test.pm in @INC
in thread Can't locate Modules/test.pm in @INC
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?
|
|---|
| 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 |