| BackPAN-Index documentation | Contained in the BackPAN-Index distribution. |
BackPAN::Index::Dist - Representing a distribution on BackPAN
Use through BackPAN::Index.
An object representing a distribution on BackPAN. A distribution is made up of releases.
my $releases = $dist->releases;
A ResultSet of this distribution's releases.
my $dist_name = $dist->name;
Name of the distribution.
my $num_releases = $dist->num_releases;
Returns the number of releases this distribution has.
my $release = $dist->first_release;
Returns the first or latest release of this distribution as a BackPAN::Index::Release.
my $release = $dist->first_date;
Returns the date of the first or latest release of this distribution.
my $data = $dist->as_hash;
Returns a hash ref containing the data inside $dist.
| BackPAN-Index documentation | Contained in the BackPAN-Index distribution. |
package BackPAN::Index::Dist; use strict; use warnings; use CLASS; use BackPAN::Index::Role::AsHash; use overload q[""] => sub { $_[0]->name }, fallback => 1; sub data_methods { return qw( name num_releases first_release first_date first_author latest_release latest_date latest_author ); } sub authors { my $self = shift; return $self->releases->search(undef, { distinct => 1 })->get_column("cpanid")->all; } 1; __END__
1;