Hello,
I am trying to run some tasks on files in the site root and in the current directory, while being called via CGI. The way to find where I am in managed languages is with Server.MapPath() with parameters like "." for the current directory, "~" for the application root or "/" for the website root. The problem is getcwd or PATH_TRANSLATED contain the location of the script on the disk, not the (virtual) folder it is called from. Also, I couldn't find any way to determine the root of the site. Could you suggest a Perl equivalent for that .net function?
Thank you