in reply to Module usage
Including a module with "use" reads the module and makes it available to your program within its own namespace. By default, many modules will export symbols (variables, functions, methods, etc.) into the "main::" namespace. This allows you access to these symbols without prefixing them with their proper namespace. Specifying a list of symbols with the "use" statement overrides the choice of symbols to export. When this list is empty, no symbols are exported. The symbols are still accessible by prefixing them with the namespace of the module.
Re^2: Module usage
by rir (Vicar) on Feb 27, 2009 at 03:21 UTC
|
By default, many modules will export symbols ... into the "main::" namespace.
That is incorrect, but it is often what happens because
the use Module statement is in the package main.
The symbols are exported to into the current namespace.
Be well,
rir | [reply] [d/l] |
|