The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


MetaCPAN::Clients - Some useful stand-alone scripts to access MetaCPAN


Command-line tools: N [PAUSEID] --module Module::Name --distro Distro-Name  (or partial name) --distro Distribution-Name --distro Distro-Name <token> <file>  Module::Name [more Module::Names] Module::Name

... or read the articles and check out MetaCPAN::API.


For an explanation of the script see Fetching META data from Meta CPAN.

For the see List all the Perl modules and distributions in a name-space using Meta CPAN.

The show the list of distributions that use the given distribution. Code taken from Test::DependentModules of Dave Rolsky.

The was created by David Golden and it is explained in How to mass-favorite modules on MetaCPAN

The token is taken from (assuming you are logged in) from the key access_token, token. The input file contains lines of "Distro-Name AUTHOR release" but it can work with "Distro-Name" alone too. was originally described in How to fetch the CPAN dependency tree of a Perl module?


Some results using these scripts show:

On December 28, 2012 we found that 17.4% of CPAN uploads have no license in the META files

On January 3, 2013 we found that 50% of the new CPAN uploads have a repository link

On February 5, 2013 we found that still about 16.6% of the recent CPAN uploads have no license and 50% no repository link in their META files.

OTHER Examples

If you are interested in other examples using the MetaCPAN::API, check out the list of distributions using MetaCPAN::API


Gabor Szabo


David Golden


This software is copyright (c) 2013- by Gabor Szabo.

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