A Quick Tour

What follows is a quick tour of some of the modules already installed on your system as part of the core Perl distribution.

Exploring Files and Directories

In Hour 10, you learned how to open directories and read lists of filenames contained within those directories. Along the way, the subject of reading subdirectories came up, and you were told not to be concerned about it. Now you'll learn how to traverse directories and subdirectories recursively.

You might write a common program to find a particular file without knowing exactly what directory it's in. For example, you might want to find a file named important.doc somewhere beneath the directory documents, as shown here:

This illustration shows a directory structure under ...

Get Sams Teach Yourself Perl in 24 Hours 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.