25 Apr 2003

Perl Poetry
“Life” – by Brian Van Horne

#!/usr/bin/perl
# life.pl

open life; use Wisdom;
seek food, water, shelter;

for () { # means to
eat() if /hungry/;
drink() if /thirsty/;
sleep (“just for a while”) if /tired/;
read books, $think, write $code, etc;
}

close life;
exit # quietly . . .

Kevin Meltzer is the creator of the Perl Poetry Contest. See the 2001 Perl Poetry Contest results.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.