Loading a package from another package - 10/08/2003 5:21 AM
[Perl 5.8.0]
Is there some trick to "use"ing one package from within another package?
Variables defined within B don't seem to be accessible within A, although they are accessible from the main namespace in the file that "use"s A.
Code
package A
...
use B;
...
print $B::var; <<< error
...
Variables defined within B don't seem to be accessible within A, although they are accessible from the main namespace in the file that "use"s A.