Setting the CWD

Setting the CWD

am 15.01.2009 05:31:46 von fREW Schmidt

I am writing a CGI::App and I keep having to use full paths to get
various places in my application. How can I set the CWD for a certain
Location section of my code?

Thanks!

--

-fREW

Re: Setting the CWD

am 15.01.2009 06:32:44 von Adam Prime

fREW Schmidt wrote:
> I am writing a CGI::App and I keep having to use full paths to get
> various places in my application. How can I set the CWD for a certain
> Location section of my code?

If you're running your CGI::App code through Registry, and using
mod_perl 2, and running under the prefork MPM, then you can instead use
RegistryPrefork instead of registry, which is exactly the same except it
does the chdir you're asking for.

HTH,

Adam