Yup, pretty easy to deconstruct. You use quite a bit of superfluous syntax by the way. How did you work the encoding in the first place?
 
tachyon
$_="qwertyuiopasdfghjklzxcvbnm "; # string @b=(m{(.{10})(.{9})(.*)}); # @b = (qwertyuiop, asdfghjkl, 'zxc +vbnm '); @b=map{my@a=split//;$_=\@a;}@b; # this line makes a 2D array #net effect of above code is to make a 2D array of letters: # we could avoid the temp array @a by using: @b = ('qwertyuiop', 'asdfghjkl', 'zxcvbnm '); @b = map {[split//]}@b; # or alternatively we could: @a = ('qwertyuiop', 'asdfghjkl', 'zxcvbnm '); for (@a) {push @b, [split'',$_]} # we could even: @b = ( ['q','w','e','r','t','y','u','i','o','p'], ['a','s','d','f','g','h','j','k','l'], ['z','x','c','v','b','n','m',' '] ); $_="010422222033310333440222222210433333011333022220430222103044333301 +133022222220303333340240221022222043301333330122222030"; my@c=split//; # @c is simply an array of the values above 0..4 my$a=6;my$b=1; # init values for(@c){ $b--if($_==1); $a--if($_==2); $a++if($_==3); $b++if($_==4); # all we are doing is grubbing out the chars from the 2D array # based on the index in @c, I don't like this syntax much: print @{$b[$b]}[$a]if($_==0); # this array addressing syntax is cleaner I think print $b[$b][$a] unless $_; # you could also do this -> print @b->[$b][$a] unless $_; }

In reply to Re: Fun and Games by tachyon
in thread Fun and Games by iamcal

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.