in reply to Strange behavior in File::Find (stopped working for no reason)
Your preprocess subroutine, hi, returns an empty list, so there are no files too iterate over.
Why wasn't the preprocess subroutine called before wanted? Because the directory argument to find() is not preprocessed, wanted is run on it directly. Only the directories' contents that are subject to readdir are preprocessed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange behavior in File::Find (stopped working for no reason)
by pvaldes (Chaplain) on Apr 12, 2021 at 17:08 UTC |