Perl Cross-Reference Tool

Ovid on 2003-11-25T17:16:46

One of my coworkers is looking for a Perl cross-reference tool that has syntax highlighting, allows you to click through to various modules, given a "sub foo", will attempt to list every module that has a "sub foo", etc. Can anyone point me in the right direction? Running on Linux would be best, but Mac OSX will do.


check w/ssgt foy

petdance on 2003-11-25T17:19:45

brian d foy posted earlier this week that he was workin' on a class browser, but that's all I know.

Re:check w/ssgt foy

Ovid on 2003-11-25T17:36:46

I saw that and it sounded perfect, but sine it's not yet available ... :(

Re:check w/ssgt foy

petdance on 2003-11-25T17:45:11

I think we should demand that he spend his short time back here in the States working on code for us! His wife can just look over his shoulder!

Re:check w/ssgt foy

brian_d_foy on 2004-01-09T18:55:12

I don't think my idea is anywhere in the same ballpark, or sport, as this request. It sounds like he wants an index of all things modules. That is an interesting project, but not the one that I am working on.

etags/ctags

Dom2 on 2003-11-25T17:57:56

You might be able to do what you want with emacs or vim.

For emacs change to your top level directory and run etags `find * -name '*.p[lm]'`. Then, inside emacs, you press M-. to follow a symbol to it's definition and M-* to go back to where you were.

Vim is pretty similiar. You run ctags `find * -name '*.p[lm]'` and then you can do vim -t foo to jump straight to where foo is defined. Inside vim, you can either do :ta foo or control-left-click on a word to jump to its definition. To go back, in all cases press ^T.

There is more to it than just this in both cases. Apply a little bit of RTFM to go further.

-Dom

Re:etags/ctags

Dom2 on 2003-11-25T17:59:28

Sorry, I forgot to mention that you'll need exuberant ctags installed to get it working with perl most likely. Try doing ctags --help | grep perl or ctags --help | grep perl to see if it will work.

-Dom

CPANXR

lachoy on 2003-11-25T18:19:19

CPANXR looks like it could be right up your alley.

Re:CPANXR

melopt on 2003-11-25T19:44:28

And here http://cpanxr.surfar.nu/cpanxr/classes to see it working.

Best regards,

Re:CPANXR

nkuitse on 2003-11-25T21:30:37


=head1 NAME

cpanxr - CPANXR indexer

[...]

=head1 OPTIONS

[...]

=item B<-man>

Prints the manual page and exists.


Cool. Zen and the art of CPAN indexing.
:-)