Hi, I compiled my Perl script to an executable file using pp. The problem is, it only runs if the source code file provided with the .exe file. Is there any way (free) that I can distribute the program without releasing the source code? Thanks! Update: Thanks all for helping me here. I probably should rephrase my question. I don't worry about if the users can recover the source since the users I have are all non-IT users and I don't mind sharing the code with other ITs. This is a standalone tkx interface instead of web interfaces, therefore, I hope that I can release just ONE executable file to the users and that's it. Right now, the pp generated .exe file won't run unless I put the .pl file in the same folder (so two files). Is there any way to put everything the users needed into one .exe file? Thanks again. Update again: Just figured out that it's not because of the .pl file, it's the 'icons' folder that I added in when compiling the .exe file (pp -a "icons" ...). The executable won't run without the icon folder.

In reply to Perl to executable without releasing source code? by perlnb2015

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.