CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
How to see the Installe Modules in unix Server

 



sridhar2
New User

Oct 1, 2008, 5:58 AM

Post #1 of 3 (1646 views)
How to see the Installe Modules in unix Server Can't Post

Hi,

I just wanted to see all the Perl modules which got installed previously.

Could anyone please help me in this regard?

Thanks in Advance.

Regards,

Sridhar anandaraj


sycoogtit
User

Oct 1, 2008, 8:17 AM

Post #2 of 3 (1639 views)
Re: [sridhar2] How to see the Installe Modules in unix Server [In reply to] Can't Post

http://www.cpan.org/misc/cpan-faq.html#How_installed_modules

--
http://bunsooter.com


dinjo_jo
Novice

Dec 16, 2008, 1:01 AM

Post #3 of 3 (1393 views)
Re: [sycoogtit] How to see the Installe Modules in unix Server [In reply to] Can't Post

Method 1

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

Method 2

#!/usr/bin/perl -w

use ExtUtils::Installed;

my $instmod = ExtUtils::Installed->new();

foreach my $module ($instmod->modules()) {

my $version = $instmod->version($module) || "Version Not Found";

print "$module
$version\n";

}


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives