in reply to Passing Variables
It might help you to understand a few very basic things I always try to teach new Perl programmers:
The way I think of Perl's package variables is that both the defining and using packages get to decide how "global" to make them: the defining package by how it defines and exports them; the using package by how it imports them. On the importing side, the using package is really making a decision about how it wants to pollute its own package namespace.
In addition to Export, the documentation on import and use should help you to understand this better. Some people don't realize that use lets the using package decide how much it wants to take advantage of what the package being used has decided to Export by default.
|
|---|