Meow, MEOW, meow! Truck.

Aug 31, 2008 17:45

"meow.pl":

#!/usr/bin/perl
# Runs from Mac OS X

my $n = 1;
my @voices = qw(bruce alex fred kathy vicki victoria);

$| = 1;

do {
$voice = $voices[int(rand($#voices+1))];
$out = "meow";
$out =~ s/e/ee/ if (rand() < 0.2);
$out .= '!' if (rand() < 0.4);
$out = 'Truck' if (rand() < 0.05) && ($n > 3 ( Read more... )

truck, perl, meow

Leave a comment

Comments 2

maradydd September 1 2008, 01:55:57 UTC
FWIW, on 10.4 "Alex" isn't a recognised voice and it wants the voice names capitalised.

Reply


John Haley's reaction anonymous September 1 2008, 21:52:45 UTC
"A truck doesn't say 'Meow.'" (John Haley is three years old.)

Reply


Leave a comment

Up