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.
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 :
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