How to install Perl script dependencies?

I have several scenarios that I provide to users as tools for their engineering projects. These scripts contain a lot of duplicate code. I want to extract this code and save it in a set of modules. However, for this to work, users would have to install these modules. I don’t want my users to say “do the installation”, etc., because I’m sure that none of them will have patience.

I understand that one option is to pack everything together with PAR, but ideally the user will be able to open && edit these scripts if they need it, as they do now. They should also be able to move them to any directory that they want, and I don't want them to move a bunch of library files either.

Is it possible to create a double-click file that installs some related Perl modules?

+3
source share
5 answers

script , CPAN . . script scriptdist. , cpan:

 % cpan .   # install from distribution in the current directory

, , DPAN, CPAN, CPAN . , CPAN, , CPAN. .

+5
+3

(dpkg, cygwin ..), .

+1

, - Perl Dev Kit Activestate.

  • Perl PerlApp - .
  • Windows, ActiveX, .NET .
  • MSI Perl.
+1

You can also use sparrow , a script distribution system. Sparrow plays great with Perl as he writes on it. It supports CPAN module dependencies through a cardboard tool.

PS Disclaimer - I'm the author of the tool

0
source

Source: https://habr.com/ru/post/1718865/


All Articles