Usually I've found that when someone says "yes, I really need to do this" and doesn't provide an explanation, further digging often reveals that the person's problem has a much simpler and better solution than the proposed one.

So, I have to ask "why". Quite often, it turns out that a person's reasons for doing something, once explained, leads to different and better solutions for what they are trying to accomplish. Further, if you're just doing this to protect your intellectual work, you may wish to consider a programming language more suitable for that than Perl. In the Perl community, you are given a programming language and lots and lots of help for free. As a result, if you turn around and hide your source code, it's often frowned upon.

Also, Perl compilers are generally not terribly good. I don't know why your code is up to 20MB, but you should be aware that the entire Perl interpreter is embedded in the compiled version (which is required, due to the way Perl works).

So, if you explain why you want to do this, maybe we can help you find an easier solution.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to (Ovid) Re: Compiling Perl by Ovid
in thread Compiling Perl by Anonymous Monk

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.