A few people have asked how I do my CPAN scans. I keep a minicpan handy and
have a little script called "grep_cpan" which reads the index file, unpacks
each distribution, does a "find | grep" and then cleans up. It allows you to
search for a given pattern in a given set of files.
# search for all uses of the word "flubber" in minicpan
grep_cpan flubber
# search for the LICENSE field in Makefile.PL
grep_cpan LICENSE Makefile.PL
I'll often replace the "find | grep" part with whatever custom logic I need,
such as "does it have a test.pl". This exercise is left for the reader.
http://schwern.org/src/grep_cpan
Its slow. http://code.google.com is less flexible but much faster. I have a
handy Firefox keyword to restrict it to Perl code.
"http://www.google.com/codesearch?q=lang:perl %s"