+($\,$})=($/,q$@$);@@=split$!=>($@ =$}|'/'=>$:=$@,++$@,$@++,$~=(++$@=> ++$@),$.=$",$_=$/|$}.(+(++$@=>++$@). $~).++$~.$..($;=$}|'!').($^='.'|$}).+ ('/'|$}).$~.($@=$}|'(').($"='%'|$}).(+ +++$:=>++$:,+++$:).$..($:^'"').$".$:.(q },}|$}).$..$@.$;.($}.$}|'#+').$".$:.q|,| );sub f{print@_}sub i(_){my($l,$j)=0;my( $x,$y,$z,$c,$h,$v,$d,$s,$p,$o)=(+@{+pop} ,qw w+ -w,qw\| /\,sub{$j=$_[0];$l+$j>+@@ &&($l=$?);@@[do{$l=$j+$l;$l-$j..$l-1}]}, $?);f$.x($z+1),$c,$h x$x,$c;f$.x($z-$_+1 ),$d,$s->($x),$d,$s->($_-1-$p),$_>$y?!$p &&++$p?do{$o=$z-$y;$c}:$p++?$d:$c:$v for 1..$z;f$c,$h x$x,$c,$p?($s->($z-$o),$d): ($s->($z),$z<$y?$v:$c);f$v,$s->($x),$v, ,$z-1>=$y?$_>=$z?($s->($x),$c):($s->($ z-$_-$o),$d):$y-$_>$z?($s->($z),$v):( $s->($y-$_),$y-$_==$z?$c:$d)for+1..$ y;f$c,$h x$x,$c}+i,,for[24,24,24],[ 1,24,0],[24,1,0],[1,0,24],[24,3,1]

In reply to Cubic JAPH by trizen

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.