in reply to Re: how to get the current folder name where the program is running?
in thread how to get the current folder name where the program is running?
#!/usr/bin/perl print "$ENV{SCRIPT_FILENAME}\n";
Prints an empty line when not run as a CGI program.
Its useful in a CGI progam though, and it's in the CGI specs so it might be more portable in that situation than the other methods specified above.
actually, I kinda like the suggestion - traxlog++ :-)
Joost
|
|---|