The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CPAN::Index::File::PackagesDetails - Interface to 02packages.details.txt.

SYNOPSIS

  my $pckdetails = CPAN::Index::File::PackagesDetails->parse_from_repo_uri(
    'http://cpan.perl.org'
  );

  foreach my $package ($pckdetails->packages) {
    ... # do something
  }

DESCRIPTION

This is a class to read and write 03modlist.data.

METHODS

package

First package in the list.

packages

List of hashrefs representing packages indexed in the file. Each hashref has the following structure:

name

Package name, e.g. Foo::Bar.

version

Package version, e.g. 0.001.

distribution

Distribution the package belongs to, e.g. Foo-Bar-0.001.

package_count

Number of packages indexed in the file.

filename

Name of this file - defaults to 02packages.details.txt.gz;

description

Short description of the file.

intended_for

Target consumers of the file.

uri

Absolute URI pointing to the file location.

parse

Parses the file and returns its representation as a data structure.

default_location

Default file location - modules/02packages.details.txt.gz.

sorted_packages

The list of packages sorted by name.

METHODS FROM ROLES

<CPAN::Index::API::Role::Readable/read_from_string>
<CPAN::Index::API::Role::Readable/read_from_file>
<CPAN::Index::API::Role::Readable/read_from_tarball>
<CPAN::Index::API::Role::Readable/read_from_repo_path>
<CPAN::Index::API::Role::Readable/read_from_repo_uri>
"tarball_is_default" in CPAN::Index::API::Role::Writable
"repo_path" in CPAN::Index::API::Role::Writable
"template" in CPAN::Index::API::Role::Writable
"content" in CPAN::Index::API::Role::Writable
"write_to_file" in CPAN::Index::API::Role::Writable
"write_to_tarball" in CPAN::Index::API::Role::Writable
"clone" in CPAN::Index::API::Role::Clonable
"filename" in CPAN::Index::API::Role::HavingFilename
"generated_by" in CPAN::Index::API::Role::HavingGeneratedBy
"last_generated" in CPAN::Index::API::Role::HavingGeneratedBy