other versions
- stretch 5.24.1-3+deb9u5
- testing 5.28.1-6
- unstable 5.28.1-6
- experimental 5.30.0-3
CPAN::API::HOWTO(3perl) | Perl Programmers Reference Guide | CPAN::API::HOWTO(3perl) |
NAME¶
CPAN::API::HOWTO - a recipe book for programming with CPAN.pmRECIPES¶
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.
SEE ALSO¶
the main CPAN.pm documentationLICENSE¶
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.AUTHOR¶
David Cantrell2018-11-29 | perl v5.24.1 |