Package Info

perl-PAR


Perl Archive Toolkit


Unspecified

This module lets you use special zip files, called Perl Archives, as libraries from which Perl modules can be loaded.

It supports loading XS modules by overriding DynaLoader bootstrapping methods; it writes shared object file to a temporary file at the time it is needed.

A .par file is mostly a zip of the blib/ directory after the build process of a CPAN distribution. To generate a .par file yourself, all you have to do is compress the modules under arch/ and lib/, e.g.:

% perl Makefile.PL
% make
% cd blib
% zip -r mymodule.par arch/ lib/

Afterward, you can just use mymodule.par anywhere in your '@INC', use PAR, and it will Just Work. Support for generating .par files is going to be in the next (beyond 0.2805) release of Module::Build.

For convenience, you can set the 'PERL5OPT' environment variable to '-MPAR' to enable 'PAR' processing globally (the overhead is small if not used); setting it to '-MPAR=/path/to/mylib.par' will load a specific PAR file. Alternatively, consider using the par.pl utility bundled with the PAR::Packer distribution, or using the self-contained parl utility which is also distributed with PAR::Packer on machines without PAR.pm installed.

Note that self-containing scripts and executables created with par.pl and pp may also be used as .par archives:

% pp -o packed.exe source.pl        # generate packed.exe (see PAR::Packer)
% perl -MPAR=packed.exe other.pl    # this also works
% perl -MPAR -Ipacked.exe other.pl  # ditto

Please see SYNOPSIS for most typical use cases.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/PAR

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.018-bp156.2.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.018-bp155.1.4 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.017-bp154.1.15 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.017-bp153.1.11 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.015-bp152.3.15 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.015-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.015-bp151.2.12 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR
1.015-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-PAR