Suppose, as a private project, I implemented the Perl package and tested it both formally and through widespread daily use. I believe the package is useful and strong enough to guarantee that it will be sent to CPAN.
Up to this point, since the package was a private project, I did not worry too much about the package name, but now that I want to send to CPAN, I would like the package name to fit well with the package name ecology already in CPAN.
To find a suitable “CPAN name” for my package, I will need to look at the complete list of all these package names 1 .
What is the easiest way to get a complete list of package names in CPAN?
ObPedantry
(IOW, if the above question is already clear enough for you, you can safely ignore the following).
I don’t think I can give a technically correct formal definition of what I mean here under the name "package name", so let me at least give a "real-time definition".
If, for example, single-line
$ perl -MFoo::Bar::Baz -c -e 1
with an error starting with
Can't locate Foo/Bar/Baz.pm in @INC ...
... but after installing some distributions from CPAN, the same oneliner succeeds with
-e syntax OK
... then I will say that " Foo::Bar::Baz is the name of the package in CPAN."
(We could divide the hair into the difference between packages and modules and consider scenarios in which the difference matters, but please do not allow it.)
In addition, if after checking the list in this question a question arises, I found that, on the one hand, there are actually many eminent package names in CPAN that start with the prefix Foo::Bar:: , and on the other, not ( or negligible) that start with the Fubar:: prefix, then for me it would be a good reason to change the name of my package Fubar::Frobozz to Foo::Bar::Frobozz before sending it to CPAN.
1 Of course, after checking such a list, I may find that my package does not add enough new features regarding what is already available in CPAN to guarantee that my package will be sent to CPAN after all.