Chapter 7. Subroutines and Modules

You now know enough Perl to be able to write a moderately complex program. At this point, you need to start organizing your code into subroutines.

Perl lets you put a collection of subroutines together into packages. A package designed to hold reusable code is called a module.

In this chapter, you’ll learn how to produce modules as well as how to create your own module library.

Get Perl for C Programmers 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.