Just another Perl shrine | |
PerlMonks |
File test in grep not excluding current directoryby GotToBTru (Prior) |
on Jul 01, 2014 at 13:22 UTC ( [id://1091839]=perlquestion: print w/replies, xml ) | 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.
Output(as expected):
I would rather have the directory case handled in preprocess than wanted.
Output:
Why is . included? UpdateFile::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.
Output:
1 Peter 4:10
Back to
Seekers of Perl Wisdom
|
|