NitroJin has asked for the wisdom of the Perl Monks concerning the following question:
If I have two perl scripts like this:
# file1 # Working directory: /home/test system("./file2"); ----- POINT OF INTEREST ----- # file2 # Working directory: /home/test chdir("test2");
At the point labelled "POINT OF INTEREST", would the working directory be /home/test or /home/test/test2? In other words, if you change the working directory in another script, will the working directory of the initial file be changed? Thanks in advance!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: chdir through multiple scripts
by Marshall (Canon) on Aug 02, 2016 at 21:11 UTC | |
|
Re: chdir through multiple scripts
by Anonymous Monk on Aug 02, 2016 at 21:11 UTC |