Part V. Poetry
I received the following note from a poetry teacher as this book was zooming toward publication:
What the heck is a Perl poem? I’ve been writing and teaching poetry since 1961, and I never heard of the term. I’d like to know so as to see if my students and I can write perl(s).
My response:
Conventional poems are passive: they can’t do anything other than sit on a page and wait for people to read them. Perl poems, on the other hand, are functional: they are active programs that a computer can execute. What the poem/program does is limited only by the poet’s imagination.
The most flexible computer language naturally lends itself to this most flexible linguistic endeavor. Perl poetry has been around since 1990; the original Perl poet, Sharon Hopkins, has had her work published in the Economist and Guardian.
In this section, Damian Conway discusses his Coy module, which renders error messages as haiku. Sean Burke then shows you how to use Perl to find rhymes with the proper stress and meter, and Kevin Meltzer and I conclude the section with the results of the first ever Perl Poetry Contest.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access