Perl for Newbies - Part 3 - Modules and ObjectsPerl ModulesDeclaring a PackageWhere to find a module

3.1.1. Where to find a module

A module is a separate file that may contain one or more different namespaces. That file is found in a place that corresponds to the module's name. To find the filename of the module relative to the script's directory, replace every :: with a slash and add ".pm" to the name of the last component.

For instance: the MyModule module will be found in the file ""; the Hello::World module will be found in the file "" under the Hello sub-directory; etc.

Written by Shlomi Fish