|
|
installed modules (how to check?)
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?
|
|
0
|
|
|
|
Reply
|
skijor (4)
|
5/7/2005 3:28:37 PM |
|
Mike Starkie wrote:
> 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?
>
The easiest way to see if you have all of the modules is to simply make
a program that would "use" all of them.
###
#!/usr/bin/perl
use warnings;
use strict;
use URI;
use libnet;
use MIME::Base64;
use Net::FTP::Commo;
use libwww::perl;
use Net_SSLeay;
use Crypt::SSLeay;
print "you have them all\n";
###
If you don't have them, head over to http://search.cpan.org/ (or if you
have windows then you can use PPM.
--
k g a b e r t (at) x m i s s i o n (dot) c o m
*Use Mozzila/Firefox*!
http://www.spreadfirefox.com/?q=user/register&r=71209
|
|
0
|
|
|
|
Reply
|
YYUsenet
|
5/7/2005 3:45:35 PM
|
|
Mike Starkie <skijor@gmail.com> wrote:
> 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?
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
|
|
0
|
|
|
|
Reply
|
Tad
|
5/7/2005 4:29:01 PM
|
|
"Mike Starkie" <skijor@gmail.com> wrote in message
news:1115479717.062596.109000@f14g2000cwb.googlegroups.com...
> 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
|
|
0
|
|
|
|
Reply
|
Robin
|
5/8/2005 11:04:15 PM
|
|
On 2005-05-08, Robin scribbled these
curious markings:
> 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
--
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong questions, you get answers like "42" and "God".
Unix is user friendly. However, it isn't idiot friendly.
|
|
0
|
|
|
|
Reply
|
Christopher
|
5/9/2005 7:39:34 PM
|
|
Christopher Nehren <apeiron+usenet@coitusmentis.info> wrote in
news:slrnd7vf4d.vl.apeiron+usenet@prophecy.dyndns.org:
> On 2005-05-08, Robin scribbled these
> curious markings:
>> 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
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
|
|
0
|
|
|
|
Reply
|
A
|
5/9/2005 7:49:45 PM
|
|
Mike Starkie wrote:
> 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;
|
|
0
|
|
|
|
Reply
|
ioneabu
|
5/9/2005 8:51:40 PM
|
|
|
6 Replies
60 Views
(page loaded in 0.118 seconds)
|
|
|
|
|
|
|
|
|