When I tell this module set prune to 0 it should NOT descend directories
I don't know where you got that idea.
First, there is no 'prune' option that you can pass in to File::Find::find(). Second, you have to set $File::Find::prune to one (not zero). Third, you have to set it from within your "wanted" subroutine when the traversal gets to a directory that you don't want the traversal to descend into.
In your case, you appear to want to have your "wanted" subroutine always set $File::Find::prune= 1; so no subdirectories are traversed into.
- tye
In reply to Re: File::Find::prune saga (way off)
by tye
in thread File::Find::prune saga
by mikejones
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |