This is really my first JAPH: The last one, my first JAPH which was not in fact, technically a JAPH, wasn't a JAPH, merely obfuscated. errr...

I'm afraid it isn't hugely obfuscated but I am mildly happy with it. As always, all comments welcome.

#! /usr/bin/perl -w use strict; my @zxa; my $zax = ' aac aaa ata tac gtt taa aaa aat ggg ggt taa gca gac gtg aaa cag gac gtg gga aaa agg ctc ctt gct gac gtg aag ';;$zax =~ s/\s//g;;$zax=~ tr/acgt/0123/;;;my $xza;;while ($zax =~ s/^(...)//){ $xza = $1;;push @zxa, $xza;}my $ixz;;my $axz;foreach $zax(@zxa){$axz = 0;;; for ($ixz=2;$ixz >=0; --$ixz) {$zax =~ s/^(.)//;$axz+= $1*(4**$ixz);}$zax = $axz; }foreach $xza(@zxa){if ($xza == 0){$xza+=32;;;}elsif ($xza == 1){$xza += 44;}elsif ($xza == 2){$xza+= 44; }elsif ($xza >=3 && $xza <=28){$xza+=62;}elsif ($xza >=29 && $xza <=54){$xza += 68;}}@zxa = map chr, @zxa ;;print "\n";;print join "",@zxa;print "\n\n";

I hope there are no typos: I'll be around tonight so if there are any problems, I'll rectify them. (I'm not allowed to network my laptop here at Uni :-| and the network is WinNT and I'm not allowed to install Perl Win32 :-( which is annoying.)

Elgon


In reply to First (real) JAPH by Elgon

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.