Re: Running pp from inside a perl script/PAR generated executable
[email protected] (Roderich Schupp) Fri, 31 May 2019 09:19:45 +0200
| Newsgroups | perl.par |
|---|---|
| Message-ID | <CAC9r9zb19LVahprqyEpDFe6qCWkz2tkEm44jL0G05DttqMBCzA@mail.gmail.com> |
On Fri, May 31, 2019 at 6:05 AM Daniel Knutsen <[email protected]> wrote: > I am trying to distribute a perl script that generates stand-alone > executables using pp (via the system command...) to some co-worker(s). > They don't have Perl/PAR::Packer installed on their machines...so I am > trying to use PAR to basically "package itself" such that I can command > generation of the executable from inside the perl script in such a way that > I can then use pp to generate a executable version of the perl script. > This effectively results in a PAR generated executable that generates > another PAR generated executable.. > Just an idea: pp *both* your script and pp itself (which is just a Perl script after all) into an executable and invoke pp from your script not via "system", but with "do". Cheers, Roderich