If you only need to grep package names, this is simple: Run CPAN, which copies a few metadata files to the local machine. Then do this:
zgrep -i '^B::' $( \ls ~/{.local/share/,}.cpan/sources/modules/02packages.details.txt.gz )