Wednesday, November 4, 2009

Find Installed Perl Modules

Here is a helpful one-liner to find installed perl modules, thanks for Blane Warrene:

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

There is also an interactive function called instmodsh.