Check for perl modules installed

Friday, December 28, 2012 0 Comments

How do you check for all the installed modules of perl in your environment.
This will be very useful to know that when I know what are all the modules that are installed in the environment I could probably use those modules and avoid some unnecessary code which will ultimately reduce efforts for coding.

Below is the command which will give the list of all installed modules in the environment that you are working on :

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