title: How do I find the standard site_perl directory for Perl?
body: <p>How can I find the standard site_perl (non-arch specific) location? Is it safe to just loop over @INC and find the path ending with "site_perl", or is there a standard way to do this?</p>
  
  <p>The reason for trying to find this, is I have a very large project built up from hundreds of individual modules, all with their own Makefile.PL files (pretty much every .pm file has been built as its own CPAN style module). Along with this, each module may have artifacts (templates, .cgi's, etc), in various locations, all which need to be deployed to various locations, nothing is standard. This is the first step in trying to get this under control, basically having a single Makefile which can find and deploy everything, the next step will be getting it in sensible layout in version control.</p>
  
  <p>I've spent time trying to do this with standard installation tools, but have had no luck.</p>