We don't bite newbies here... much | |
PerlMonks |
Re^2: Can't locate Modules/test.pm in @INCby techcode (Hermit) |
on Feb 23, 2007 at 00:06 UTC ( [id://601663]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|