インストールしている CPAN モジュールを調べる

bash の場合

# すべてを表示する
% find `perl -e 'print join("\n", @INC);'` -name *.pm

# 行数を付加してすべてを表示する
% find `perl -e 'print join("\n", @INC);'` -name *.pm | cat -n

# 先頭 10行のみを表示する
% find `perl -e 'print join("\n", @INC);'` -name *.pm | cat -n | head

# 目的のモジュールを絞り込みたい(この場合は LWP で絞り込んでいる)
% find `perl -e 'print join("\n", @INC);'` -name *.pm | grep -i LWP | cat -n | head

zsh の場合

*.pm の前に \ を入力してエスケープを行う。

# すべてを表示する
% find `perl -e 'print join("\n", @INC);'` -name \*.pm

# 行数を付加してすべてを表示する
% find `perl -e 'print join("\n", @INC);'` -name \*.pm | cat -n

# 先頭 10行のみを表示する
% find `perl -e 'print join("\n", @INC);'` -name \*.pm | cat -n | head

# 目的のモジュールを絞り込みたい(この場合は LWP で絞り込んでいる)
% find `perl -e 'print join("\n", @INC);'` -name \*.pm | grep -i LWP | cat -n | head