OnionKnight has asked for the wisdom of the Perl Monks concerning the following question:
but didn't work. AFAIK when running perl scripts as CGI the directory should be the same as the script's. I could use absolute paths, but that gets less prettier and no compatibility with other's scripts which uses relative paths.use File::Basename; use Cwd; cwd(dirname($ENV{"SCRIPT_FILENAME"}));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl's cwd not the same as the scripts location.
by lestrrat (Deacon) on Aug 21, 2005 at 02:44 UTC | |
|
Re: mod_perl's cwd not the same as the scripts location.
by Bob9000 (Scribe) on Aug 21, 2005 at 04:21 UTC | |
by OnionKnight (Sexton) on Aug 21, 2005 at 16:12 UTC | |
|
Re: mod_perl's cwd not the same as the scripts location.
by brian_d_foy (Abbot) on Aug 21, 2005 at 06:48 UTC | |
|
Re: mod_perl's cwd not the same as the scripts location.
by sgifford (Prior) on Aug 22, 2005 at 01:19 UTC |