Wednesday, February 8, 2012

How to find what PERL modules are installed on my system



1. The easiest way of doing so is by running the command intstmodsh. It provides an interactive interface to query details of installed PERL modules. When you run instmodsh, this is what you get:

At the prompt you can enter 'l' to list all the installed modules.

2. Another way to do this is:
perldoc perllocal


This command will list out all the installed modules along with their path and version information.

3. Yet another way of getting all the modules installed on your system along with the path information, type:
find `perl -e 'print "@INC"' ` -name '*.pm' -print



4. perl -le 'eval "require DBI" and print ${"DBI::VERSION"}'


5. find `perl -e '{print join $/, grep {/[^.]/} @INC}'` -name '*pm'|grep DBI|more


6. perl -MDBI -e'print $_ . " => " . $INC{$_} . "\n" for keys %INC'

No comments:

Post a Comment