How to list all installed Perl modules
How do I list all the Perl modules installed in my machine? I know perl -l 'use Module::Name;print"okay"' will tell me about
a particular module, but I want a complete list, so I can maybe redirect it's output to a file. |
perl -MFile::Find=find -MFile::Spec::Functions -Tlwe \
'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' |
I had the same question, and this works wonderfully - thanks for posting your solution!
-Laura |
Perl: query about the module installed
Use command to check for Net::Ping module installed:
perl -MNet::Ping -e "print \"Module installed.\\n\";" here Net is package name and Ping is module name under package Net. 'Module installed.' message will be displayed if Package::Module installed. You can try perl -MNet::Ping -e 1 If you get error message immediately then the module not installed! |
thanks
I had to register here just so I could say thanks for the command to pull out all installed perl modules.
Very nice indeed. Thank you again! |
Use the following command and type "l" in the prompt to list all installed perl modules.
Quote:
|
And another thanks from me. This just addressed a problem in like 30 seconds. All hail LQ (and google)!
|
Quote:
But I have a question , in WindowsXP (active perl 5.8) command "perldoc perllocal" works , but in linux it doesnt , any reason for this. One more way to find is, $ instmodsh cmd? l Available commands are: l - List all installed modules m <module> - Select a module q - Quit the program cmd? l Installed modules are: Image::Magick OBEXFTP Perl SWF cmd? m perl Available commands are: f [all|prog|doc] - List installed files of a given type d [all|prog|doc] - List the directories used by a module v - Validate the .packlist - check for missing files t <tarfile> - Create a tar archive of the module h - Display module help q - Quit the module perl cmd? f Outputs all the installed modules |
For reference you can use this as well:
Code:
pmall Code:
Crypt::Blowfish (2.12) - Perl Blowfish encryption module |
All times are GMT -5. The time now is 09:33 PM. |