in reply to variable import from package fails even though package apparently loads

If you are going to use A::w;, your package has to also be package A::w; inside the file w.pm in the A directory.