installed modules (how to check?)

M

Mike Starkie

How do i determine which modules are installed with perl? I need to
determine if I have the following:

URI
libnet
MIME-Base64
Net-FTP-Commo
libwww-perl
Net_SSLeay.pm
Crypt-SSLeay (version 0.19 for HTTPS proxy and certificates)

if it turns out I don't, where can i get more info on them, how to
install modules and check their dependencies?
 
T

Tad McClellan

Mike Starkie said:
where can i get more info on them,

http://search.cpan.org


how to
install modules and check their dependencies?


perldoc -q module

What modules and extensions are available for Perl? What is CPAN?
What does CPAN/src/... mean?

How do I install a module from CPAN?

How do I keep my own module/library directory?
 
R

Robin

Mike Starkie said:
How do i determine which modules are installed with perl? I need to
determine if I have the following:

URI
libnet
MIME-Base64
Net-FTP-Commo
libwww-perl
Net_SSLeay.pm
Crypt-SSLeay (version 0.19 for HTTPS proxy and certificates)

if it turns out I don't, where can i get more info on them, how to
install modules and check their dependencies?

you might just want to search your harddrive for *.pm! then learn how to use
perldoc to read the docs for each of your modules.
-robin
 
C

Christopher Nehren

you might just want to search your harddrive for *.pm! then learn how to use
perldoc to read the docs for each of your modules.

[(15:39:03) apeiron@prophecy ~] locate / | grep -c '\.pm$'
1773
[(15:39:06) apeiron@prophecy ~]

That would be a little like finding an electronic needle in the massive
haystack that is my hard disk. :)

Best Regards,
Christopher Nehren
 
A

A. Sinan Unur

you might just want to search your harddrive for *.pm! then learn how
to use perldoc to read the docs for each of your modules.

[(15:39:03) apeiron@prophecy ~] locate / | grep -c '\.pm$'
1773
[(15:39:06) apeiron@prophecy ~]

That would be a little like finding an electronic needle in the
massive haystack that is my hard disk. :)

FYI, Robin does not have a great track record here.

As usual, his suggestion is worse than worthless.

He forgets that there is a distinction between an installed Perl module
and a stray .pm file in a temp directory etc.

Sinan
 
I

ioneabu

Mike said:
How do i determine which modules are installed with perl? I need to
determine if I have the following:

URI
libnet
MIME-Base64
Net-FTP-Commo
libwww-perl
Net_SSLeay.pm
Crypt-SSLeay (version 0.19 for HTTPS proxy and certificates)

if it turns out I don't, where can i get more info on them, how to
install modules and check their dependencies?

save this to a file, chmod +x it and don't lose it!

#!/usr/bin/perl

use strict;
use warnings;

use ExtUtils::Installed;

#print installed modules

print "Here are your installed modules:\n";
print "-------------------------------------------------------\n";
my $inst = ExtUtils::Installed->new();
my @modules = $inst->modules();
print "$_\n" for @modules;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top