in reply to Packages and modules

There's no good reason at all to pass information in the main code to modules using global variables; global variables are evil. This style of programming makes code reuse very hard, and that is after all one of the primary goals of modules in the first place.

Can't you just pass the information via the parameter of the functions that are defined in the module? Passing a reference to a data structure should be no problem.

If you're a little more specific as to what kind of data, you might get some desing tips from fellow Monks.

Just my 2 cents, -gjb-