Tools to package Perl scripts, modules, and applications
It does not matter if you have written a simple script, a module, or an application, it is recommended to use the tools that are already available to package and distribute CPAN modules. Even if your code is proprietary and you only would like to distribute it within your company.
There are basically 4 tools to package Perl modules:
There can package a module including several files, unit-tests, and various additional file into a single .tar.gz distribution. Once you have such tarball anyone can use the standard tools to install this distribution, just as if this was a CPAN distribution. Even if this was in a private CPAN repository or if it was received on its own.
Sometimes you'd like to create an executable that does not even require the user to install Perl up-front. PAR, or more specifically PAR::Packer will create an executable for your current platform and architecture. This executable can be distributed and ran without installing any prerequisites.
Published on 2017-03-04