Cover image for Games, diversions, and Perl culture : best of the Perl journal
Games, diversions, and Perl culture : best of the Perl journal
Orwant, Jon.
First edition.
Publication Information:
Sebastopol, CA : O'Reilly, [2003]

Physical Description:
xiii, 569 pages : illustrations ; 24 cm.
General Note:
Includes index.
Added Author:
Added Uniform Title:
Perl journal.
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.73.P22 G36 2003 Adult Non-Fiction Central Closed Stacks

On Order



The Perl Journal ( TPJ ) did something most print journals aspire to, but few succeed. Within a remarkable short time, TPJ acquired a cult-following and became the voice of the Perl community. Every serious Perl programmer subscribed to it, and every notable Perl guru jumped at the opportunity to write for it. Back issues were swapped like trading cards. No longer in print format, TPJ remains the quintessential spirit of Perl--a publication for and by Perl programmers who see fun and beauty in an admittedly quirky little language. Games, Diversions, and Perl Culture is the third volume of The Best of the Perl Journal , compiled and re-edited by the original editor and publisher of The Perl Journal , Jon Orwant. In this series, we've taken the very best (and still relevant) articles published in TPJ over its 5 years of publication and immortalized them into three volumes.The 47 articles included in this volume are simply some of the best Perl articles ever written on the subjects of games, diversions, and the unique culture of this close-knit community, by some of the best Perl authors and coders. Games, Diversions & Perl Culture focuses on entertaining topics that make Perl users such fanatics about the language. You'll find all of the playful features TPJ offered over the years, including the Obfuscated Perl Contests, Perl Quiz Shows, humor articles, and renowned one-line recipes. The book also contains a panoply of quirky applications of Perl, including genetic algorithms, home automation, music programming, and an entire section on natural language processing.This anthology is an unmatched compendium of Perl lore.

Table of Contents

Prefacep. ix
1. Introductionp. 1
Part I. Culture
2. Wherefore Art, Thou?p. 5
3. TPJ Cover Art: From Camels to Spamp. 10
4. Perl Stylep. 32
5. Home Automation with MisterHousep. 38
6. Home Automation: The X10 Nitty-Grittyp. 49
7. A Day in the Life of comp.lang.perl.miscp. 61
Part II. Science
8. Perl-fect Sundialsp. 71
9. Genetic Algorithmsp. 79
10. How Perl Saved the Human Genome Projectp. 89
11. PDL: The Perl Data Languagep. 98
Part III. Language
12. Chatbot::Elizap. 109
13. Infobots and Purlp. 115
14. Speech Synthesisp. 126
15. Lazy Text Formattingp. 134
16. Perl and MIDI: Simple Languages, Easy Musicp. 144
17. Braille Contractions and Regular Expressionsp. 159
18. Hypernyms, Hyponyms, Pertainyms, and Other Word Relationshipsp. 172
19. Parsing Natural Languagep. 189
20. Word Morphologyp. 201
21. Smart Matching for Human Namesp. 213
22. Localizing Your Perl Programsp. 219
23. Internationalized Sortingp. 233
24. Simulating Typos with Perlp. 245
25. Correcting Typos with Perlp. 257
26. Learning Japanese with an HTML Filterp. 263
Part IV. Games and Quizzes
27. Games in Perlp. 275
28. The Prisoner's Dilemmap. 280
29. The Rezrov Infocom Game Interpreterp. 286
30. Tktk: A Perl/Tk Solitaire Gamep. 306
31. The First Perl/Internet Quiz Showp. 316
32. The Second Perl/Internet Quiz Showp. 329
33. The Third Perl/Internet Quiz Showp. 346
34. The Fourth Perl/Internet Quiz Showp. 361
35. The Perl Whirl Quiz Showp. 383
36. The Perl Wizard's Quizp. 395
Part V. Poetry
37. Just Another Perl Haikup. 407
38. Searching for Rhymes with Perlp. 425
39. The Perl Poetry Contestp. 437
Part VI. Politics
40. Pairwise Votingp. 445
41. Secure Internet Votingp. 460
42. Perl and Nuclear Weapons Don't Mixp. 479
Part VII. Obfuscated Perl
43. The Zeroth Annual Obfuscated Perl Contestp. 487
44. The First Obfuscated Perl Contestp. 494
45. The Third Obfuscated Perl Contestp. 503
46. The Fourth Obfuscated Perl Contestp. 509
47. The Fifth Obfuscated Perl Contestp. 515
48. One-Linersp. 522
About the Authorsp. 539
Indexp. 543