I haven't done a JAPH in forever. Here's a very long and animated one.
#!/usr/bin/perl
while($t++<$FOUR*$FOUR+$EIGHT){$b[$_]=[map{$"}@a]for@a;$xs=$z>23?($z-=
+$FOUR,$xs)
:$z-$FOUR;$u=int(@a/$THREE-$xs);for$x($u..$u+$xs*$THREE+$TWO) {$b[$_]-
+>[$x]=$x==
$_?'\\':$x==@a-$_?'/':$b[$_]->[$x]for($u..$u+$TWO+$THREE*$xs)}$i=0;whi
+le($z-$i>0
){$s=$z-($i+=$FOUR);$u=int(@a/$THREE-$s); $s*=$THREE;$us=$u+$s;for$x($
+u..10+$us-
9){for$y($u..$u+$TWO+$s){;$b[$y]->[$x]=' 'if$t>=31&&$s<$EIGHT;$b[$y]->
+[$x]=($y==
$u||$y-$TWO==$us)&&( $x==$u||$x-$TWO==$us)?'+':$y==$u||$y==$us+$TWO?'-
+':$x==$u||
$x-$TWO==$us?'|':$b[$y]->[$x]};}BEGIN{$FOUR=5;$THREE=$FOUR-3;$TWO=$FOU
+R/5;@a=0..
$TWO+42-$FOUR;$EIGHT=$FOUR*2}}if(@a-$FOUR+$TWO==$t){$TEN=$FOUR+$FOUR+$
+TWO;$THREE
;@w=map{[split//]}qw(Just Another Perl Hacker);$y=$x=42-$FOUR**$THREE;
+for$w(@w){
$y++;$b[$y]->[$x+$_]=$w->[$_]for(0..$#$w)}}print"\ec",map{@{$b[$_]},$/
+}@a;select
$&,$&,$&,$TWO/10;$z++}
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.