> From: "Scott" <[EMAIL PROTECTED]>
> To: "Joe Bellifont" <[EMAIL PROTECTED]>,
>       <[EMAIL PROTECTED]>
> Subject: RE: modules
> Date: Wed, 8 Aug 2001 10:29:05 -0700
> 
> Here is some code that will list all installed modules
> 
> #!/usr/bin/perl -w
> use ExtUtils::Installed;
> my $instmod = ExtUtils::Installed->new();
> foreach my $module ($instmod->modules()) {
> my $version = $instmod->version($module) || "???";
>        print "$module -- $version\n";
> }

Hm, I had also wondered if there was a simple way of doing this.
I just tried this code and found that it fails.  I get the output:
Can't stat /usr/local/lib/perl/5.6.0: No such file or directory
Perl -- 5.6.0

Nothing more, and I have many modules installed.  The directory
mentioned is in my @INC (by default) but does not exist.  Is it a bug
that ExtUtils::Installed->new() fails on non-existent directories?
perl itself certainly tolerates the non-existent directories it puts
in @INC.

+ Richard

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to