Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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)

Replies are listed 'Best First'.
Re: Search the contents of CPAN with gonzui
by pelagic (Priest) on Apr 01, 2005 at 14:19 UTC
    That's a cool thing!


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-06-20 14:32 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.