Behavior of File::Find's preprocess and globby hsinclai (Deacon)
|on Feb 03, 2005 at 22:42 UTC||Need Help??|
hsinclai has asked for the wisdom of the Perl Monks concerning the following question:
Here's a representative example from a larger script - I used the preprocess key in File::Find in an attempt to minimize matching operations and overhead inside of wanted's subroutine in the case of having to sift through many many files.
The correct files in the first level directory get returned, but two additional things happen:
I must misunderstand what "preprocess" is for, but I am handing it the list it expects, I think..
So, does anyone know why the directory name gets returned in this case, and even better yet, a slick way to be able to specify file extensions from outside of "wanted" ?
Many thanks.. PS- I know it might be easier with File::Finder, and maybe other modules.. I was trying to stick with a standard module... many thanks..
Update: minor clarification of explanation