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..