Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: cscope & perl

by rcaputo (Chaplain)
on Mar 22, 2011 at 19:37 UTC ( [id://894880]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (1)
As of 2024-04-26 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found