Hello Gorby.

I'm sure you have some legitimate reason to hide the Perl code from your users.

If I were in your shoes, I'd use Acme::Bleach.

This is a fun (ie, presumably half-joking) way to make your script invisible. I suppose a real Perl guru could still find a way to un-bleach it, but that might be hard.

Here's how it works:

frost@penitente% cat foo.pl
#!/usr/bin/perl

use strict;
use Acme::Bleach; 

print "Eyes only, sucka!\n";

frost@penitente% ./foo.pl
frost@penitente% perl foo.pl
Eyes only, sucka!
frost@penitente% cat foo.pl
use Acme::Bleach;

 ... many lines of whitespace here ... 

frost@penitente%

You have to re-add #!/usr/bin/perl on the first line (above use Acme::Bleach;) if you want to execute it directly.

You also want very much to keep a backup copy of the code somewhere safe, and be sure to not use Acme::Bleach in that copy.

This may not be as practical as some of the other suggestions, but it is likely to be more fun.


In reply to use Acme::Bleach by frostman
in thread Execute But Not Read by Gorby

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.