in reply to Windows NT: How Do I change Working/Current directory within a perl script,

Accordingly to perldoc -f system:

Does exactly the same thing as "exec LIST", except that a fork is done first, and the parent process waits for the child process to complete.

This means that only the forked process will change its working directory; you should use instead the command chdir.

HTH, Valerio

  • Comment on Re: Windows NT: How Do I change Working/Current directory within a perl script,
  • Download Code