I am stupid for thinking that creating JAPH's was simple as baking a NodeReaper cherry pie. I was dead wrong. So I tried my hand at making a rather large (unfortunately,) JAPH, which is in fact, my first attempt. I didn't look at any other JAPH code, to create it, and it does in fact, look different, if you run the code. Hopefully the letters of the JAPH will look more creative than just the plain lettering does, but anyhow. Here is the code:

#!/usr/bin/perl -w use strict; my @a = qw(j a p h); my ($n,$s,$t) = ("\n"," ","\t"); fo +r (my $x=0; $x<=10; $x++) { print $s x5,$a[0]x$x; print $s x5,$a[1]x$ +x; print $s x5,$a[2]x$x; if ($x <= 6) { if ($x == 1) { print $a[2]x9; + } elsif ($x == 6) { print $a[2]x9; } else{ print $s x5,$a[2]x$x; } } + if ($x == 6) { print $s x6,$a[3]x$x; } elsif ($x > 6) { print $s x14 +,$a[3]x$x; } else { print $s x5,$a[3]x$x; } print $s x9,$a[3]x$x; pri +nt $n; } my $w=13; for (my $x=0; $x<=3; $x++) { print $s x$x,$a[0]x +$w; print $s x6,$a[1]x3; if ($x == 1) { print $a[1]x9; } else { print + $s,$s,$s x3,$a[1]x3; } print $s x6,$a[2]x8; print $s x13,$a[3]x12; i +f ($x == 1) { print $a[3]x18; } else { print $s x7,$a[3]x12; } print +$n; $w-=3; }


Hopefully it isn't that dumb for my first one... it is different, but rather long winded, and hopefully if I create another one someday, I will shorten it a lot, to produce a similar JAPH.

Andy Summers

In reply to boku no ichiban JAPH (#1 JAPH) by bladx

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.