PDA

View Full Version : VPS/Linux Server: List ALL installed PERL modules



Max
July 1st, 2009, 06:54 PM
Run the following command:

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

You can pipe that through less or grep to search.

less example:


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

or
grep example:


perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' | grep "time"

(will find all modules with the word "time" in them)