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

use Cwd; print cwd();

cheers

tachyon

  • Comment on Re: how to get the current folder name where the program is running?
  • Download Code

Replies are listed 'Best First'.
Re: Re: how to get the current folder name where the program is running?
by exussum0 (Vicar) on Dec 13, 2003 at 12:56 UTC
    Wrong. This gets you the directory you are currently in, your current working dir. If I do /Users/sporty/t.pl, and I'm in /Applications, I'd get /Applications, not /Users/sporty/t.pl

    Play that funky music white boy..