Log: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()); } }
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éeOhé, ohé...
Au bout de cinq à six semaines
Au bout de cinq à six semaines
Les vivres vin, vin, vinrent à manquer
Les vivres vin, vin, vinrent à manquerOhé, 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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |