"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Behavior of File::Find's preprocess and glob by hsinclai
|
|