Exporter implements an import() routine. You're overriding it by declaring your own "sub import {...." Since your own version of import() doesn't do what is necessary to import the variable into package main's namespace, you're unable to use $var unless you use the fully qualified name.
Dave
In reply to Re: accessing module variables howto
by davido
in thread accessing module variables howto
by opensourcer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |