If that's the case, you should use require rather than use, so that you don't import each time and overwrite the $User, $Password... in your calling package.
Or else leverage this to your advantage, import them each time through the loop and just refer to them by their local symbol names.
Although I agree that it would be better not to start from here and go with config files instead.
In reply to Re^2: Accessing module variables
by hippo
in thread Accessing module variables
by talexb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |