CPAN::SQLite::Info(3pm) | User Contributed Perl Documentation | CPAN::SQLite::Info(3pm) |
CPAN::SQLite::Info - extract information from CPAN indices
version 0.220
This module extracts information from the CPAN indices $CPAN/modules/02packages.details.txt.gz and $CPAN/authors/01mailrc.txt.gz.
A "CPAN::SQLite::Info" object is created with
my $info = CPAN::SQLite::Info->new(CPAN => $cpan);
where $cpan specifies the top-level CPAN directory underneath which the index files are found. Calling
$info->fetch_info();
will result in the object being populated with 3 hash references:
This contains information on distributions. Keys of this hash reference are the distribution names, with the associated value being a hash reference with keys of
for my $module (keys %{$info->{$distname}->{modules}}) { print "Module: $module\n"; }
This contains information on modules. Keys of this hash reference are the module names, with the associated values being a hash reference with keys of
This contains information on CPAN authors. Keys of this hash reference are the CPAN ids, with the associated value being a hash reference with keys of
CPAN::SQLite::Index
2022-10-30 | perl v5.36.0 |