Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: File test in grep not excluding current directory

by choroba (Chancellor)
on Jul 01, 2014 at 13:29 UTC ( #1091840=note: print w/replies, xml ) Need Help??


in reply to File test in grep not excluding current directory

The preprocess function and grep work correctly. The problem is the current directory is processed once before the preprocess function is called - you can verify by adding a debug print
preprocess => sub { print "preprocessing [@_]"; return grep -f $_ && -M _ < 1, @_ }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1091840]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-03-29 00:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (343 votes). Check out past polls.