1CPAN::API::HOWTO(3pm)  Perl Programmers Reference Guide  CPAN::API::HOWTO(3pm)
2
3
4

NAME

6       CPAN::API::HOWTO - a recipe book for programming with CPAN.pm
7

RECIPES

9       All of these recipes assume that you have put "use CPAN" at the top of
10       your program.
11
12   What distribution contains a particular module?
13           my $distribution = CPAN::Shell->expand(
14               "Module", "Data::UUID"
15           )->distribution()->pretty_id();
16
17       This returns a string of the form "AUTHORID/TARBALL".  If you want the
18       full path and filename to this distribution on a CPAN mirror, then it
19       is ".../authors/id/A/AU/AUTHORID/TARBALL".
20
21   What modules does a particular distribution contain?
22           CPAN::Index->reload();
23           my @modules = CPAN::Shell->expand(
24               "Distribution", "JHI/Graph-0.83.tar.gz"
25           )->containsmods();
26
27       You may also refer to a distribution in the form A/AU/AUTHORID/TARBALL.
28

SEE ALSO

30       the main CPAN.pm documentation
31

LICENSE

33       This program is free software; you can redistribute it and/or modify it
34       under the same terms as Perl itself.
35
36       See <http://www.perl.com/perl/misc/Artistic.html>
37

AUTHOR

39       David Cantrell
40
41
42
43perl v5.12.4                      2011-06-01             CPAN::API::HOWTO(3pm)
Impressum