According to the manual, chdir, Changes the working directory to EXPR
, if possible.
This script, when executed from cmd.exe:
my $path = 'C:\\some\\path\\';
print "$path\n";
chdir("$path") or die "fail $!";
results in this output:
C:\some\path\
but when I am returned to the command prompt - I'm still at the original directory. Am I misunderstanding the purpose of chdir?