How can I find the default location of site_perl (non-arg)? Is it safe to simply iterate over @INC and find a path ending in "site_perl", or is there a standard way to do this?
Trying to find this, I have a very large project created from hundreds of separate modules, all with their own Makefile.PL files (almost every .pm file was created as its own CPAN style module). Along with this, each module can have artifacts (templates, .cgi, etc.). In different places, everything that needs to be deployed in different places, nothing is standard. This is the first step in trying to get it under control, basically having one Makefile that can find and deploy everything, the next step will get it in a reasonable layout in version control.
I spent time trying to do this with standard installation tools, but no luck.
source
share