This is my first obfuscated code, so it's probably not too great, but here it is:

This code plays around with eval and pack a bit. I got a little uncreative near the end and just stuck the numbers straight in, but oh well.

$a="0"x((eval join'+',1..10)-5);($a)=map{$_}$a=~y/0//; $b=pack("C",67);$_=pack($b,pack($b,$a+4).pack($b,$a+6)); eval;sub D{$_=eval(join'*',1..5)-eval(join'+',1..9)-1; $_.=$".ord(chr($_+ord'+'));$_.=$".ord(chr($_ +(eval( join('+',2<<4,2<<2,2)))-1));$_.=$".ord(chr($_+(eval( join('+',2<<4,2<<2,2)))));print map{chr}split;print map{chr}32,65,110,111,116,104,101,114;print map{chr} 32,80,101,114,108;print map{chr}32,72,97,99,107,101,114; }


The 15 year old, freshman programmer,
Stephen Rawls

In reply to Just another JAPH by srawls

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.