Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl ctags How To

by choroba (Cardinal)
on Jan 10, 2021 at 22:17 UTC ( [id://11126726]=note: print w/replies, xml ) Need Help??


in reply to Perl ctags How To

Sorry for the impudent answer, I use Emacs instead of vim. It uses an etags file which is different to ctags, but I guess the information contained in it is the same, just formatted differently. Here's how I generate the file: perl-etags.pl - it supports some Moo* and similar sugar (e.g. "has", "alias", "method", but support for "handles" is still missing). Feel free to modify it to your liking.

I run it in the root directory of any larger project I work with. To get documentation on CPAN modules, I use perldoc (integrated into Emacs, of course, so I can just press a key combination on a module name and get the documentation). I rarely need to read the source of the CPAN modules, but if I need it, I use perldoc -l or perldoc -m. It hasn't happened enough times to bother me to find out whether Emacs supports it (and implement it if not).

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Perl ctags How To
by learnedbyerror (Monk) on Jan 12, 2021 at 05:33 UTC

    Oh Lordy, two Emacs addicts in a row :). Nonetheless, thanks for your guidance. I will review it with an eye toward vim!

    lbe

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found