The MetaCPAN API should make something like that pretty easy.
Here's a list of modules from the distribution name...
perl -MLWP::Simple -MJSON -MURI::Escape -E'my $data = from_json get sprintf "http://api.metacpan.org/v0/module/_search?q=distribution:%s+AND+module.indexed:true+AND+status:latest&fields=release,path,module&size=4999", uri_escape shift; say for map { sprintf "%s %s", $_->{name}, $_->{version} } map { @{$_->{fields}{module}} } @{$data->{hits}{hits}}' Moose... I leave the reverse as an exercise for the reader.
In reply to Re: A command-line utility to list CPAN modules/dists?
by tobyink
in thread A command-line utility to list CPAN modules/dists?
by sedusedan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |