Perl built-in chdir() and Cwd:chdir()¶
built-in chdir() (as of Perl 5.10.1)
- changes the working directory of the perl script,
- does not change the working directory of the shell (environment variable PWD).
Cwd:chdir()
- changes the working directory of the perl script,
- changes the working directory of the shell (environment variable PWD)