Re: Running pp from inside a perl script/PAR generated executable
[email protected] (Daniel Knutsen) Fri, 31 May 2019 13:50:08 -0400
| Newsgroups | perl.par |
|---|---|
| Message-ID | <CAKQhid62F0qod3AQqGvOzUdkE5+OdPrtQS+pq4kNzj9Zc9XD_g@mail.gmail.com> |
Thanks for the feedback. Good thought. Gave it a try and it looks like PAR is not packaging everything it needs when I pp "pp". The error I get is "cant locate Heavy.pm". I'm going to keep experimenting with this to see if I can get it grab everything it needs. Cheers, Dan On Fri, May 31, 2019 at 3:19 AM Roderich Schupp <[email protected]> wrote: > 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 >