in reply to Are global variables "bad"?
Globals are a pretty common thing in modules. There's a lot of really good reasons to use package globals and package namespace globals. If your script is just a collection of functions, then they're acting a bit like a module called "main."
On one extreme, you end up passing the same (essentially) global data from function to function, just to avoid a global variable ... on the other extreme, every variable in the program is global. Extremes can be bad. Global variables aren't necessarily bad.
-Paul
|
|---|