3 CPAN::API::HOWTO - a recipe book for programming with CPAN.pm
7 All of these recipes assume that you have put "use CPAN" at the top of
10 =head2 What distribution contains a particular module?
12 my $distribution = CPAN::Shell->expand(
13 "Module", "Data::UUID"
14 )->distribution()->pretty_id();
16 This returns a string of the form "AUTHORID/TARBALL". If you want the
17 full path and filename to this distribution on a CPAN mirror, then it is
18 C<.../authors/id/A/AU/AUTHORID/TARBALL>.
20 =head2 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"
27 You may also refer to a distribution in the form A/AU/AUTHORID/TARBALL.
31 the main CPAN.pm documentation
35 This program is free software; you can redistribute it and/or
36 modify it under the same terms as Perl itself.
38 See L<http://www.perl.com/perl/misc/Artistic.html>