in reply to Usage of global variables

Difficult to answer without seeing any code, but it seems you have the structure of your scripts and modules and their variables in a mess. Try to avoid the use of global variables; esp. global variables which need to span separate scripts and modules in order to make your program work: it is almost always a bad idea.

And if you cannot change things, just drop use strict. It does not give any other benefit than showing you possible problems in your program. If you are aware of these, you can as well drop it (at your own risk).

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law