How do I get a list of installed CPAN modules?

后端 未结 29 2195
盖世英雄少女心
盖世英雄少女心 2020-12-04 07:41

Aside from trying

perldoc 

individually for any CPAN module that takes my fancy or going through the file system and loo

29条回答
  •  难免孤独
    2020-12-04 07:49

    Here's a script by @JamesThomasMoon1979 rewritten as a one-liner

    perl -MExtUtils::Installed -e '$i=ExtUtils::Installed->new(); 
          print "$_ ".$i->version($_)."\n" for $i->modules();'
    

提交回复
热议问题