Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why don File::Find or Cwd work?

CWD file
0
Posted

Why don File::Find or Cwd work?

0

[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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.