The directory probably is changing, but you are printing a stale value. You did not change the value of the $cwd scalar variable between print's. If you are using Cwd, try this:
print "CWD:$cwd"; my $path_data = $cwd."\\data";//Also want to make the concat in-casese +nsitive chdir($path_data) or die "Cant chdir to $path_data $!"; $cwd = getcwd(); print "\nCWD:$cwd"; #//same directory as above gets printed
In reply to Re: chdir not working
by toolic
in thread chdir not working
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |