Excellent post, but I have one [extremely] minor niggle. The use of -n 10 in your xargs command is most likely superfluous. Most of the time xargs can figure out by itself the maximum number of options it can pack onto a single command line. Setting an arbitrary number (especially one as low as 10) could potentially cause xargs to call perl far more times than necessary.
Comment on Re: Re: searching a string in many files
I did not know that about xargs. That's the second new thing I learned today. Boy does my brain need to cool off now. But seriously, ++ and thanks for the tip.