CPAN::API::HOWTO(3) a recipe book for programming with


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"

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?

    my @modules = CPAN::Shell->expand(
        "Distribution", "JHI/Graph-0.83.tar.gz"

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


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

See <>


David Cantrell