Spidy has asked for the wisdom of the Perl Monks concerning the following question:
I am currently working on a web application that involves at least 50% of the component scripts accessing a database. This means that a lot of scripts need to have the information required to connect to said database, and in that spirit I have created a module(config.pm) which they use.
However, I am having a problem.
The configuration module is within the root directory for the project. I have a few scripts that are inside directories below the root directory, and would like to keep using the one configuration module. Does anyone know how I could use a module located at ../config.pm in relation to the script that needs to access it?
Thanks,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Referring to a module above the CWD
by FunkyMonk (Bishop) on Jun 16, 2007 at 20:29 UTC | |
by moritz (Cardinal) on Jun 16, 2007 at 21:26 UTC | |
|
Re: Referring to a module above the CWD
by merlyn (Sage) on Jun 16, 2007 at 21:33 UTC | |
by Spidy (Chaplain) on Jun 17, 2007 at 00:21 UTC | |
by jsegal (Friar) on Jun 17, 2007 at 12:49 UTC | |
by merlyn (Sage) on Jun 17, 2007 at 16:16 UTC |