Going Deeper

In addition to the functions I've described in this lesson and on Day 15, all of which are described in the perlfunc man page, there are also quite a few modules in the standard module library for managing files and file handles.

Many of these modules are simply object-oriented wrappers for the standard file operations; others are especially useful for covering up or getting around cross-platform issues. Still others simply provide convenience functions for managing files and directories.

I've mentioned a number of these modules previously in this chapter—Getopt and Cwd in particular. Table 17.2 shows the more complete list; for details on any of these modules, see the perlmod man page.

Table 17.2. File-Related Modules
Module Name ...

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.