I've looked for this answer before too.
It would be nice to have a 'PRIVATE' variable declaration command or something that defines variables global for that file only.
Ha, or how about a 'SCOPE' / 'ENDSCOPE' keyword pair to wrap around your entire file, or use inside of functions to allow variables to be scoped for sections of the function.
But, I just live with the fact that they are global everywhere, not a big deal really, just keep your variable names clear.