© William "Bo" Rothwell of One Course Source, Inc. 2019
William "Bo" RothwellBeginning Perl Programminghttps://doi.org/10.1007/978-1-4842-5055-6_13

13. Using Modules

William “Bo” Rothwell1 
(1)
San Diego, CA, USA
 

What Are Modules?

Perl modules (sometimes called libraries) are files that contain reusable code. These libraries can either be created by you, built-in to Perl, or downloaded from the Internet.

This chapter will focus on using built-in Perl modules. Creating your own modules and using modules that you get from the Internet are discussed in a future course.

Loading Modules with use

Typically, modules declare generic functions that can be used within your script. To make use of these functions, use the use statement to tell Perl to “import” the ...

Get Beginning Perl Programming: From Novice to Professional 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.