Why don File::Find or Cwd work?
[Thanks to Dave Wolfe (dwolfe@risc.sps.mot.com) for this answer. -ESP] File::Find is the Perl 5 module for directory tree recursion; find.pl and finddepth.pl are the Perl 4 versions of those functions, and have been adapted for use with the Perl for Win32 system. Cwd is used to change the working directory. The File::Find distributed with build 110 has a number of problems in the way the communication variables (i.e. $dont_use_nlink, $prune, $name, and $dir) are declared and other packages are called. File::Find also uses return values from the stat command to determine where it is in the directory hierarchy. Since MS file systems don’t use the concept of inodes and links to identify files, the “number of links” field (aka nlinks) for a directory has no meaning for them. Later versions of Find.pm use the OS name from Config.pm to decide whether or not to use nlinks. Finally, File::Find depends on the faulty Cwd.pm. For build 110, the following procedure will make File::Find and Cwd wor