my $answer=[q;7566626f206f7420756f7920656d6f636c65772049;]; print join''=>reverse split''=>pack H42=>$answer->[-1]=>eval; tachyon Here is a quick dissection, you definitely got slack at the end! $a="0"x((eval join'+',1..10)-5); # $a = '0'x50 ($a)=map{$_}$a=~y/0//; # $a = 50; $b=pack("C",67); # $b = 'C' $_=pack($b,pack($b,$a+4).pack($b,$a+6)); # $b = 'D' eval; # eval $_ => calls D() # preceeding code could be replaced by &D so it is basically fill; sub D{ $_=eval(join'*',1..5)-eval(join'+',1..9)-1; # 74 => J $_.=$".ord(chr($_+ord'+')); # 117 => u $_.=$".ord(chr($_+(eval(join('+',2<<4,2<<2,2)))-1));# 115 => s $_.=$".ord(chr($_+(eval(join('+',2<<4,2<<2,2))))); # 116 => t print map{chr}split; # Just print map{chr}32,65,110,111,116,104,101,114; # Another + print map{chr}32,80,101,114,108; # Perl print map{chr}32,72,97,99,107,101,114; # Hacker } # note eval join '+'(x..y) sums the joined numbers # eval join '*' (x..y) multiplies the joined numbers # $" is output record spearator default ' ' # Binary '<<' returns the value of its left argument shifted left # by the number of bits specified by the right argument. # thus dec 2 (b10) << dec 4 = b100000 = dec 32

In reply to Re: Just another JAPH by tachyon
in thread 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.