in reply to cscope & perl

The magic that I didn't see on this thread is how to invoke cscope to build the database:

find /home/troc/project/foo -name '*.pl' -o -name '*.pm' -o -name '*.t +' | grep -v blib | cscope -b -q -i -
I read on the web that cscope only pays attention to C-style file extensions unless you find and include specific files yourself.

Replies are listed 'Best First'.
Re^2: cscope & perl
by Tanktalus (Canon) on Jun 22, 2011 at 14:26 UTC

    Might be a bit easier to do:

    ack -f --perl | cscope -b -q -i -
    Having done that, my editor doesn't take cscope output - but it does tack ctags output, so same idea:
    ack -f --perl | ctags -L -
    If you don't have ack, you should. It's written in perl, and is way easier to use than grep, with way more functionality.