Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Feb 112009
 

List all the installed Perl modules

Answer:

To list all the installed Perl modules in the system, use the following command.

# perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

/usr/local/lib/perl/5.10.0/IO/Tty.pm
/usr/local/lib/perl/5.10.0/IO/Tty/Constant.pm
/usr/local/lib/perl/5.10.0/Params/ValidatePP.pm
/usr/local/lib/perl/5.10.0/Params/Validate.pm
...

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>