in reply to working with relative paths

Take a look at the following %ENV variables:

SCRIPT_NAME : /cgi-local/env.pl
DOCUMENT_ROOT : /u/web/folder
SCRIPT_FILENAME : /u/web/folder/cgi-bin/env.pl

You can use these to start your absolute path, rather than having to enter it by hand, and all you have to do from there is keep track of the current folder with a little creative programming.

Replies are listed 'Best First'.
Re^2: working with relative paths
by apotheon (Deacon) on Oct 30, 2004 at 03:05 UTC
    This isn't for a website, and I'm not using a cgi-bin. In fact, I don't have any kind of web server installed on this system. I'm just writing Perl on it for system administration tasks, mostly.

    - apotheon
    CopyWrite Chad Perrin