in reply to how to get the current folder name where the program is running?

$ENV{'SCRIPT_FILENAME'}
and some regex wizardry always works for me!

-2 votes
May I ask why?
Maybe I'll learn something too.
Update: For those of you arriving at my node via a search please note it is NOT the right answer, see rest of thread

Thanks for the enlightenment Joost and Anon! Indeed something learned!
  • Comment on Re: how to get the current folder name where the program is running?

Replies are listed 'Best First'.
Re: Re: how to get the current folder name where the program is running?
by Joost (Canon) on Dec 13, 2003 at 20:31 UTC
Re: Re: how to get the current folder name where the program is running?
by Anonymous Monk on Dec 13, 2003 at 20:46 UTC
    -2 votes May I ask why? Maybe I'll learn something too.
    Probably because your answer is wrong (hweefarn doesn't seem to be dealing with a CGI).