I just realized something to hide&reduce those strings: You use exactly 32 different characters (excluding newline), so you might be able to encode them with 5-bit codes and pack them tightly into a bitstring which you put as raw binary data into the file. This will make all strings almost twice as short and totally unreadable.

•Update: sorry, mind blurp.. I was already thinking a bit ahead. You use less than 32 chars, but if you take a..z and add the remaining ones you use ('P', 'S', ' ', '.', "'", ':') it adds up to 32. Using a..z is useful since it's more compact than explicitly listing all chars you really use.

The issue is how to compactly write the decoding logic. You'll have to play with unpack 'B*' etc. Also use barewords when possible (unpack B99, or if you need a list of chars for the logic you can do a..z)

I don't have time to try this myself right now, maybe someone else can figure it out from here


In reply to Re: Re: Obfu/golf Contest by xmath
in thread Obfu/golf Contest by hacker_j99

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.