Summary

Often programming books give you a lot of wordy background, but don't give you enough actual code examples for how to do stuff. Although I won't claim that this book shirks on the wordy background (you may snicker now), these example sections offer you some longer bits of code that accomplish real things and show how a real-world script is put together.

In today's lesson, we explored two longer scripts. The first is a simple searchable address file, which used a text-based database of names and addresses. The script to process that file enabled you to process a reasonably complex search pattern, including nesting logical expressions and grouping words and phrases via quotes. You could extend this example to cover just about any situation ...

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.