Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
This is a port of the poem Jabberwocky, as seen in the Perl Poetry contest. While the output of the poem is not significant, the three characters mentioned in Jabberwocky actually exist (as processes) when running this program. In fact, each one acts out their portion of the poem. And no, the processes aren't meant to slay your system ;-)
Perl Port of Jabberwocky #!/usr/bin/perl $brillig and $toves{slithy}; for $gyre ( @wabe ) {} for $gimble ( @wabe ) {} map { s/^.*$/mimsy/g } @borogoves and $mome{raths} = outgrabe; if(my $son = fork) { warn "Beware the Jabberwock!"; jaws && bite, claws && catch; warn "Beware the Jubjub bird" and $shun, $Bandersnatch{frumious} == 1; }else{ $_{hand} = \$sword{vorpal}; seek FOE, $manxome, (4_294_967_296 * time); sleep ($tree{Tumtum} = $_); while (study) { stand } while (study($uffish)) { $_{stand} == 1; } unless ($Jabberwock = fork) { $Jabberwock{eyes} = flame, $Jabberwock{movement} = wiffle, $Jabberwock{location} = $wood{tulgey} +; while ($coming=1) { burble }} (1, 2), (1, 2) and through and through; $sword{vorpal}{blade} = snicker-snack; (kill 9, $Jabberwock), $head = (chop $Jabberwock); sub{ return $_, $head }; } tell $son, "And hast thou slain the Jabberwock?". "Come to my arms, my beamish boy! ". "O frabjous day! Callooh! Callay! ", $_{joy} = chortle if $son; $brillig and $toves{slithy}; for $gyre ( @wabe ) {} for $gimble ( @wabe ) {} map { s/^.*$/mimsy/g } @borogoves and $mome{raths} = outgrabe; --- The Original Jabberwocky by Lewis Caroll 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. "Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jubjub bird, and shun The frumious Bandersnatch!" He took his vorpal sword in hand: Long time the manxome foe he sought-- So rested he by the Tumtum tree, And stood awhile in thought. And, as in uffish thought he stood, The Jabberwock, with eyes of flame, Came whiffling through the tulgey wood, And burbled as it came! One two! One two! And through and through The vorpal blade went snicker-snack! He left it dead, and with its head He went galumphing back. "And hast thou slain the Jabberwock? Come to my arms, my beamish boy! O frabjous day! Callooh! Callay!" He chortled in his joy. 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe; All mimsy were the borogoves, And the mome raths outgrabe. ---

-Eric

In reply to Jabberwocky -- Explained by andreychek

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others exploiting the Monastery: (4)
    As of 2014-08-31 04:37 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (294 votes), past polls