3. Perl Modules
Perl modules are namespaces that contain function and variables. Two distinct modules may each contain a function (or a variable) with the same name, yet the perl interpreter will be able to tell them apart. Furthermore, both functions can be invoked from the same code.
- 3.1. Declaring a Package
- 3.2. Loading Modules and Importing their Functions
- 3.3. BEGIN and END
- 3.4. The "main" Namespace
- 3.5. Difference between Namespaces and Modules