poisn
poisn

Reputation: 447

Export Perl script with modules

I have a perl script which is deleting Logs files for me. Now I want to use this script on multiple other computers and on one server. The problem is, that I use some manual downloaded modules.

My question is, how can I export a perl script into a .zip with all used modules in the script?

What I'm trying to reach is, that I can put the .zip file on a different computer and run the script without any error caused by the manual imported modules.

Upvotes: 4

Views: 189

Answers (1)

daxim
daxim

Reputation: 39158

Distribute as one program containing everything:

Alternatively, install the dependencies into a local subdirectory and add the subdirectory to the include path.

  • cpanm -L extlib Some::Module Yet::Another::Module More::Modules

Upvotes: 8

Related Questions