views:

99

answers:

2

I need to use some CPAN modules in my application. If the person who will use my application doesn't like to install the required CPAN modules by himself, or it is not allowed to install modules, how should I handle that?

+6  A: 

You can use PAR::Packer to create an executable bundle that contains all the CPAN modules your app needs to run.

friedo
The OP could also use pp from PAR::Packer with the -p option to create PAR archives that contain only libraries and have no executable attached. This option allows the creation of multi-architecture PAR files if desired.
daotoad
+3  A: 

Or, you can copy the module's installation to your app's specific directory and include that in @INC.

Kristoffon