Rob wrote:
> Is there a perl command to list installed modules?
#!/usr/bin/perl
use warnings;
use strict;
foreach my $mod ( sort CPAN::Shell->expand("Module","/./") )
{
next unless $mod->inst_file;
print $mod->id;
print ": ", $mod->inst_version
if $mod->inst_version;
pri
Rob Dixon wrote at Thu, 06 Mar 2003 11:06:06 +:
>> > > Is there a perl command to list installed modules?
>> >
>> > This is a FAQ.
>>
>> Where can this FAQ be found ?
>> I tried
>> perldoc -q installed
>> perldoc -q module
>> perldoc -q list
>> with Perl 5.8.0
>
> I was meaning 'This is a Fre
Janek Schleicher wrote:
> Rob Dixon wrote at Wed, 05 Mar 2003 18:28:36 +:
>
> > Rob wrote:
> > > Is there a perl command to list installed modules?
> >
> > This is a FAQ.
>
> Where can this FAQ be found ?
> I tried
> perldoc -q installed
> perldoc -q module
> perldoc -q list
> with Perl 5.8.0
Rob Dixon wrote at Wed, 05 Mar 2003 18:28:36 +:
> Rob wrote:
>> Is there a perl command to list installed modules?
>
> This is a FAQ.
Where can this FAQ be found ?
I tried
perldoc -q installed
perldoc -q module
perldoc -q list
with Perl 5.8.0
Greetings,
Janek
--
To unsubscribe, e-mail: [
Rob Dixon wrote:
> Rob wrote:
>> Is there a perl command to list installed modules?
>
> This is a FAQ.
>
> As far as I'm concerned, by far the best way is to use
> ExtUtils::Installed like this:
>
> use ExtUtils::Installed;
> print "$_\n" foreach ExtUtils::Installed->new->modules;
>
> w
AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Module listing
>
>
>
> use ExtUtils::Installed;
>
> my $instmod = ExtUtils::Installed->new();
> foreach my $module ($instmod->modules()) {
> my $version = $inst
Rob wrote:
> Is there a perl command to list installed modules?
This is a FAQ.
As far as I'm concerned, by far the best way is to use
ExtUtils::Installed like this:
use ExtUtils::Installed;
print "$_\n" foreach ExtUtils::Installed->new->modules;
which does a lot more than just list the
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print " $module -- $version\n";
}
>>> "Rob" <[EMAIL PROTECTED]> 3/5/2003 9:36:01 AM >>>
Is there a per
"foo.pm not installed?" }
Luke
> -Original Message-
> From: Rob [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 6:36 AM
> To: [EMAIL PROTECTED]
> Subject: Module listing
>
>
> Is there a perl command to list installed modules?
>
>
&
On Wed, 5 Mar 2003 09:36:01 -0500, "Rob" <[EMAIL PROTECTED]> wrote:
> Is there a perl command to list installed modules?
>
>
on Unix:
find `perl -e 'print "@INC";'` -name "*.pm" -print
Gleaned from a doc, perldoc perlmodlib.
I alias this like
Is there a perl command to list installed modules?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
11 matches
Mail list logo