Summary

Often, programming books give you a lot of wordy background, but don't include enough actual code examples for how to do stuff. While I won't claim that this book shirks on the wordy background (you might snicker now), this lesson—and the two to come on Day 14 and Day 21—will offer you some longer bits of code that make use of the techniques you've learned in the previous lessons, put them all together, and maybe even accomplish some sort of useful task (although I'm not certain how often you're going to need to spell a number.)

In today's lesson, we explored three scripts. First, a revision of the familiar stats script, printed a sophisticated histogram using for loops and some careful measuring. The second, a number speller, used tests ...

Get Sams Teach Yourself Perl in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.