Earlier we tried to write some code to fetch the list of most recently uploaded Perl modules.

We found that the documentation of MetaCPAN::Client::Release isn't accurate.

The name attribute returns the name including the version number and the distribution returns the name only.

In order to fix this we had to find the source on GitHub and the send a pull request. It was accepted within a few hours.

This is the script to see the values of the attributes.

examples/meta.pl

use strict;
use warnings;
use 5.010;

use MetaCPAN::Client;
my $mcpan  = MetaCPAN::Client->new();
my $recent = $mcpan->recent(10);
#say $recent;

while (my $item = $recent->next) {
    say $item->name;
    say $item->distribution;
}