CPAN::Index::File::PackagesDetails - Interface to 02packages.details.txt.
02packages.details.txt
my $pckdetails = CPAN::Index::File::PackagesDetails->parse_from_repo_uri( 'http://cpan.perl.org' ); foreach my $package ($pckdetails->packages) { ... # do something }
This is a class to read and write 03modlist.data.
03modlist.data
First package in the list.
List of hashrefs representing packages indexed in the file. Each hashref has the following structure:
Package name, e.g. Foo::Bar.
Foo::Bar
Package version, e.g. 0.001.
0.001
Distribution the package belongs to, e.g. Foo-Bar-0.001.
Foo-Bar-0.001
Number of packages indexed in the file.
Name of this file - defaults to 02packages.details.txt.gz;
02packages.details.txt.gz
Short description of the file.
Target consumers of the file.
Absolute URI pointing to the file location.
Parses the file and returns its representation as a data structure.
Default file location - modules/02packages.details.txt.gz.
modules/02packages.details.txt.gz
The list of packages sorted by name.
To install CPAN::Index::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Index::API
CPAN shell
perl -MCPAN -e shell install CPAN::Index::API
For more information on module installation, please visit the detailed CPAN module installation guide.