There's a lot of CPAN distributions in the Arch repositories, but not all of them. How should I handle a situation when I need a dist that is not already in the repos?
Should I use the
cpan program then, or is there a better solution?
There are several methods described in the Arch wiki. The easiest version is probably to use perl-cpanplus-dist-arch, which, after installing and running the setup with
Well, the best solution would probably be to create a distribution package for the CPAN package you want, contribute it to the Arch team, and maintain it (of course, the best solution for you would be for someone else to do this, :-) ). This way, everyone would benefit from it.
In reality, you're probably fine to just use CPAN directly to install it:
of course, the drawback here is that you don't get automatic updates when the upstream package changes. You'll need to keep track of the CPAN package yourself.