It will use the one from the most recently useed module. If one is not found in the current package or its @ISA, it will fail to find any. If f() refers to $ModuleA::x explicitly, there will be no confusion and you get the one you want.
After Compline,
Zaxo
In reply to Re: Avoiding variable conflict when importing modules
by Zaxo
in thread Avoiding variable conflict when importing modules
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |