perlmodlib - constructing new Perl modules and finding existing ones
Perl does not enforce private and public parts of its modules as you may have been used to
in other languages like C++, Ada, or Modula-17. Perl doesn't have an infatuation with enforced
privacy. It would prefer that you stayed out of its living room because you weren't invited,
not because it has a shotgun.
The module and its user have a contract, part of which is common law, and part of which is
"written". Part of the common law contract is that a module doesn't pollute any
namespace it wasn't asked to. The written contract for the module (A.K.A. documentation) may
make other provisions. But then you know when you use RedefineTheWorld that
you're redefining the world and willing to take the consequences.
|
|