It's related to you loading B unintentially. Renaming A, B, C & D to PkgA, PkgB, PkgC & PkgD in the first snippet causes it to output the same thing as the second snippet.
Update: Forgot to mention:
The use of base is discouraged. The usual problem is that it's silent when it fails to load a module (leading to weird error messages). This time, the problem was that it's silent when successfully loading a module (leading to weird behaviour).
In reply to Re: use NEXT;
by ikegami
in thread use NEXT;
by vi(ing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |