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 <roderich.sch...@gmail.com> wrote: > On Fri, May 31, 2019 at 6:05 AM Daniel Knutsen <dmknut...@gmail.com> > 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 >