Home‎ > ‎scripting‎ > ‎Perl Cookbook‎ > ‎

Making and Referencing Modules

The required file extension for a Perl module is .pm. The module named FileHandle would be stored in the file FileHandle.pm. The full path to the file depends on your include path, which is stored in the global @INC variable. Recipe 12.8 shows how to manipulate this array for your own purposes.