end0tknr's kipple - web写経開発

太宰府天満宮の狛犬って、妙にカワイイ

perl に install済 module 一覧を version付きで表示する one liner

標準モジュールは、Module::CoreList ( corelist ) を利用

$ perl -le 'system("corelist -v $^V")'

The following modules were in perl v5.30.0 CORE
Amiga::ARexx                                 0.04
Amiga::Exec                                  0.02
AnyDBM_File                                  1.01
App::Cpan                                    1.672
App::Prove                                   3.42
App::Prove::State                            3.42
   :                                          :

追加インストールしたモジュールは、ExtUtils::Installed ( instmodsh ) を利用

$ perl -MExtUtils::Installed -le \
   '$x=ExtUtils::Installed->new; print "$_ ",$x->version($_) for $x->modules'
   
Algorithm::Diff 1.1903
Alien::Build 1.89
Alien::Libxml2 0.09
App::cpanminus 1.7044
B::COW 0.001
B::Hooks::EndOfScope 0.24
Bit::Vector 7.4
CPAN::Meta::Check 0.014
Capture::Tiny 0.48
Carp::Clan 6.08
    :        :