in reply to How to access main package global vars in modules
It's a good idea to put all globals, at least into a distinct package for "globals" which might not contain any executable code at all. You really do NOT want them "just lying around wherever you first thought to declare them." A program like that is extremely hard to maintain and harder yet to be kept reliable.