To be honest, it was not very obfuscated - I was able to deduce what it printed right away. (blame my C experience for actually knowing the decimal characters!). Obfuscated code should be very hard to decipher. Basically, you want to do the oposite of all the "good coding" rules. Don't use something self-explanatory like "@list and &show." Use funky quoting schemes (qq! etc.) instead of plain quotes. Don't put all your array element transpositions and assignments in order (you change $list[0], then $list[1], $list[2], etc. Play around with seldom used features, strange side-effects, and some of the variables that people seldom use like $^A or $,. Misdirect, and make people think the code is doing one thing while it is doing another. Throw in bits that don't do anything useful at all. Don't do things the "standard" way. And it's probably best not to use strict - it severly limits all the tricks and pseudo-legal expressions that form good obfuscated code. Just some quick thoughts...

In reply to RE: First attempt! by turnstep
in thread First attempt! by ergowolf

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.