Windows directories may contain some special file types which are likely to cause you problems if you are not aware. One that has caused me problems is similar to a UNIX "symbolic link". I believe that it is used for defining "Libraries". (Have you ever noticed that sometimes windows explorer and the "dir" command report different trees for the same root) "Shortcuts" (e.g. most of the convenient icons on your desktop) are also files which refer to other files. Perl does not provide tools for explicitly recognizing either one. This is probably not related to your current problem, but at the very least, you will have to decide what to report for these special cases.