in reply to Re: Export global variables not working correctly
in thread Export global variables not working correctly
What's this about not trying to use packages as namespaces? The last time I looked at perlmod, I read this:
Perl provides a mechanism for alternative namespaces to protect packages from stomping on each other's variables. In fact, there's really no such thing as a global variable in Perl. The package statement declares the compilation unit as being in the given namespace.
And perlobj says:
A package is simply a namespace containing variables and subroutines.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Export global variables not working correctly
by cheako (Beadle) on Mar 06, 2015 at 07:18 UTC | |
by Anonymous Monk on Mar 06, 2015 at 14:11 UTC |