in reply to accessing module variables howto

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