Subject: | getdcwd does not work as expected within a forked process in Win32 |
Hi,
getdcwd does not return the correct drive/directory combination within a
forked process in Win32. Please check the accompanying program:
#!perl -wl
use strict;
use Cwd;
if (fork) {
chdir 'C:/Windows';
print getdcwd;
# Output: C:\Windows
}
else {
chdir 'C:/temp';
print getdcwd;
# Output: C:\Windows
}
Regards,
Alan Haggai Alavi.
--
The difference makes the difference