File test in grep not excluding current directoryby GotToBTru (Prior)
|on Jul 01, 2014 at 13:22 UTC||Need Help??|
GotToBTru has asked for the wisdom of the Perl Monks concerning the following question:
I am not sure if it is File::Find or grep that is responsible for the behavior I see.
I would rather have the directory case handled in preprocess than wanted.
Why is . included?
File::Find calls the wanted function with the directory name before it performs the readdir() on the directory. The preprocess routine is not called for this invocation.
1 Peter 4:10