[X-Unix] How to get working directory in a perl script?

Stewart C. Russell scruss at scruss.com
Sun Apr 6 15:01:27 PDT 2008


Jerry Krinock wrote:
> 
> As you can see, the script did successfully change my working directory 
> to /Users/jk/Music, but $ENV{'PWD'} is giving me /Users/jk.  How can I 
> get the correct answer?

use Cwd qw(chdir);

  Stewart


More information about the X-Unix mailing list