in reply to Perl to executable without releasing source code?

BTW, pp does not actually compile your Perl program. What is does is create a special Zip file containing copies of your Perl program source and as many of the modules and libraries your program depends on, and a copy of the Perl run time environment. If you open the executable with Zip, 7-Zip or similar tool, you can see all the files inside. Sometimes, pp can't determine all the dependencies. The -a option allows you to add any that pp doesn't by itself.

When you run the executable, it automatically extracts the files into a temporary directory on your PC, then runs the extracted Perl environment, giving it the name of your program and any parameters you supplied to the executable.

  • Comment on Re: Perl to executable without releasing source code?

Replies are listed 'Best First'.
Re^2: Perl to executable without releasing source code?
by perlnb2015 (Initiate) on Mar 24, 2015 at 20:32 UTC
    Thanks for such an easily-understood-by-beginners explanation! I guess now I finally how pp works. It really took me a long time to go though the links mentioned here and test all the methods but still feel confused.

    I wish there are always detailed information that helps beginners like me to be able to follow. For this case, I thought after 'compiling', all I need to deliver is the .exe file. I didn't know that the additional icon folder should be presented too. Information like this can save people a lot of time.

    Thanks again!

      What other questions do you have?