Of late, I've been trying to convert all my code into CPAN distribution, even the stuff that isn't normally done that way.
So far modules, console applications and gui applications mostly work ok, and the new File::HomeDir and File::ShareDir help solve the user resource and read-only data problems.
The next problem for me is CGI applications.
They almost certainly should be buildable as CPAN dists, but we have the problem of the public_html directory.
How do I deal with this? And can one install the CGI without necesarily doing so as root? Do we assume a private Perl? Private lib directory? Do I install public_html via File::ShareDir and then provide a utility to copy it to some target directory?
Other than "I do it by hand", how do you currently solve automated CGI setup? Or how do think it might be done?