An attempt to print the japh horizontally and vertically. Reads the code and prints the shape.
The code is not much unreadable though.
#!/usr/bin/perl -w use strict;(open O ,$0)&& (push my @r ,_v ( [ map{ _c(join("",@{$_}) ,1)} @{ _v ([map{_c($_ ,1) } <O>])} ])); push @r,_v (((( $r [ -1])) ))for( 0 .. int( rand ( (5))) +1); map { map { map{ $_&& print} @ {$_ };;; &_p } @{$_}; &_p} @r ;sub _p { print"\n" } sub _c{my( $o ,@a, $f,@r)=($_[1], split("",$_ [0]),0);for ( my$i =0,$f=0;$i< sc (@a);$i+=$o ){for($i..( $i +$o) ){($a[$_]&& $a [$_]ne" "&& $a[$_]ne"\n" ) && ( $f=1 );( $_ ==($i +$o)) && ( push @r,( $f== 1 )?"@" :" ") && ($f =0); } } return \@r;; } sub _v{my( @r); for( @{$_[0 ]} ) { for my $j (0.. _m ( \@{ $_ [0]}) -1) { push @ {$r[$j]},($_->[$j] &&$_->[$j]ne"\n")?$_->[$j ] :" ";#; }}return[map{\@{$_}}@r];};sub _m{my $l=0;($l<sc(@ {$_ }))&& ($l=sc(@{$_}))for(@{$_[0]});return $l;} sub sc{return scalar(@_)}#Mandrake#
Change the code to a different shape to find the shape on the output. Thanks..

In reply to Fun with code read & print by Mandrake

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.