not bad :)
# # assign some chars to $_ # $_=q.$wHFGnABGUREcREYuNPXRE NAQyNEEL="larry".; # # do a regexp in a regexp # s!^\$(.+)=(.)(\S+)(\2)$!($foo=($foo=$1))=~s,((?:n|c|u|y).), $1,g!ex; # # simplified: # $foo = 'wHFG nABGURE cREY uNPXRE NAQ yNEEL'; # $3 = 'larry'; # # # split up "larry" into @x # @x = qw(l a r r y); # @x=split("",$3,-@-); # # map the values 4,17,-9,-4 and -5 # map{ $x[$y]=chr(($x[$y]=ord($x[$y]))+=$_); ++$y }qw(4 17 -9 -4 -5); # # this can be simplified to: # # $y=0; # for $a((4,17,-9,-4,-5)){ # $x[$y] = chr(ord($x[$y])+$a); # $y++; # } # # which can be further simplified to: # # $x[0] = chr(ord($x[0]) + 4); # $x[1] = chr(ord($x[2]) + 17); # $x[2] = chr(ord($x[3]) - 9); # $x[3] = chr(ord($x[4]) - 4); # $x[4] = chr(ord($x[5]) - 5); # # # assign the array in @x to $print # $print=join("",@x); # # $print now holds the string 'print' # (which was tranformed from 'larry' by the map) # # # do a tranliteration on $foo to change it to # "Just Another Perl Hacker and Larry" # $foo=~y.A-Za-z.n-za-mN-ZA-M.; # # using capture variables from the first regex, transform $japh to # "Just Another Perl Hacker and Larry.\n"; # $japh="$+$foo.\\n$2;"; # # eval the statement # eval"$print $japh";

In reply to Re: my first (good) japh. by iamcal
in thread my first (good) japh. by lshatzer

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.