This is a follow-up to my previous question about developing Perl applications. Let’s say I develop an application as a CPAN module using Module::Install
. Now I upload the code to the production server, say using a git push
, and I would like to install the application dependencies listed in Makefile.PL
. If I simply run cpan .
, the thing tries to install the application like a regular Perl module, ie. starts to copy the modules and documentation to standard Perl directories all over the system.
Is this the way it’s supposed to be? Do you install the application into the standard Perl directories? I am used to having my Perl applications in one directory with separate lib
. Otherwise it seems I’d have to manage a lot of other things, like installing the resources somewhere on path etc. If I just want to install the deps declared in Makefile.PL
and run the application tests to make sure everything works, what should I do?
(Is this documented somewhere? I mean, is there something like best practice for deploying and updating non-trivial Perl applications? Or is everybody doing this his own way?)