Perl source code comparison makes for good reading

Perliscope author traces style evolution


Good reading makes for good writing; literary authors know that, and we programmers need to take more advantage of the opportunities before us. Perl blogger Jose Rey offers a noteworthy illustration in his blog this week: seven different renderings of a common text-based guessing game, in different generations of Perl5. Even if your fluency with Perl is low, take the time to read and understand what's going on here; you'll get a lot of value from the exercise.

Note, by the way, that Perl was already (almost) seven years old when Perl5 appeared. Rey was wise to restrict himself to a manageable slice of the history of Perl style.

What’s wrong? The new clean desk test
View Comments
You Might Like
Join the discussion
Be the first to comment on this article. Our Commenting Policies