in reply to Qualified module variables and arrays
I think that using qualified variable name should be done very rarely, only for very specific cases. What you usually want to do with a module is to have the mudule functions to receive the arguments neccessary for its processing and returning the values expected by the caller. This is much cleaner than sharing values or using global variables, because the module function becomes a blackbox that you don't have to worry about any longer: it receives some arguments and returns somez expected values, you don't have to worry about how it works, or whether some other variable or environment needs to be set beforehand.
|