http://www.perlmonks.org?node_id=779079
Description: I was having a problem with CPAN's "long-list" of modules, so I've been using this as a replacement. It will search for and return the names of all authors, all distributions, and all modules on CPAN.

#!/usr/local/bin/perl

use strict;
use warnings;
use CPAN;

CPAN::Shell->a;
CPAN::Shell->d;
CPAN::Shell->m;