Are you using Win2000.
With me it doesn't change the directory on Windows2000.
When the browser open it shows me the directory last browsed too and not the directory that is returned by cwd().
The directory that is returned by cwd() is the directory were I started the script from. When I use chdir that directory has been changed but the directory in the browser stays untouched. When I browse to another location in the browser and I exit the browser that location is now stored and shown everytime I open the browser even when I reboot. It's that pointer I am not able to change. I believe it must be somewhere a setting in the windows2000 register that is not correct.
On Windows NT it is working fine.
Did anybody had simular problems ?
my $_pwd = getcwd();
print "$_pwd\n"; # shows c:/perl/training : directory were I start
chdir("c:\\public") or print STDERR "\n\tERROR in chdir: $!\n";
$_pwd = getcwd();
print "$_pwd\n"; # shows c:/perl/public: directory have been chang