Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Search the contents of CPAN with gonzui

by LTjake (Prior)
on Apr 01, 2005 at 14:14 UTC ( [id://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!

    pelagic

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found