writing perl code in a shakespeare style

Lingua::Shakespeare makes it possible to write perl programs that
are as poetic as a Shakespeare play.
The language is referred to as SPL 
(Shakespeare Programming Language)

HELLO WORLD EXAMPLE
use Lingua::Shakespeare;

  The Infamous Hello World Program.

  Romeo, a young man with a remarkable patience.
  Juliet, a likewise young woman of remarkable grace.
  Ophelia, a remarkable woman much in dispute with Hamlet.
  Hamlet, the flatterer of Andersen Insulting A/S.

                      Act I: Hamlet's insults and flattery.

                      Scene I: The insulting of Romeo.

  [Enter Hamlet and Romeo]

  Hamlet:
   You lying stupid fatherless big smelly half-witted coward!
   You are as stupid as the difference between a handsome rich brave
   hero and thyself! Speak your mind!

   You are as brave as the sum of your fat little stuffed misused dusty
   old rotten codpiece and a beautiful fair warm peaceful sunny summer's
   day. You are as healthy as the difference between the sum of the
   sweetest reddest rose and my father and yourself! Speak your mind!

   You are as cowardly as the sum of yourself and the difference
   between a big mighty proud kingdom and a horse. Speak your mind.

   Speak your mind!

  [Exit Romeo]

                      Scene II: The praising of Juliet.

  [Enter Juliet]

  Hamlet:
   Thou art as sweet as the sum of the sum of Romeo and his horse and his
   black cat! Speak thy mind!

  [Exit Juliet]

                      Scene III: The praising of Ophelia.

  [Enter Ophelia]

  Hamlet:
   Thou art as lovely as the product of a large rural town and my amazing
   bottomless embroidered purse. Speak thy mind!

   Thou art as loving as the product of the bluest clearest sweetest sky
   and the sum of a squirrel and a white horse. Thou art as beautiful as
   the difference between Juliet and thyself. Speak thy mind!

  [Exeunt Ophelia and Hamlet]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s