in reply to Problems using File::Find
This isn't a case thing by any chance? Try adding /i to your regex. At you have it, the regex won't match 'Class' or 'CLASS' or ...
Also, not that it will affect what you are finding, but it would be better to do you -d check before calling lstat (**if you need to call it at all?), as currently you are needlessly running lstat on every file and directory in the tree(s).
** File::Find guarentees to have run stat on every file/dir it gives you so that you can use the magic _ in your -X tests. Unless you need the results of lstat, it is just wasted effort.
|
|---|