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.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller