- "For many purposes, packages,
classes
and modules are interchangeable. You
could also call these namespaces."
- Perl offers considerable Object Oriented functionality,
but does not force OO programming.
- Use :: syntax to refer to particular
symbols (that is, variables and functions) within a particular
namespace. For example, $Red::Blue::var
- "A package in a single file of the same name ending
in .pm is a module."
- Access modules at compile-time with use,
or use require for run-time access. use
is preferred, since it spots problems earlier.
- "An object is a data structure with a
collection of behaviors"
|