Inspiring! Here's a nursery rhyme I learned.
use Filter::Echo repeat_line => 2; use Lottery::ShortStraw; my $ship = Ship->new(size => 'small'); assert(!$ship->sailed()); my $trip = Trip->new(size => 'long', where => 'Mediterranean Sea'); $ship->stock_for((5+rand()) * 7); # 5..6 weeks $ship->sail($trip); while ($ship->at_sea()) { if ($ship->food() == 0) { log("ERROR: Food supplies depleated\n"); my $winner = short_straw($ship->crew->list()); $ship->crew->remove($winner); log("INFO: " .$winner->name() . " (" . $winner->epitaph() . ") has been eaten\n"); $ship->stock($winner->cook()); } }
Log:
ERROR: Food supplies depleated INFO: Younguest (Had never sailed) has been eaten

The above is based on a French nusery rhyme. Most only know the first two verses. Here are the first five.

Il était un petit navire
Il était un petit navire
Qui n'avait ja, ja, jamais navigué
Qui n'avait ja, ja, jamais navigué

Ohé, ohé...

Il entreprit un long voyage
Il entreprit un long voyage
Sur la mer Mé, Mé, Méditérannée
Sur la mer Mé, Mé, Méditérannée

Ohé, ohé...

Au bout de cinq à six semaines
Au bout de cinq à six semaines
Les vivres vin, vin, vinrent à manquer
Les vivres vin, vin, vinrent à manquer

Ohé, ohé...

On tira t'à la courte paille
On tira t'à la courte paille
Pour savoir qui, qui, qui serait mangé
Pour savoir qui, qui, qui serait mangé

Ohé, ohé...

Le sort tomba sur le plus jeune
Le sort tomba sur le plus jeune
Qui n'avait ja, ja, jamais navigué
Qui n'avait ja, ja, jamais navigué

...

Roughly translated:

There was once a little ship which have never sailed.
It undertook a long trip on the Mediterranean Sea.
After 5 or 6 weeks, supplies ran out.
Straws were drawn to determine who whould be eaten.
The fate landed on the youguest, who had never sailed.
...

Things actually turn for the best after a few more verses. While discussing how he'd be eaten, the sailor's prayers are answered. Millions of small fishes leap aboard. Still quite gruesome!


In reply to Re: For the wee ones - perl Nursery Rhymes by ikegami
in thread For the wee ones - perl Nursery Rhymes by qbxk

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.