in reply to How do I change directory to root directory
my $cwd = `pwd`; print ("$cwd\n");
You've probably truncated your script and you say that your die statement does print, so this might not be applicable, but you should see perlfaq 8.34. A script can't change the parent shell's directory.
|
|---|