Anonymous Monk, I really enjoyed this japh. Nice job! This is the first japh I've really been able to untangle and follow. I took the liberty of adding strict and warnings, but aside from the additions of the my's , no modifications were needed. So here's my analysis (spoiler warning) :
/usr/local/bin/perl -w use strict; my $c="ePreh"; my $k="tonat"; my $h="ckeJ"; my $a="ahlr"; $h=reverse($h); # $h = "Jekc" my $e=$h.$a.$c.$k."sur"; #$e = "JekcahlrePrehtonatsur" # This next part makes my eyes cross when I look at it for too long. # Turns out it switches the 1st and last character of $e. (substr($e,0,1),substr($e,-1))=(substr($e,-1),substr($e,0,1)); $e=reverse($e); # $e = "JustanotherPerlhacker" $e=~s/stan/st an/; # $e = "Just anotherPerlhacker" $e=~s/rP/r P/; #$e = "Just another Perlhacker" $e=~s/rlh/rl h/; #$e = "Just another Perl hacker" $e.="\n";print($e); #append an newline to $e, and print it out.
Thanks for posting this! It was a lot of fun to untangle. I liked the spelling out of a word with your variables. I'm going to go try some of the others now. :-)

In reply to Re: Word games by machinecraig
in thread Word games by Anonymous Monk

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.