Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3FB4946B.1060801@fillmore-labs.com>
Date: Fri, 14 Nov 2003 09:38:03 +0100
From: Patrick Eisenacher <eisenacher@fillmore-labs.com>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Perl CPAN module help
References: <3FB3B2CB@epostleser.online.no> <6jc7rv4palt1j9tpjomtfdg802udungc0t@4ax.com> <3FB3EEA6.10EB0BD5@dessent.net>
In-Reply-To: <3FB3EEA6.10EB0BD5@dessent.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Authenticated-Sender: eisenacher@fillmore-labs.com
User-Agent: KMail/1.5.9
Organization: Fillmore Labs GmbH  <http://www.fillmore-labs.com/>
X-Complaints-To: abuse@fillmore-labs.com

or quick and dirty:

perl -e 'use CPAN; CPAN::Shell->r;'

HTH,
Patrick

Brian Dessent schrieb:

> zzapper wrote:
> 
>>Peter,
>>
>>
>>>cpan
>>
>>cpan>
>>
>>How do you list modules already installed?
> 
> 
> There's no definitive way to do this.  If you just want to see if you
> have the Foo::Bar module, you can use "perl -MFoo::Bar -e 1" and if you
> get an error then you need to install Foo::Bar.
> 
> You can also try the following script which uses the ExtUtils::Installed
> module, but I have found that its output is sometimes misleading, in
> that it will not display base (stock included) modules.  And I'm not
> sure if it knows about modules that are installed through means other
> than CPAN (e.g. through your distro's package manager.)
> 
> #!/usr/bin/perl
> 
> use ExtUtils::Installed;
> my $instmod = ExtUtils::Installed->new();
> foreach my $module ($instmod->modules()) {
> my $version = $instmod->version($module) || "???";
>        print "$module -- $version\n";
> }
> 
> Brian



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

