Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is this a documentation omission, or just an implementation quirk? In other words, is it guaranteed that files will always be visited before subdirectories?
For example, if I want to visit subdirs only if the parent dir contains a certain marker file, then I could set $File::Find::prune=1 when each subdir is visited unless the marker file has been seen. But only if the above "rule" is really a rule.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does File::Find always visit files before subdirs?
by ig (Vicar) on Aug 05, 2012 at 06:38 UTC | |
|
Re: Does File::Find always visit files before subdirs?
by BillKSmith (Monsignor) on Aug 05, 2012 at 04:05 UTC | |
|
Re: Does File::Find always visit files before subdirs?
by zentara (Cardinal) on Aug 05, 2012 at 12:48 UTC | |
|
Re: Does File::Find always visit files before subdirs?
by Anonymous Monk on Aug 05, 2012 at 16:25 UTC |