Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Search the contents of CPAN with gonzui

by LTjake (Prior)
on Apr 01, 2005 at 14:14 UTC ( #444182=perlnews: print w/ replies, xml ) Need Help??

gonzui is a source code search engine written in Ruby by Satoru Takabayashi. It will index various code/file formats (C, Ruby, Perl, JavaScript, plain text to name a few), extract various metadata elements and allow you to search it.

Tatsuhiko Miyagawa, who wrote the Perl plugin for gonzui, has indexed a mini-CPAN (he tells me it took 48 hours to do the initial indexing, but incrementals are quite fast) and made it available for public consumption (here). You can read his announcement in his blog.

You can view some statistics of the database.

Things to try:

  • Find all Perl files that define the function foobar (results)
    • Note, clicking on a result will send you directly to the appropriate line. You can then click on "foobar" to see what files make a call to "foobar" (any "foobar" not this specific one).
  • Search a certain package for something (example)
  • Search for a particular class definition (example)
  • Vanity searches (example :)

The advanced search page should give you a good idea as to what you can search on.

gonzui is still early in it's development and some parsers are (obviously) not quite perfect. However, I'm told that future enhancements include XML and template parsing as well as some database changes to allow for case insentive searching.

--
"Go up to the next female stranger you see and tell her that her "body is a wonderland."
My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
" (src)

Comment on Search the contents of CPAN with gonzui
Download Code
Re: Search the contents of CPAN with gonzui
by pelagic (Curate) on Apr 01, 2005 at 14:19 UTC
    That's a cool thing!

    pelagic

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlnews [id://444182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-10-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (147 votes), past polls