logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

David Cantrell perl v5.40.1 2025-07-03 CPAN::API::HOWTO(3perl)

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>

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. Whatdistributioncontainsaparticularmodule? 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". Whatmodulesdoesaparticulardistributioncontain? 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 documentation

See Also