Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

CPAN::API::HOWTO (3)

Name

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

Synopsis

Please see following description for synopsis

Description

Perl Programmers Reference Guide                           CPAN::API::HOWTO(3)



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

RECIPES
       All of these recipes assume that you have put "use CPAN" at the top of
       your program.

   What distribution contains a particular module?
           my $distribution = CPAN::Shell->expand(
               "Module", "Data::UUID"
           )->distribution()->pretty_id();

       This returns a string of the form "AUTHORID/TARBALL".  If you want the
       full path and filename to this distribution on a CPAN mirror, then it
       is ".../authors/id/A/AU/AUTHORID/TARBALL".

   What modules does a particular distribution contain?
           CPAN::Index->reload();
           my @modules = CPAN::Shell->expand(
               "Distribution", "JHI/Graph-0.83.tar.gz"
           )->containsmods();

       You may also refer to a distribution in the form A/AU/AUTHORID/TARBALL.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+-----------------------+
       |ATTRIBUTE TYPE |   ATTRIBUTE VALUE     |
       +---------------+-----------------------+
       |Availability   | runtime/perl-532      |
       +---------------+-----------------------+
       |Stability      | Pass-through volatile |
       +---------------+-----------------------+

SEE ALSO
       the main CPAN.pm documentation

LICENSE
       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       See <http://www.perl.com/perl/misc/Artistic.html>

AUTHOR
       David Cantrell



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/src/5.0/perl-5.32.0.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.perl.org/.



perl v5.32.0                      2020-06-14               CPAN::API::HOWTO(3)