Since you have to expose your code to your customer. It seems there is NO real technical solution. So Create two copies of your code(Your copy and Customer's copy). Your copy should be well commented, well indented. And in Customer' copy
1) Convert complete code to a single line
2) Remove all good comments
3) Insert wrong comments, which would add to the confusion.
4) define non-sense variables with some mis-leading names, subroutines/classes/Modules with some mis-leading names and don't use them in code.
5) Increase size of the code by writing non-sense comments.
6) Take care that these things would NOT affect the output by any means.

Most probably customer would prefer to give you maintainance part rather than debugging your code. However a real debugger would still extract your logic, but you can always make his life difficult.

Regards,
Sandeep

In reply to Re: Hiding source code (in a country with no laws) by sanPerl
in thread Hiding source code (in a country with no laws) by diego_de_lima

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.