ずーっと ctags って c 専用ツールだと思っていたんですが、誤解だったようです。
% apt-cache show exuberant-ctags
Package: exuberant-ctags
Priority: optional
Section: editors
Installed-Size: 232
Maintainer: Colin Watson <cjwatson@debian.org>
Architecture: i386
Version: 1:5.5.4-1
Provides: ctags
Depends: libc6 (>= 2.3.2.ds1-4)
Suggests: vim | nvi | elvis | vile | emacsen
Filename: pool/main/e/exuberant-ctags/exuberant-ctags_5.5.4-1_i386.deb
Size: 103170
MD5sum: 9f40a11f4b8d23511cbf1fd6b372102c
Description: build tag file indexes of source code definitions
ctags parses source code and produces a sort of index mapping
the names of significant entities (e.g. functions, classes,
variables) to the location where that entity is defined. This
index is used by editors like vi and emacsen to allow moving to
the definition of a user-specified entity.
.
Exuberant Ctags supports all possible C language constructions
and multiple other languages such as assembler, AWK, ASP, BETA,
Bourne/Korn/Z shell, C++, COBOL, Eiffel, Fortran, Java, Lisp,
Lua, Makefile, Pascal, Perl, PHP, Python, REXX, Ruby, S-Lang,
Scheme, Tcl, Verilog, Vim and YACC.
code を俯瞰するには向いていないのは確かなんですが、
まったく手がかりがないよりは役に立つので使っておくことにします。
使うときは、あらかじめ perl code に対して ctags を実行して
tags ファイルを生成しておきます。
% ctags -R foobar.pl
% ls
foobar.pl tags
これで vim 上で
- C-] (関数定義先にジャンプ)
- C-t (ジャンプ元に移動)
という操作が可能になります。