12. Packages, Libraries, and Modules


Defining a Module's Interface

Trapping Errors in require or use

Delaying use Until Run Time

Making Variables Private to a Module

Determining the Caller's Package

Automating Module Clean-Up

Keeping Your Own Module Directory

Preparing a Module for Distribution

Speeding Module Loading with SelfLoader

Speeding Up Module Loading with Autoloader

Overriding Built-In Functions

Reporting Errors and Warnings Like Built-Ins

Referring to Packages Indirectly

Using h2ph to Translate C #include Files

Using h2xs to Make a Module with C Code

Documenting Your Module with Pod

Building and Installing a CPAN Module

Example: Module Template

Program: Finding Versions and Descriptions of Installed Modules