in reply to chdir not working
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: chdir not working
by Anonymous Monk on Mar 14, 2011 at 21:53 UTC |