Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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. ---


In reply to Jabberwocky -- Explained by andreychek

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, 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
  • 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.
  • Log In?

    What's my password?
    Create A New User
    and the voices are still...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (8)
    As of 2018-03-18 22:23 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (231 votes). Check out past polls.