What is the relationship between Perl PAR :: Packer pp, par.pl, parl scripts?

I am trying to learn PAR and PAR :: Packer. I understand that PAR is a module that allows you to load modules from .par archives. I do not understand the three scenarios pp

, par.pl

, parl

in PAR :: Packer. (Note: this question parl

includes parl.exe

for windows).

  • What exactly should be par.pl

    ? Is it a perl script that contains a perl interpreter (the same as on the development machine) and a module PAR

    ?
  • What is it parl

    ? Is it a binary file that contains the same as par.pl?
  • If I am not mistaken about what par.pl

    and parl

    why would someone need it par.pl

    ? parl

    seems strictly excellent as it can work without the pre-existing perl.
  • Is it parl

    safe to redistribute to end users without perl that way ever? For example, if I have multiple scripts that I want to distribute, like sharing multiple modules, can I distribute parl

    , pairs for scripts and modules, and simple wrappers to run par'd scripts with parl

    ?
  • parl

    and par.pl

    can create stand-alone scripts / exectubles with parameters -b

    and -b

    , respectively. Does this mean pp

    only interface / wrapper?
+3


source to share


1 answer


What is par.pl? Is it a perl script that contains a perl interpreter (the same as on the development machine) and a PAR module?

par.pl is a perl script that includes core, non-core modules and shared libraries as PAR objects. It also generates the equivalent perl script from the specified PAR object. It can also call a perl script object embedded within a PAR object. It is also used to create and manage PAR allocations. It is not a perl interpreter, but instead invokes the perl interpreter itself.

What is parl? Is it a binary that contains the same as par.pl?

parl - binary version of par.pl

If I'm not mistaken about what par.pl and parl are, why would anyone need par.pl? parl seems to be strictly excellent since it can work without the pre-existing perl.



Although the functions provided by par.pl and parl are the same, par.pl needs a Perl interpreter, whereas parl does not.

Is parl safe to distribute to end users without perl, is it ever? For example, if I have multiple scripts that I want to distribute, how to exchange many modules, can I distribute parl, pars for scripts and modules, and simple wrapper scripts to run par'd scripts using parl?

Yes.

parl and par.pl can create stand-alone scripts / exectubles at the same time with the -b and -B options respectively. Does this mean pp is just an interface / wrapper?

pp detects and packages dependent modules, while parl only contains specialized modules and scripts.

+4


source







All Articles