Oct 28, 2010, 8:35 AM
Post #3 of 3
Your first system command opens a shell, does a cd to the parent directory and closes (which means that your working directory is still the same as before, because the cd was run in a child process).
Re: [pulkitjain25] system command for running command line functions
[In reply to]
The second system command outputs the variable foo. Assuming that foo is an environment variable, you can easier do it from within Perl using