Using the backticks creates a new process to run the command in. So you're starting a new process, it changes the directory *in that process*, and then the command exits and the process terminates.
It doesn't change the directory in the process your Perl program is running in. For that use the chdir function.
In reply to Re: trouble with system commands
by roboticus
in thread trouble with system commands
by tricolaire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |