[Pdx-pm] Is the ExtUtils::Installed in Perl 5.10 broken?

Erik Hollensbe erik at hollensbe.org
Wed Jun 24 11:12:24 PDT 2009

On Wed, 2009-06-24 at 10:57 -0700, Igal Koshevoy wrote:
> Erik Hollensbe wrote:
> > On Wed, 2009-06-24 at 09:09 -0700, Igal Koshevoy wrote:
> >   
> >> I need to be able to query an installed CPAN package and find out what
> >> files it contains. I had code that worked fine with Perl 5.8, but it
> >> doesn't work with 5.10. Any ideas? Is there another way that I should be
> >> doing this?
> The `$CPAN::META->has_inst` tells me that the package is installed. The
> `$packlists->files` tells me it's not. :/


This is working for me on 5.10.0, ubuntu 9.04:

use strict;
use warnings;

use ExtUtils::Installed;
use Data::Dumper;

my $pl = ExtUtils::Installed->new;
print Dumper [$pl->files("ack")];

It could not, however, find the packlist for Data::Dumper. Perhaps
because it's a part of the stdlib, but I suspect you already know this.



More information about the Pdx-pm-list mailing list