2010-03-27

Perl - How to list installed modules

A note for myself. This is how to list out what perl modules are installed.
Way 1 :
perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

Way 2 :
perldoc perllocal


*** these are all taken from http://perldoc.perl.org/perlmodlib.html

Das Vidanya !!!

1 comment:

Varun Vats said...

Wouldn't Module::CoreList do it?