NAME

CPAN::Distribution - API to access a CPAN Distribution file or directory

VERSION

version 0.001

SYNOPSIS

use CPAN::Distribution;

my $cpandist = CPAN::Distribution->new("My-Sample-Distribution-0.003.tar.gz");

my %files = %{$cpandist->files};

my $filename_of_distini = $cpandist->file('dist.ini');

my $cpan_meta = $cpandist->distmeta; # gives back CPAN::Meta

my $version = $cpandist->version; # handled by CPAN::Meta object
my $name = $cpandist->name;       # also

my @authors = $cpandist->authors;

my %packages = %{$cpandist->packages};
my %scripts = %{$cpandist->scripts};

DESCRIPTION

This distribution is used to get all information from a CPAN distribution or an extracted CPAN distribution. It tries to combine the power of other modules. Longtime it should be possible to define alternative behaviour (to be more like search.cpan.org or be like metacpan.org or whatever other system that parses CPAN Distributions).

SUPPORT

IRC

Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).

Repository

http://github.com/Getty/p5-cpan-distribution
Pull request and additional contributors are welcome

Issue Tracker

http://github.com/Getty/p5-cpan-distribution/issues

AUTHOR

Torsten Raudssus <torsten@raudss.us> http://raudss.us/

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by DuckDuckGo, Inc. http://duckduckgo.com/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.